@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | return [ |
11 | 11 | // string, required, root directory of all source files |
12 | - 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..', |
|
12 | + 'sourcePath' => __DIR__.DIRECTORY_SEPARATOR.'..', |
|
13 | 13 | // array, required, list of language codes that the extracted messages |
14 | 14 | // should be translated to. For example, ['zh-CN', 'de']. |
15 | 15 | 'languages' => ['en'], |
@@ -56,13 +56,13 @@ |
||
56 | 56 | ], |
57 | 57 | 'index' => [ |
58 | 58 | 'class' => 'yii2tech\admin\actions\Index', |
59 | - 'newSearchModel' => function () { |
|
59 | + 'newSearchModel' => function() { |
|
60 | 60 | return new UserSearch(); |
61 | 61 | }, |
62 | 62 | ], |
63 | 63 | 'delete' => [ |
64 | 64 | 'class' => 'yii2tech\admin\actions\Delete', |
65 | - 'findModel' => function (int $id) { |
|
65 | + 'findModel' => function(int $id) { |
|
66 | 66 | return $this->findModel(UserModel::class, $id); |
67 | 67 | }, |
68 | 68 | 'flash' => Yii::t('app', 'User has been deleted.'), |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function beforeAction($action): bool |
50 | 50 | { |
51 | - $this->command = $action->controller->id . '/' . $action->id; |
|
51 | + $this->command = $action->controller->id.'/'.$action->id; |
|
52 | 52 | |
53 | 53 | if ($this->isDisabledAction($action->id)) { |
54 | 54 | $this->stdout("Command '{$this->command}' is disabled.\n", Console::FG_RED); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | return false; |
61 | 61 | } |
62 | 62 | |
63 | - $this->stdout("Running the command `{$this->command}` at the " . Yii::$app->formatter->asDatetime(time()) . "\n", Console::FG_GREEN); |
|
63 | + $this->stdout("Running the command `{$this->command}` at the ".Yii::$app->formatter->asDatetime(time())."\n", Console::FG_GREEN); |
|
64 | 64 | |
65 | 65 | return true; |
66 | 66 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $result = parent::afterAction($action, $result); |
79 | 79 | |
80 | - $this->stdout("Command `{$this->command}` finished at the " . Yii::$app->formatter->asDatetime(time()) . "\n", Console::FG_GREEN); |
|
80 | + $this->stdout("Command `{$this->command}` finished at the ".Yii::$app->formatter->asDatetime(time())."\n", Console::FG_GREEN); |
|
81 | 81 | |
82 | 82 | return $result; |
83 | 83 | } |