Completed
Push — master ( d3241b...10185f )
by Tobias
14:42
created
src/views/site/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 
6 6
 <div class="site-index">
7 7
 
8
-    <?= \dmstr\modules\prototype\widgets\TwigWidget::widget(['registerMenuItems' => true]) ?>
8
+    <?= \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'registerMenuItems' => true ]) ?>
9 9
 
10 10
 </div>
Please login to merge, or discard this patch.
src/views/layouts/container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
             <?=
6 6
             \yii\widgets\Breadcrumbs::widget(
7 7
                 [
8
-                    'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
8
+                    'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [ ],
9 9
                 ]
10 10
             ) ?>
11 11
         </div>
Please login to merge, or discard this patch.
src/views/layouts/_modal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
             <p style="line-height: 1.6em">
25 25
                 Application Version <span class="label label-info"><?= getenv('APP_NAME') ?>-<?= APP_VERSION ?></span>
26 26
                 <br>
27
-                Virtual Host <span class="label label-default"><?= isset($_SERVER['HTTP_HOST']) ?
28
-                        $_SERVER['HTTP_HOST'] : '' ?></span>
27
+                Virtual Host <span class="label label-default"><?= isset($_SERVER[ 'HTTP_HOST' ]) ?
28
+                        $_SERVER[ 'HTTP_HOST' ] : '' ?></span>
29 29
                 <br/>
30 30
                 Hostname <span class="label label-default"><?= getenv('HOSTNAME') ?: 'local' ?></span>
31 31
             </p>
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             <hr/>
39 39
 
40 40
             <div class="pull-right">
41
-                <?= Html::a(FA::icon(FA::_COG), ['/backend'], ['class' => 'btn btn-default btn-xs']) ?>
41
+                <?= Html::a(FA::icon(FA::_COG), [ '/backend' ], [ 'class' => 'btn btn-default btn-xs' ]) ?>
42 42
             </div>
43 43
             <div class="clearfix"></div>
44 44
 
Please login to merge, or discard this patch.
src/commands/AppController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
     public function actionShowConfig($key = null)
28 28
     {
29 29
         // get config from global variable (TODO)
30
-        $data = $GLOBALS['config'];
30
+        $data = $GLOBALS[ 'config' ];
31 31
         if ($key) {
32 32
             $keys = explode('.', $key);
33
-            if (isset($keys[0])) {
34
-                $data = $GLOBALS['config'][$keys[0]];
33
+            if (isset($keys[ 0 ])) {
34
+                $data = $GLOBALS[ 'config' ][ $keys[ 0 ] ];
35 35
             }
36
-            if (isset($keys[1])) {
37
-                $data = $GLOBALS['config'][$keys[0]][$keys[1]];
36
+            if (isset($keys[ 1 ])) {
37
+                $data = $GLOBALS[ 'config' ][ $keys[ 0 ] ][ $keys[ 1 ] ];
38 38
             }
39 39
         }
40 40
         $this->stdout(VarDumper::dumpAsString($data));
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
         $this->stdout("\nDatabase\n");
77 77
         $this->stdout("--------\n");
78 78
         $this->run('db/create');
79
-        $this->run('migrate/up', ['interactive' => (bool) getenv('APP_INTERACTIVE')]);
79
+        $this->run('migrate/up', [ 'interactive' => (bool) getenv('APP_INTERACTIVE') ]);
80 80
 
81 81
         $this->stdout("\nCleanup\n");
82 82
         $this->stdout("-------\n");
83 83
         $this->run('cache/flush-all');
84
-        $this->run('audit/cleanup', ['age' => 30, 'interactive' => (bool) getenv('APP_INTERACTIVE')]);
85
-        $this->run('app/clear-assets', ['interactive' => (bool) getenv('APP_INTERACTIVE')]);
84
+        $this->run('audit/cleanup', [ 'age' => 30, 'interactive' => (bool) getenv('APP_INTERACTIVE') ]);
85
+        $this->run('app/clear-assets', [ 'interactive' => (bool) getenv('APP_INTERACTIVE') ]);
86 86
 
87 87
         $this->stdout("\nUser\n");
88 88
         $this->stdout("----\n");
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 'default' => getenv('APP_ADMIN_PASSWORD') ?: \Yii::$app->security->generateRandomString(8),
93 93
             ]
94 94
         );
95
-        $this->run('user/create', [getenv('APP_ADMIN_EMAIL'), 'admin', $adminPassword]);
95
+        $this->run('user/create', [ getenv('APP_ADMIN_EMAIL'), 'admin', $adminPassword ]);
96 96
 
97 97
         $this->stdout("\n\nDone.\n");
98 98
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $command = new Command($cmd);
115 115
 
116 116
         // Prompt user
117
-        $delete = $this->confirm("\nDo you really want to delete web assets?", ['default' => true]);
117
+        $delete = $this->confirm("\nDo you really want to delete web assets?", [ 'default' => true ]);
118 118
 
119 119
         if ($delete) {
120 120
             // Try to execute $command
Please login to merge, or discard this patch.
src/config/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                     'class' => 'yii\log\FileTarget',
48 48
                     'logFile' => '@runtime/logs/console.log',
49 49
                     //'levels' => ['info', 'trace'],
50
-                    'logVars' => [],
50
+                    'logVars' => [ ],
51 51
                     'enabled' => YII_DEBUG && !YII_ENV_TEST,
52 52
                 ],
53 53
             ],
Please login to merge, or discard this patch.
src/config/web.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 
12 12
 // Settings for web-application only
13 13
 return [
14
-    'on registerMenuItems' => function ($event) {
15
-        Yii::$app->params['context.menuItems'] = \yii\helpers\ArrayHelper::merge(
16
-            Yii::$app->params['context.menuItems'],
14
+    'on registerMenuItems' => function($event) {
15
+        Yii::$app->params[ 'context.menuItems' ] = \yii\helpers\ArrayHelper::merge(
16
+            Yii::$app->params[ 'context.menuItems' ],
17 17
             $event->sender->getMenuItems()
18 18
         );
19 19
         $event->handled = true;
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
                 [
29 29
                     'class' => 'codemix\streamlog\Target',
30 30
                     'url' => 'php://stdout',
31
-                    'levels' => ['info', 'trace'],
32
-                    'logVars' => [],
31
+                    'levels' => [ 'info', 'trace' ],
32
+                    'logVars' => [ ],
33 33
                     'enabled' => YII_DEBUG && !YII_ENV_TEST,
34 34
                 ],
35 35
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         'settings' => [
54 54
             'class' => 'pheme\settings\Module',
55 55
             'layout' => '@backend/views/layouts/box',
56
-            'accessRoles' => ['settings-module'],
56
+            'accessRoles' => [ 'settings-module' ],
57 57
         ],
58 58
     ],
59 59
 ];
Please login to merge, or discard this patch.
src/config/main.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 Yii::setAlias('@webroot', '@root/web');
27 27
 
28 28
 // Use a closure to not pollute the global namespace
29
-return call_user_func(function () {
29
+return call_user_func(function() {
30 30
 
31 31
     /*function checkFile(){
32 32
         if (file_exists($file)) {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         "{$configDir}/".APP_TYPE.'.php' => true,
41 41
         "{$configDir}/common-".YII_ENV.'.php' => false,
42 42
         "{$configDir}/".APP_TYPE.'-'.YII_ENV.'.php' => false,
43
-        "{$configDir}/".APP_TYPE.'-'.((YII_DEBUG)?'debug':'release').'.php' => false,
43
+        "{$configDir}/".APP_TYPE.'-'.((YII_DEBUG) ? 'debug' : 'release').'.php' => false,
44 44
     ];
45 45
 
46 46
     if (!empty(getenv('APP_CONFIG_FILE'))) {
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
         // Merge additional configurations
49 49
         foreach ($additionalConfigFiles as $alias) {
50 50
             $file = Yii::getAlias($alias);
51
-            $configFiles[$file] = true;
51
+            $configFiles[ $file ] = true;
52 52
         }
53 53
     }
54 54
 
55 55
     // Merge configurations
56
-    $config = [];
56
+    $config = [ ];
57 57
     //var_dump($configFiles);exit;
58 58
     Yii::trace($configFiles, __METHOD__);
59 59
     foreach ($configFiles as $file => $isRequired) {
Please login to merge, or discard this patch.
web/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 require($rootPath.'/src/config/env.php');
7 7
 
8 8
 // Define framework & application constants
9
-defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
9
+defined('YII_DEBUG') or define('YII_DEBUG', (boolean) getenv('YII_DEBUG'));
10 10
 defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV'));
11 11
 defined('APP_TYPE') or define('APP_TYPE', 'web');
12 12
 
Please login to merge, or discard this patch.
src/views/layouts/main.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 // SEO
44 44
 $route = Url::toRoute(Yii::$app->controller->action->uniqueId);
45 45
 if ($keywords = \Yii::$app->settings->get($route, 'app.seo.keywords', null)) {
46
-    $this->registerMetaTag(['name' => 'keywords', 'content' => $keywords]);
46
+    $this->registerMetaTag([ 'name' => 'keywords', 'content' => $keywords ]);
47 47
 }
48 48
 if ($description = \Yii::$app->settings->get($route, 'app.seo.descriptions', null)) {
49
-    $this->registerMetaTag(['name' => 'description', 'content' => $description]);
49
+    $this->registerMetaTag([ 'name' => 'description', 'content' => $description ]);
50 50
 }
51 51
 
52 52
 if ($favicon = \Yii::$app->settings->get('faviconPng', 'app.assets', null)) {
53
-    $this->registerLinkTag(['rel' => 'shortcut icon', 'type'=>'image/png', 'href' => $favicon]);
53
+    $this->registerLinkTag([ 'rel' => 'shortcut icon', 'type'=>'image/png', 'href' => $favicon ]);
54 54
 }
55 55
 
56 56
 ?>
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
 <?php
74 74
 if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) {
75
-    echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']);
75
+    echo \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'key' => '_navbar' ]);
76 76
 } else {
77 77
     echo $this->render('_navbar');
78 78
 }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 </div>
86 86
 
87 87
 <footer class="footer">
88
-    <?= Cell::widget(['id' => '_footer', 'requestParam' => '_global']) ?>
88
+    <?= Cell::widget([ 'id' => '_footer', 'requestParam' => '_global' ]) ?>
89 89
 </footer>
90 90
 
91 91
 <div class="phd-info" style="position: fixed; z-index: 1200; bottom: 0px; left: 10px; padding: 30px 0 0px; opacity: .3">
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     <?= Html::a(
94 94
         '<i class="fa fa-heartbeat"></i>',
95 95
         '#',
96
-        ['class' => 'text-muted', 'data-toggle' => 'modal', 'data-target' => '#infoModal']
96
+        [ 'class' => 'text-muted', 'data-toggle' => 'modal', 'data-target' => '#infoModal' ]
97 97
     ) ?>
98 98
     </p>
99 99
 </div>
Please login to merge, or discard this patch.