@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use schmunk42\giiant\generators\crud\callbacks\yii\Db; |
| 6 | 6 | use schmunk42\giiant\generators\crud\callbacks\yii\Html; |
| 7 | 7 | |
| 8 | -$aceEditorField = function ($attribute, $model, $generator) { |
|
| 8 | +$aceEditorField = function($attribute, $model, $generator) { |
|
| 9 | 9 | return "\$form->field(\$model, '{$attribute}')->widget(\\trntv\\aceeditor\\AceEditor::className())"; |
| 10 | 10 | }; |
| 11 | 11 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | ], |
| 28 | 28 | [ |
| 29 | 29 | 'allow' => true, |
| 30 | - 'matchCallback' => function ($rule, $action) { |
|
| 30 | + 'matchCallback' => function($rule, $action) { |
|
| 31 | 31 | return \Yii::$app->user->can( |
| 32 | 32 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 33 | 33 | ['route' => true] |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | foreach ($flashes as $type => $data) { |
| 59 | 59 | if (isset($this->alertTypes[$type])) { |
| 60 | - $data = (array) $data; |
|
| 60 | + $data = (array)$data; |
|
| 61 | 61 | foreach ($data as $message) { |
| 62 | 62 | /* initialize css class for each alert box */ |
| 63 | 63 | $this->options['class'] = $this->alertTypes[$type].$appendCss; |
@@ -23,8 +23,7 @@ |
||
| 23 | 23 | // Note: For using mounted volumes or shared folders |
| 24 | 24 | 'dirMode' => YII_ENV_PROD ? 0777 : null, |
| 25 | 25 | 'bundles' => getenv('APP_ASSET_USE_BUNDLED') ? |
| 26 | - require(__DIR__.'/gen/bundle-prod.php') : |
|
| 27 | - [ |
|
| 26 | + require(__DIR__.'/gen/bundle-prod.php') : [ |
|
| 28 | 27 | // Note: if your asset bundle includes bootstrap, you can disable the default asset |
| 29 | 28 | #'yii\bootstrap\BootstrapAsset' => false, |
| 30 | 29 | ], |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | ], |
| 28 | 28 | [ |
| 29 | 29 | 'allow' => true, |
| 30 | - 'matchCallback' => function ($rule, $action) { |
|
| 30 | + 'matchCallback' => function($rule, $action) { |
|
| 31 | 31 | return \Yii::$app->user->can( |
| 32 | 32 | $this->module->id.'_'.$this->id.'_'.$action->id, |
| 33 | 33 | ['route' => true] |