@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $languages = explode(',', getenv('APP_LANGUAGES')); |
| 16 | 16 | |
| 17 | 17 | // prepare asset bundle config |
| 18 | -$bundles = []; |
|
| 18 | +$bundles = [ ]; |
|
| 19 | 19 | if (getenv('APP_ASSET_USE_BUNDLED')) { |
| 20 | 20 | // include generated asset-bundle configuration |
| 21 | 21 | $bundles = include Yii::getAlias('@web/bundles').'/config.php'; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | return [ |
| 47 | 47 | 'id' => 'app', |
| 48 | 48 | 'name' => getenv('APP_TITLE'), |
| 49 | - 'language' => $languages[0], |
|
| 49 | + 'language' => $languages[ 0 ], |
|
| 50 | 50 | 'basePath' => realpath(__DIR__.'/..'), |
| 51 | 51 | 'vendorPath' => '@app/../vendor', |
| 52 | 52 | 'runtimePath' => '@app/../runtime', |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | ], |
| 62 | 62 | 'params' => [ |
| 63 | 63 | 'adminEmail' => getenv('APP_ADMIN_EMAIL'), |
| 64 | - 'context.menuItems' => [], |
|
| 64 | + 'context.menuItems' => [ ], |
|
| 65 | 65 | 'yii.migrations' => [ |
| 66 | 66 | getenv('APP_MIGRATION_LOOKUP'), |
| 67 | 67 | '@yii/rbac/migrations', |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ], |
| 87 | 87 | 'authManager' => [ |
| 88 | 88 | 'class' => 'dektrium\rbac\components\DbManager', |
| 89 | - 'defaultRoles' => ['Default'], |
|
| 89 | + 'defaultRoles' => [ 'Default' ], |
|
| 90 | 90 | ], |
| 91 | 91 | 'cache' => getenv('APP_NO_CACHE') ? null : [ |
| 92 | 92 | 'class' => 'yii\redis\Cache', |
@@ -134,8 +134,8 @@ discard block |
||
| 134 | 134 | [ |
| 135 | 135 | 'class' => 'codemix\streamlog\Target', |
| 136 | 136 | 'url' => 'php://stderr', |
| 137 | - 'levels' => ['error', 'warning'], |
|
| 138 | - 'logVars' => [], |
|
| 137 | + 'levels' => [ 'error', 'warning' ], |
|
| 138 | + 'logVars' => [ ], |
|
| 139 | 139 | 'replaceNewline' => '' |
| 140 | 140 | ], |
| 141 | 141 | ], |
@@ -165,9 +165,9 @@ discard block |
||
| 165 | 165 | 'user' => [ |
| 166 | 166 | 'class' => 'dmstr\web\User', |
| 167 | 167 | 'enableAutoLogin' => true, |
| 168 | - 'loginUrl' => ['/user/security/login'], |
|
| 168 | + 'loginUrl' => [ '/user/security/login' ], |
|
| 169 | 169 | 'identityClass' => 'dektrium\user\models\User', |
| 170 | - 'rootUsers' => ['admin'], |
|
| 170 | + 'rootUsers' => [ 'admin' ], |
|
| 171 | 171 | ], |
| 172 | 172 | 'urlManager' => [ |
| 173 | 173 | 'class' => 'codemix\localeurls\UrlManager', |
@@ -195,10 +195,10 @@ discard block |
||
| 195 | 195 | 'auto_reload' => true, |
| 196 | 196 | ], |
| 197 | 197 | 'globals' => [ |
| 198 | - 'html' => ['class'=>'\yii\helpers\Html'], |
|
| 199 | - 'Tree' => ['class'=>'\dmstr\modules\pages\models\Tree'], |
|
| 200 | - 'FA' => ['class'=>'\rmrevin\yii\fontawesome\FA'], |
|
| 201 | - 'Url' => ['class'=>'\hrzg\filemanager\helpers\Url'], |
|
| 198 | + 'html' => [ 'class'=>'\yii\helpers\Html' ], |
|
| 199 | + 'Tree' => [ 'class'=>'\dmstr\modules\pages\models\Tree' ], |
|
| 200 | + 'FA' => [ 'class'=>'\rmrevin\yii\fontawesome\FA' ], |
|
| 201 | + 'Url' => [ 'class'=>'\hrzg\filemanager\helpers\Url' ], |
|
| 202 | 202 | ], |
| 203 | 203 | 'uses' => [ |
| 204 | 204 | 'yii\bootstrap', |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | 'modules' => [ |
| 211 | 211 | 'audit' => [ |
| 212 | 212 | 'class' => 'bedezign\yii2\audit\Audit', |
| 213 | - 'accessRoles' => ['audit-module'], |
|
| 213 | + 'accessRoles' => [ 'audit-module' ], |
|
| 214 | 214 | 'layout' => '@backend/views/layouts/box', |
| 215 | 215 | 'panels' => [ |
| 216 | 216 | 'audit/request', |
@@ -218,15 +218,15 @@ discard block |
||
| 218 | 218 | 'audit/trail', |
| 219 | 219 | 'audit/javascript', # enable app.assets.registerJSLoggingAsset via settings |
| 220 | 220 | // These provide special functionality and get loaded to activate it |
| 221 | - 'audit/error', // Links the extra error reporting functions (`exception()` and `errorMessage()`) |
|
| 222 | - 'audit/extra', // Links the data functions (`data()`) |
|
| 223 | - 'audit/curl', // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`) |
|
| 221 | + 'audit/error', // Links the extra error reporting functions (`exception()` and `errorMessage()`) |
|
| 222 | + 'audit/extra', // Links the data functions (`data()`) |
|
| 223 | + 'audit/curl', // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`) |
|
| 224 | 224 | //'audit/db', |
| 225 | 225 | //'audit/log', |
| 226 | 226 | //'audit/profiling', |
| 227 | 227 | ], |
| 228 | 228 | 'ignoreActions' => [ |
| 229 | - (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*':'_'), |
|
| 229 | + (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*' : '_'), |
|
| 230 | 230 | 'app/*', |
| 231 | 231 | 'audit/*', |
| 232 | 232 | 'help/*', |
@@ -285,8 +285,8 @@ discard block |
||
| 285 | 285 | 'class' => 'lajax\translatemanager\Module', |
| 286 | 286 | 'root' => '@app/views', |
| 287 | 287 | 'layout' => '@backend/views/layouts/box', |
| 288 | - 'allowedIPs' => ['*'], |
|
| 289 | - 'roles' => ['translate-module'], |
|
| 288 | + 'allowedIPs' => [ '*' ], |
|
| 289 | + 'roles' => [ 'translate-module' ], |
|
| 290 | 290 | ], |
| 291 | 291 | 'user' => [ |
| 292 | 292 | 'class' => 'dektrium\user\Module', |