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
a4fe805c
Commit
a4fe805c
authored
Dec 18, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1567 from crtlib/master
short array syntax
parents
3d934003
8c4412be
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
QueryBuilder.php
framework/yii/db/oci/QueryBuilder.php
+1
-1
Schema.php
framework/yii/db/oci/Schema.php
+1
-1
DbFixtureManager.php
framework/yii/test/DbFixtureManager.php
+1
-1
AssetManager.php
framework/yii/web/AssetManager.php
+1
-1
No files found.
framework/yii/db/oci/QueryBuilder.php
View file @
a4fe805c
...
@@ -45,7 +45,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -45,7 +45,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
if
((
$limit
<
0
)
&&
(
$offset
<
0
))
{
if
((
$limit
<
0
)
&&
(
$offset
<
0
))
{
return
$this
->
sql
;
return
$this
->
sql
;
}
}
$filters
=
array
()
;
$filters
=
[]
;
if
(
$offset
>
0
)
{
if
(
$offset
>
0
)
{
$filters
[]
=
'rowNumId > '
.
(
int
)
$offset
;
$filters
[]
=
'rowNumId > '
.
(
int
)
$offset
;
}
}
...
...
framework/yii/db/oci/Schema.php
View file @
a4fe805c
...
@@ -221,7 +221,7 @@ EOD;
...
@@ -221,7 +221,7 @@ EOD;
}
}
$rows
=
$command
->
queryAll
();
$rows
=
$command
->
queryAll
();
$names
=
array
()
;
$names
=
[]
;
foreach
(
$rows
as
$row
)
{
foreach
(
$rows
as
$row
)
{
$names
[]
=
$row
[
'TABLE_NAME'
];
$names
[]
=
$row
[
'TABLE_NAME'
];
}
}
...
...
framework/yii/test/DbFixtureManager.php
View file @
a4fe805c
...
@@ -52,7 +52,7 @@ class DbFixtureManager extends Component
...
@@ -52,7 +52,7 @@ class DbFixtureManager extends Component
public
$db
=
'db'
;
public
$db
=
'db'
;
/**
/**
* @var array list of database schemas that the test tables may reside in. Defaults to
* @var array list of database schemas that the test tables may reside in. Defaults to
*
array('')
, meaning using the default schema (an empty string refers to the
*
['']
, meaning using the default schema (an empty string refers to the
* default schema). This property is mainly used when turning on and off integrity checks
* default schema). This property is mainly used when turning on and off integrity checks
* so that fixture data can be populated into the database without causing problem.
* so that fixture data can be populated into the database without causing problem.
*/
*/
...
...
framework/yii/web/AssetManager.php
View file @
a4fe805c
...
@@ -131,7 +131,7 @@ class AssetManager extends Component
...
@@ -131,7 +131,7 @@ class AssetManager extends Component
if
(
$this
->
bundles
[
$name
]
instanceof
AssetBundle
)
{
if
(
$this
->
bundles
[
$name
]
instanceof
AssetBundle
)
{
return
$this
->
bundles
[
$name
];
return
$this
->
bundles
[
$name
];
}
elseif
(
is_array
(
$this
->
bundles
[
$name
]))
{
}
elseif
(
is_array
(
$this
->
bundles
[
$name
]))
{
$bundle
=
Yii
::
createObject
(
array_merge
(
array
(
'class'
=>
$name
)
,
$this
->
bundles
[
$name
]));
$bundle
=
Yii
::
createObject
(
array_merge
(
[
'class'
=>
$name
]
,
$this
->
bundles
[
$name
]));
}
else
{
}
else
{
throw
new
InvalidConfigException
(
"Invalid asset bundle:
$name
"
);
throw
new
InvalidConfigException
(
"Invalid asset bundle:
$name
"
);
}
}
...
...
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