@@ -16,11 +16,11 @@ |
||
16 | 16 | { |
17 | 17 | public function run(array $ids) |
18 | 18 | { |
19 | - $errors = []; |
|
19 | + $errors = [ ]; |
|
20 | 20 | foreach ($ids as $id) { |
21 | - $this->controller->runAction('delete', ['id' => $id]); |
|
21 | + $this->controller->runAction('delete', [ 'id' => $id ]); |
|
22 | 22 | if (Yii::$app->session->hasFlash('error')) { |
23 | - $errors[] = Yii::$app->session->getFlash('error', null, true); |
|
23 | + $errors[ ] = Yii::$app->session->getFlash('error', null, true); |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | if (!empty($errors)) { |