Test Setup Failed
Push — master ( 425ae3...a1a9b4 )
by Tobias
12:01
created
src/config/common.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
86 86
         ],
87 87
         'authManager' => [
88 88
             'class' => 'dektrium\rbac\components\DbManager',
89
-            'defaultRoles' => ['Default'],
89
+            'defaultRoles' => [ 'Default' ],
90 90
         ],
91 91
         'cache' => [
92 92
             'class' => 'yii\redis\Cache',
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
                 [
131 131
                     'class' => 'codemix\streamlog\Target',
132 132
                     'url' => 'php://stderr',
133
-                    'levels' => ['error', 'warning'],
134
-                    'logVars' => [],
133
+                    'levels' => [ 'error', 'warning' ],
134
+                    'logVars' => [ ],
135 135
                     'replaceNewline' => ''
136 136
                 ],
137 137
             ],
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
         'user' => [
162 162
             'class' => 'dmstr\web\User',
163 163
             'enableAutoLogin' => true,
164
-            'loginUrl' => ['/user/security/login'],
164
+            'loginUrl' => [ '/user/security/login' ],
165 165
             'identityClass' => 'dektrium\user\models\User',
166
-            'rootUsers' => ['admin'],
166
+            'rootUsers' => [ 'admin' ],
167 167
         ],
168 168
         'urlManager' => [
169 169
             'class' => 'codemix\localeurls\UrlManager',
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             'showScriptName' => false,
172 172
             'enableDefaultLanguageUrlCode' => true,
173 173
             'baseUrl' => '/',
174
-            'rules' => [],
174
+            'rules' => [ ],
175 175
             'ignoreLanguageUrlPatterns' => [
176 176
                 // route pattern => url pattern
177 177
                 '#^filefly/api#' => '#^filefly/api#',
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
                         'auto_reload' => true,
189 189
                     ],
190 190
                     'globals' => [
191
-                        'html' => ['class'=>'\yii\helpers\Html'],
192
-                        'Tree' => ['class'=>'\dmstr\modules\pages\models\Tree'],
193
-                        'FA' => ['class'=>'\rmrevin\yii\fontawesome\FA'],
194
-                        'Url' => ['class'=>'\hrzg\filemanager\helpers\Url'],
191
+                        'html' => [ 'class'=>'\yii\helpers\Html' ],
192
+                        'Tree' => [ 'class'=>'\dmstr\modules\pages\models\Tree' ],
193
+                        'FA' => [ 'class'=>'\rmrevin\yii\fontawesome\FA' ],
194
+                        'Url' => [ 'class'=>'\hrzg\filemanager\helpers\Url' ],
195 195
                     ],
196 196
                     'uses' => [
197 197
                         'yii\bootstrap',
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     'modules' => [
204 204
         'audit' => [
205 205
             'class' => 'bedezign\yii2\audit\Audit',
206
-            'accessRoles' => ['audit-module'],
206
+            'accessRoles' => [ 'audit-module' ],
207 207
             'layout' => '@backend/views/layouts/box',
208 208
             'panels' => [
209 209
                 'audit/request',
@@ -211,15 +211,15 @@  discard block
 block discarded – undo
211 211
                 'audit/trail',
212 212
                 'audit/javascript', # enable app.assets.registerJSLoggingAsset via settings
213 213
                 // These provide special functionality and get loaded to activate it
214
-                'audit/error',      // Links the extra error reporting functions (`exception()` and `errorMessage()`)
215
-                'audit/extra',      // Links the data functions (`data()`)
216
-                'audit/curl',       // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
214
+                'audit/error', // Links the extra error reporting functions (`exception()` and `errorMessage()`)
215
+                'audit/extra', // Links the data functions (`data()`)
216
+                'audit/curl', // Links the curl tracking function (`curlBegin()`, `curlEnd()` and `curlExec()`)
217 217
                 //'audit/db',
218 218
                 //'audit/log',
219 219
                 //'audit/profiling',
220 220
             ],
221 221
             'ignoreActions' => [
222
-                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*':'_'),
222
+                (getenv('APP_AUDIT_DISABLE_ALL_ACTIONS') ? '*' : '_'),
223 223
                 'app/*',
224 224
                 'audit/*',
225 225
                 'help/*',
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
             'class' => 'lajax\translatemanager\Module',
279 279
             'root' => '@app/views',
280 280
             'layout' => '@backend/views/layouts/box',
281
-            'allowedIPs' => ['*'],
282
-            'roles' => ['translate-module'],
281
+            'allowedIPs' => [ '*' ],
282
+            'roles' => [ 'translate-module' ],
283 283
         ],
284 284
         'user' => [
285 285
             'class' => 'dektrium\user\Module',
Please login to merge, or discard this patch.