Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b21fd298
Commit
b21fd298
authored
Feb 01, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor coding style issues
parent
2926a5e1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
QueryBuilder.php
framework/db/sqlite/QueryBuilder.php
+1
-1
BaseConsole.php
framework/helpers/BaseConsole.php
+1
-1
ActiveField.php
framework/widgets/ActiveField.php
+2
-0
No files found.
framework/db/sqlite/QueryBuilder.php
View file @
b21fd298
...
@@ -111,9 +111,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -111,9 +111,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
$value
=
(
int
)
$value
-
1
;
$value
=
(
int
)
$value
-
1
;
}
}
try
{
try
{
// it's possible sqlite_sequence does not exist
$db
->
createCommand
(
"UPDATE sqlite_sequence SET seq='
$value
' WHERE name='
{
$table
->
name
}
'"
)
->
execute
();
$db
->
createCommand
(
"UPDATE sqlite_sequence SET seq='
$value
' WHERE name='
{
$table
->
name
}
'"
)
->
execute
();
}
catch
(
Exception
$e
)
{
}
catch
(
Exception
$e
)
{
// it's possible that sqlite_sequence does not exist
}
}
}
elseif
(
$table
===
null
)
{
}
elseif
(
$table
===
null
)
{
throw
new
InvalidParamException
(
"Table not found:
$tableName
"
);
throw
new
InvalidParamException
(
"Table not found:
$tableName
"
);
...
...
framework/helpers/BaseConsole.php
View file @
b21fd298
...
@@ -422,7 +422,7 @@ class BaseConsole
...
@@ -422,7 +422,7 @@ class BaseConsole
$styleA
=
ArrayHelper
::
merge
(
$styleA
,
$style
);
$styleA
=
ArrayHelper
::
merge
(
$styleA
,
$style
);
}
}
$styleString
[]
=
[];
$styleString
=
[];
foreach
(
$styleA
as
$name
=>
$content
)
{
foreach
(
$styleA
as
$name
=>
$content
)
{
if
(
$name
===
'text-decoration'
)
{
if
(
$name
===
'text-decoration'
)
{
$content
=
implode
(
' '
,
$content
);
$content
=
implode
(
' '
,
$content
);
...
...
framework/widgets/ActiveField.php
View file @
b21fd298
...
@@ -616,6 +616,8 @@ class ActiveField extends Component
...
@@ -616,6 +616,8 @@ class ActiveField extends Component
return
[];
return
[];
}
}
$options
=
[];
$enableClientValidation
=
$this
->
enableClientValidation
||
$this
->
enableClientValidation
===
null
&&
$this
->
form
->
enableClientValidation
;
$enableClientValidation
=
$this
->
enableClientValidation
||
$this
->
enableClientValidation
===
null
&&
$this
->
form
->
enableClientValidation
;
if
(
$enableClientValidation
)
{
if
(
$enableClientValidation
)
{
$validators
=
[];
$validators
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment