mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user