Passed
Push — master ( 09d577...6e0adc )
by Andrey
04:55
created
config/admin/admin.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
                 'home' => HomeController::class,
61 61
                 'sitemap' => SitemapController::class
62 62
             ],
63
-            'accessRoles' => ['admin', 'manager'],
63
+            'accessRoles' => [ 'admin', 'manager' ],
64 64
             'components' => [
65
-                'view' => require __DIR__ . '/view-component.php',
66
-                'multilanguage-validate-component' => require __DIR__ .'/multilanguage-validate-component.php',
65
+                'view' => require __DIR__.'/view-component.php',
66
+                'multilanguage-validate-component' => require __DIR__.'/multilanguage-validate-component.php',
67 67
             ],
68 68
             'isMultilanguage' => true,
69 69
         ],
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
                 'permissions' => PermissionController::class,
76 76
                 'profiles' => ProfileController::class
77 77
             ],
78
-            'accessRoles' => ['admin', 'manager'],
78
+            'accessRoles' => [ 'admin', 'manager' ],
79 79
             'components' => [
80
-                'view' => require __DIR__ . '/view-component.php',
80
+                'view' => require __DIR__.'/view-component.php',
81 81
             ],
82 82
         ],
83 83
         'mfuploader' => [
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
                 'text-album' => TextAlbumController::class,
95 95
                 'other-album' => OtherAlbumController::class,
96 96
             ],
97
-            'accessRoles' => ['admin', 'manager'],
97
+            'accessRoles' => [ 'admin', 'manager' ],
98 98
             'defaultStorageType' => MFUModule::STORAGE_TYPE_LOCAL,
99
-            'previewOptions' => require __DIR__ . '/../preview-options.php',
99
+            'previewOptions' => require __DIR__.'/../preview-options.php',
100 100
             'components' => [
101 101
                 'local-upload-component' => [
102 102
                     'class' => LocalUploadComponent::class,
103 103
                     'checkExtensionByMimeType' => false,
104
-                    'uploadRoot' => dirname($_SERVER['SCRIPT_FILENAME'])
104
+                    'uploadRoot' => dirname($_SERVER[ 'SCRIPT_FILENAME' ])
105 105
                 ],
106 106
                 /*'s3-upload-component' => [
107 107
                     'class' => S3UploadComponent::class,
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
                     'region' => 'us-west-2',
111 111
                     's3DefaultBucket' => 'filesmodule2',
112 112
                 ],*/
113
-                'view' => require __DIR__ . '/view-component.php',
113
+                'view' => require __DIR__.'/view-component.php',
114 114
             ],
115
-            'publicBaseUrl' => $webConfig['homeUrl']
115
+            'publicBaseUrl' => $webConfig[ 'homeUrl' ]
116 116
         ]
117 117
     ],
118 118
     'components' => [
Please login to merge, or discard this patch.
config/console.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@  discard block
 block discarded – undo
3 3
 use Itstructure\AdminModule\Module as AdminModule;
4 4
 use Itstructure\MFUploader\Module as MFUModule;
5 5
 
6
-$params = require __DIR__ . '/params.php';
7
-$db = require __DIR__ . '/db.php';
8
-$baseUrl = require __DIR__ . '/base-url.php';
6
+$params = require __DIR__.'/params.php';
7
+$db = require __DIR__.'/db.php';
8
+$baseUrl = require __DIR__.'/base-url.php';
9 9
 
10 10
 $config = [
11 11
     'id' => 'yii2-template-multilanguage-console',
12 12
     'basePath' => dirname(__DIR__),
13
-    'bootstrap' => ['log'],
13
+    'bootstrap' => [ 'log' ],
14 14
     'controllerNamespace' => 'app\commands',
15 15
     'aliases' => [
16 16
         '@bower' => '@vendor/bower-asset',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             'targets' => [
33 33
                 [
34 34
                     'class' => 'yii\log\FileTarget',
35
-                    'levels' => ['error', 'warning'],
35
+                    'levels' => [ 'error', 'warning' ],
36 36
                 ],
37 37
             ],
38 38
         ],
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 
65 65
 if (YII_ENV_DEV) {
66 66
     // configuration adjustments for 'dev' environment
67
-    $config['bootstrap'][] = 'gii';
68
-    $config['modules']['gii'] = [
67
+    $config[ 'bootstrap' ][ ] = 'gii';
68
+    $config[ 'modules' ][ 'gii' ] = [
69 69
         'class' => 'yii\gii\Module',
70 70
     ];
71 71
 }
Please login to merge, or discard this patch.
config/web.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$params = require __DIR__ . '/params.php';
4
-$db = require __DIR__ . '/db.php';
5
-$translations = require __DIR__ . '/translations.php';
6
-$baseUrl = require __DIR__ . '/base-url.php';
3
+$params = require __DIR__.'/params.php';
4
+$db = require __DIR__.'/db.php';
5
+$translations = require __DIR__.'/translations.php';
6
+$baseUrl = require __DIR__.'/base-url.php';
7 7
 
8 8
 $config = [
9 9
     'id' => 'yii2_template_multilanguage',
10 10
     'version' => '1.0.0',
11 11
     'basePath' => dirname(__DIR__),
12 12
     'homeUrl' => $baseUrl,
13
-    'bootstrap' => ['log'],
13
+    'bootstrap' => [ 'log' ],
14 14
     'language' => 'en-US',
15 15
     'aliases' => [
16 16
         '@bower' => '@vendor/bower-asset',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             'targets' => [
53 53
                 [
54 54
                     'class' => 'yii\log\FileTarget',
55
-                    'levels' => ['error', 'warning'],
55
+                    'levels' => [ 'error', 'warning' ],
56 56
                 ],
57 57
             ],
58 58
         ],
@@ -102,18 +102,18 @@  discard block
 block discarded – undo
102 102
 
103 103
 if (YII_ENV_DEV) {
104 104
     // configuration adjustments for 'dev' environment
105
-    $config['bootstrap'][] = 'debug';
106
-    $config['modules']['debug'] = [
105
+    $config[ 'bootstrap' ][ ] = 'debug';
106
+    $config[ 'modules' ][ 'debug' ] = [
107 107
         'class' => 'yii\debug\Module',
108 108
         // uncomment the following to add your IP if you are not connecting from localhost.
109
-        'allowedIPs' => ['127.0.0.1', '::1', '*'],
109
+        'allowedIPs' => [ '127.0.0.1', '::1', '*' ],
110 110
     ];
111 111
 
112
-    $config['bootstrap'][] = 'gii';
113
-    $config['modules']['gii'] = [
112
+    $config[ 'bootstrap' ][ ] = 'gii';
113
+    $config[ 'modules' ][ 'gii' ] = [
114 114
         'class' => 'yii\gii\Module',
115 115
         // uncomment the following to add your IP if you are not connecting from localhost.
116
-        'allowedIPs' => ['127.0.0.1', '::1', '*'],
116
+        'allowedIPs' => [ '127.0.0.1', '::1', '*' ],
117 117
     ];
118 118
 }
119 119
 
Please login to merge, or discard this patch.