Test Failed
Push — master ( cf044e...424e13 )
by Tobias
13:42
created
src/config/common.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  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
 }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 return [
37 37
     'id' => 'app',
38 38
     'name' => getenv('APP_TITLE'),
39
-    'language' => $languages[0],
39
+    'language' => $languages[ 0 ],
40 40
     'basePath' => realpath(__DIR__.'/..'),
41 41
     'vendorPath' => '@app/../vendor',
42 42
     'runtimePath' => '@app/../runtime',
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     ],
52 52
     'params' => [
53 53
         'adminEmail' => getenv('APP_ADMIN_EMAIL'),
54
-        'context.menuItems' => [],
54
+        'context.menuItems' => [ ],
55 55
         'yii.migrations' => [
56 56
             getenv('APP_MIGRATION_LOOKUP'),
57 57
             '@yii/rbac/migrations',
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         ],
77 77
         'authManager' => [
78 78
             'class' => 'dektrium\rbac\components\DbManager',
79
-            'defaultRoles' => ['Default'],
79
+            'defaultRoles' => [ 'Default' ],
80 80
         ],
81 81
         'cache' => [
82 82
             'class' => 'yii\redis\Cache',
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
                 [
121 121
                     'class' => 'codemix\streamlog\Target',
122 122
                     'url' => 'php://stderr',
123
-                    'levels' => ['error', 'warning'],
124
-                    'logVars' => [],
123
+                    'levels' => [ 'error', 'warning' ],
124
+                    'logVars' => [ ],
125 125
                     'replaceNewline' => ''
126 126
                 ],
127 127
             ],
@@ -151,9 +151,9 @@  discard block
 block discarded – undo
151 151
         'user' => [
152 152
             'class' => 'dmstr\web\User',
153 153
             'enableAutoLogin' => true,
154
-            'loginUrl' => ['/user/security/login'],
154
+            'loginUrl' => [ '/user/security/login' ],
155 155
             'identityClass' => 'dektrium\user\models\User',
156
-            'rootUsers' => ['admin'],
156
+            'rootUsers' => [ 'admin' ],
157 157
         ],
158 158
         'urlManager' => [
159 159
             'class' => 'codemix\localeurls\UrlManager',
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             'showScriptName' => false,
162 162
             'enableDefaultLanguageUrlCode' => true,
163 163
             'baseUrl' => '/',
164
-            'rules' => [],
164
+            'rules' => [ ],
165 165
             'ignoreLanguageUrlPatterns' => [
166 166
                 // route pattern => url pattern
167 167
                 '#^filefly/api#' => '#^filefly/api#',
@@ -178,10 +178,10 @@  discard block
 block discarded – undo
178 178
                         'auto_reload' => true,
179 179
                     ],
180 180
                     'globals' => [
181
-                        'html' => ['class'=>'\yii\helpers\Html'],
182
-                        'Tree' => ['class'=>'\dmstr\modules\pages\models\Tree'],
183
-                        'FA' => ['class'=>'\rmrevin\yii\fontawesome\FA'],
184
-                        'Url' => ['class'=>'\hrzg\filemanager\helpers\Url'],
181
+                        'html' => [ 'class'=>'\yii\helpers\Html' ],
182
+                        'Tree' => [ 'class'=>'\dmstr\modules\pages\models\Tree' ],
183
+                        'FA' => [ 'class'=>'\rmrevin\yii\fontawesome\FA' ],
184
+                        'Url' => [ 'class'=>'\hrzg\filemanager\helpers\Url' ],
185 185
                     ],
186 186
                     'uses' => [
187 187
                         'yii\bootstrap',
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     'modules' => [
194 194
         'audit' => [
195 195
             'class' => 'bedezign\yii2\audit\Audit',
196
-            'accessRoles' => ['audit-module'],
196
+            'accessRoles' => [ 'audit-module' ],
197 197
             'layout' => '@backend/views/layouts/box',
198 198
             'panels' => [
199 199
                 'audit/request',
@@ -201,15 +201,15 @@  discard block
 block discarded – undo
201 201
                 'audit/trail',
202 202
                 'audit/javascript', # enable app.assets.registerJSLoggingAsset via settings
203 203
                 // These provide special functionality and get loaded to activate it
204
-                'audit/error',      // Links the extra error reporting functions (`exception()` and `errorMessage()`)
205
-                'audit/extra',      // Links the data functions (`data()`)
206
-                'audit/curl',       // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
204
+                'audit/error', // Links the extra error reporting functions (`exception()` and `errorMessage()`)
205
+                'audit/extra', // Links the data functions (`data()`)
206
+                'audit/curl', // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
207 207
                 //'audit/db',
208 208
                 //'audit/log',
209 209
                 //'audit/profiling',
210 210
             ],
211 211
             'ignoreActions' => [
212
-                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*':'_'),
212
+                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*' : '_'),
213 213
                 'app/*',
214 214
                 'audit/*',
215 215
                 'help/*',
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
             'class' => 'lajax\translatemanager\Module',
265 265
             'root' => '@app/views',
266 266
             'layout' => '@backend/views/layouts/box',
267
-            'allowedIPs' => ['*'],
268
-            'roles' => ['translate-module'],
267
+            'allowedIPs' => [ '*' ],
268
+            'roles' => [ 'translate-module' ],
269 269
         ],
270 270
         'user' => [
271 271
             'class' => 'dektrium\user\Module',
Please login to merge, or discard this patch.