@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | [ |
| 87 | 87 | 'class' => 'yii\grid\ActionColumn', |
| 88 | - 'urlCreator' => function ($action, $model, $key, $index) { |
|
| 88 | + 'urlCreator' => function($action, $model, $key, $index) { |
|
| 89 | 89 | // using the column name as key, not mapping to 'id' like the standard generator |
| 90 | 90 | $params = is_array($key) ? $key : [$model->primaryKey()[0] => (string)$key]; |
| 91 | 91 | $params[0] = \Yii::$app->controller->id ? \Yii::$app->controller->id.'/'.$action : $action; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | [ |
| 87 | 87 | 'class' => 'yii\grid\ActionColumn', |
| 88 | - 'urlCreator' => function ($action, $model, $key, $index) { |
|
| 88 | + 'urlCreator' => function($action, $model, $key, $index) { |
|
| 89 | 89 | // using the column name as key, not mapping to 'id' like the standard generator |
| 90 | 90 | $params = is_array($key) ? $key : [$model->primaryKey()[0] => (string)$key]; |
| 91 | 91 | $params[0] = \Yii::$app->controller->id ? \Yii::$app->controller->id.'/'.$action : $action; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | ], |
| 29 | 29 | [ |
| 30 | 30 | 'allow' => true, |
| 31 | - 'matchCallback' => function ($rule, $action) { |
|
| 31 | + 'matchCallback' => function($rule, $action) { |
|
| 32 | 32 | return \Yii::$app->user->can( |
| 33 | 33 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 34 | 34 | ['route' => true] |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | ], |
| 29 | 29 | [ |
| 30 | 30 | 'allow' => true, |
| 31 | - 'matchCallback' => function ($rule, $action) { |
|
| 31 | + 'matchCallback' => function($rule, $action) { |
|
| 32 | 32 | return \Yii::$app->user->can( |
| 33 | 33 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 34 | 34 | ['route' => true] |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'rules' => [ |
| 27 | 27 | [ |
| 28 | 28 | 'allow' => true, |
| 29 | - 'matchCallback' => function ($rule, $action) { |
|
| 29 | + 'matchCallback' => function($rule, $action) { |
|
| 30 | 30 | return \Yii::$app->user->can( |
| 31 | 31 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 32 | 32 | ['route' => true] |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'rules' => [ |
| 27 | 27 | [ |
| 28 | 28 | 'allow' => true, |
| 29 | - 'matchCallback' => function ($rule, $action) { |
|
| 29 | + 'matchCallback' => function($rule, $action) { |
|
| 30 | 30 | return \Yii::$app->user->can( |
| 31 | 31 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 32 | 32 | ['route' => true] |