mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 09:47:25 +08:00
fix code style No space found after comma in function call
This commit is contained in:
@ -442,17 +442,17 @@ class Formatter extends Component
|
|||||||
|
|
||||||
switch($position) {
|
switch($position) {
|
||||||
case 0:
|
case 0:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# byte} other{# bytes}}', $params) : Yii::t('yii', '{n} B', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# byte} other{# bytes}}', $params) : Yii::t('yii', '{n} B', $params);
|
||||||
case 1:
|
case 1:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# kilobyte} other{# kilobytes}}', $params) : Yii::t('yii','{n} KB', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# kilobyte} other{# kilobytes}}', $params) : Yii::t('yii', '{n} KB', $params);
|
||||||
case 2:
|
case 2:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# megabyte} other{# megabytes}}', $params) : Yii::t('yii','{n} MB', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# megabyte} other{# megabytes}}', $params) : Yii::t('yii', '{n} MB', $params);
|
||||||
case 3:
|
case 3:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# gigabyte} other{# gigabytes}}', $params) : Yii::t('yii','{n} GB', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# gigabyte} other{# gigabytes}}', $params) : Yii::t('yii', '{n} GB', $params);
|
||||||
case 4:
|
case 4:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# terabyte} other{# terabytes}}', $params) : Yii::t('yii','{n} TB', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# terabyte} other{# terabytes}}', $params) : Yii::t('yii', '{n} TB', $params);
|
||||||
default:
|
default:
|
||||||
return $verbose ? Yii::t('yii','{n, plural, =1{# petabyte} other{# petabytes}}', $params) : Yii::t('yii','{n} PB', $params);
|
return $verbose ? Yii::t('yii', '{n, plural, =1{# petabyte} other{# petabytes}}', $params) : Yii::t('yii', '{n} PB', $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,7 +64,7 @@ class FixtureController extends Controller
|
|||||||
public function globalOptions()
|
public function globalOptions()
|
||||||
{
|
{
|
||||||
return array_merge(parent::globalOptions(), [
|
return array_merge(parent::globalOptions(), [
|
||||||
'namespace','globalFixtures'
|
'namespace', 'globalFixtures'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ class FixtureController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$filtered = array_diff($foundFixtures, $except);
|
$filtered = array_diff($foundFixtures, $except);
|
||||||
$fixtures = $this->getFixturesConfig(array_merge($this->globalFixtures ,$filtered));
|
$fixtures = $this->getFixturesConfig(array_merge($this->globalFixtures, $filtered));
|
||||||
|
|
||||||
if (!$fixtures) {
|
if (!$fixtures) {
|
||||||
throw new Exception('No fixtures were found in namespace: "' . $this->namespace . '"' . '');
|
throw new Exception('No fixtures were found in namespace: "' . $this->namespace . '"' . '');
|
||||||
|
|||||||
Reference in New Issue
Block a user