Test Failed
Push — master ( e71dee...a81f8a )
by Tobias
14:37
created
src/config/common.php 1 patch
Spacing   +22 added lines, -23 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 $languages = explode(',', getenv('APP_LANGUAGES'));
14 14
 
15 15
 // prepare asset bundle config
16
-$bundles = [];
16
+$bundles = [ ];
17 17
 if (getenv('APP_ASSET_USE_BUNDLED')) {
18 18
     $bundles = include Yii::getAlias('@web/bundles').'/config.php';
19 19
 }
20 20
 if (getenv('APP_ASSET_DISABLE_BOOTSTRAP_BUNDLE')) {
21
-    $bundles['yii\bootstrap\BootstrapAsset'] = [
22
-        'css' => [],
21
+    $bundles[ 'yii\bootstrap\BootstrapAsset' ] = [
22
+        'css' => [ ],
23 23
     ];
24 24
 }
25 25
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 return [
42 42
     'id' => 'app',
43 43
     'name' => getenv('APP_TITLE'),
44
-    'language' => $languages[0],
44
+    'language' => $languages[ 0 ],
45 45
     'basePath' => realpath(__DIR__.'/..'),
46 46
     'vendorPath' => '@app/../vendor',
47 47
     'runtimePath' => '@app/../runtime',
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     ],
56 56
     'params' => [
57 57
         'adminEmail' => getenv('APP_ADMIN_EMAIL'),
58
-        'context.menuItems' => [],
58
+        'context.menuItems' => [ ],
59 59
         'yii.migrations' => [
60 60
             getenv('APP_MIGRATION_LOOKUP'),
61 61
             '@yii/rbac/migrations',
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
             'dirMode' => 0775,
74 74
             // Hashing for distributed systems
75 75
             'hashCallback' => YII_ENV_DEV ?
76
-                null :
77
-                function ($path) {
76
+                null : function($path) {
78 77
                     return YII_ENV.'-'.substr(hash('sha256', $path), 0, 8).'-'.APP_VERSION.'-'.\Yii::$app->cache->get('prototype.less.changed_at');
79 78
                 },
80 79
             // Note: You need to bundle asset with `yii asset` for development/debugging
@@ -83,7 +82,7 @@  discard block
 block discarded – undo
83 82
         ],
84 83
         'authManager' => [
85 84
             'class' => 'dektrium\rbac\components\DbManager',
86
-            'defaultRoles' => ['Default'],
85
+            'defaultRoles' => [ 'Default' ],
87 86
         ],
88 87
         'cache' => [
89 88
             'class' => 'yii\redis\Cache',
@@ -127,8 +126,8 @@  discard block
 block discarded – undo
127 126
                 [
128 127
                     'class' => 'codemix\streamlog\Target',
129 128
                     'url' => 'php://stderr',
130
-                    'levels' => ['error', 'warning'],
131
-                    'logVars' => [],
129
+                    'levels' => [ 'error', 'warning' ],
130
+                    'logVars' => [ ],
132 131
                     'replaceNewline' => ''
133 132
                 ],
134 133
             ],
@@ -158,9 +157,9 @@  discard block
 block discarded – undo
158 157
         'user' => [
159 158
             'class' => 'dmstr\web\User',
160 159
             'enableAutoLogin' => true,
161
-            'loginUrl' => ['/user/security/login'],
160
+            'loginUrl' => [ '/user/security/login' ],
162 161
             'identityClass' => 'dektrium\user\models\User',
163
-            'rootUsers' => ['admin'],
162
+            'rootUsers' => [ 'admin' ],
164 163
         ],
165 164
         'urlManager' => [
166 165
             'class' => 'codemix\localeurls\UrlManager',
@@ -168,7 +167,7 @@  discard block
 block discarded – undo
168 167
             'showScriptName' => false,
169 168
             'enableDefaultLanguageUrlCode' => true,
170 169
             'baseUrl' => '/',
171
-            'rules' => [],
170
+            'rules' => [ ],
172 171
             'ignoreLanguageUrlPatterns' => [
173 172
                 // route pattern => url pattern
174 173
                 '#^filefly/api#' => '#^filefly/api#',
@@ -185,10 +184,10 @@  discard block
 block discarded – undo
185 184
                         'auto_reload' => true,
186 185
                     ],
187 186
                     'globals' => [
188
-                        'html' => ['class'=>'\yii\helpers\Html'],
189
-                        'Tree' => ['class'=>'\dmstr\modules\pages\models\Tree'],
190
-                        'FA' => ['class'=>'\rmrevin\yii\fontawesome\FA'],
191
-                        'Url' => ['class'=>'\hrzg\filemanager\helpers\Url'],
187
+                        'html' => [ 'class'=>'\yii\helpers\Html' ],
188
+                        'Tree' => [ 'class'=>'\dmstr\modules\pages\models\Tree' ],
189
+                        'FA' => [ 'class'=>'\rmrevin\yii\fontawesome\FA' ],
190
+                        'Url' => [ 'class'=>'\hrzg\filemanager\helpers\Url' ],
192 191
                     ],
193 192
                     'uses' => [
194 193
                         'yii\bootstrap',
@@ -209,15 +208,15 @@  discard block
 block discarded – undo
209 208
                 'audit/trail',
210 209
                 'audit/javascript', # enable app.assets.registerJSLoggingAsset via settings
211 210
                 // These provide special functionality and get loaded to activate it
212
-                'audit/error',      // Links the extra error reporting functions (`exception()` and `errorMessage()`)
213
-                'audit/extra',      // Links the data functions (`data()`)
214
-                'audit/curl',       // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
211
+                'audit/error', // Links the extra error reporting functions (`exception()` and `errorMessage()`)
212
+                'audit/extra', // Links the data functions (`data()`)
213
+                'audit/curl', // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
215 214
                 //'audit/db',
216 215
                 //'audit/log',
217 216
                 //'audit/profiling',
218 217
             ],
219 218
             'ignoreActions' => [
220
-                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*':'_'),
219
+                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*' : '_'),
221 220
                 'app/*',
222 221
                 'audit/*',
223 222
                 'help/*',
@@ -268,8 +267,8 @@  discard block
 block discarded – undo
268 267
             'class' => 'lajax\translatemanager\Module',
269 268
             'root' => '@app/views',
270 269
             'layout' => '@backend/views/layouts/box',
271
-            'allowedIPs' => ['*'],
272
-            'roles' => ['translate-module'],
270
+            'allowedIPs' => [ '*' ],
271
+            'roles' => [ 'translate-module' ],
273 272
         ],
274 273
         'user' => [
275 274
             'class' => 'dektrium\user\Module',
Please login to merge, or discard this patch.