@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param array $params |
| 26 | 26 | * @param bool|true $allowCaching |
| 27 | 27 | * |
| 28 | - * @return bool |
|
| 28 | + * @return boolean|null |
|
| 29 | 29 | */ |
| 30 | 30 | public function can($permissionName, $params = [], $allowCaching = true) |
| 31 | 31 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Checks permissions from guest role, when no user is logged in. |
| 47 | 47 | * |
| 48 | - * @param $permissionName |
|
| 48 | + * @param string $permissionName |
|
| 49 | 49 | * @param $params |
| 50 | 50 | * @param $allowCaching |
| 51 | 51 | * |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * Splits `permissionName` by underscore and match parts against more global rule |
| 65 | 65 | * eg. a permission `app_site` will match, `app_site_foo` |
| 66 | 66 | * |
| 67 | - * @param $permissionName |
|
| 67 | + * @param string $permissionName |
|
| 68 | 68 | * @param $params |
| 69 | 69 | * @param $allowCaching |
| 70 | 70 | * |
@@ -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 | |
@@ -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] |
@@ -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; |
@@ -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] |
@@ -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 | ], |