Completed
Push — master ( ff3def...d1385a )
by Tobias
10:49
created
src/views/layouts/main.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,10 +69,10 @@
 block discarded – undo
69 69
 <!-- Navbar -->
70 70
 <?php
71 71
 if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) {
72
-                      echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']);
73
-                  } else {
74
-                      echo $this->render('_navbar');
75
-                  }
72
+                        echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']);
73
+                    } else {
74
+                        echo $this->render('_navbar');
75
+                    }
76 76
 
77 77
 ?>
78 78
 
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 /* @var $this \yii\web\View */
24 24
 /* @var $content string */
25 25
 
26
-$this->title .= ' - ' . getenv('APP_TITLE');
27
-$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '') . $this->title;
26
+$this->title .= ' - '.getenv('APP_TITLE');
27
+$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '').$this->title;
28 28
 
29 29
 SettingsAsset::register($this);
30 30
 
@@ -32,18 +32,18 @@  discard block
 block discarded – undo
32 32
     \yii\base\Event::on(
33 33
         \yii\web\View::className(),
34 34
         \yii\web\View::EVENT_AFTER_RENDER,
35
-        function ($e) {
35
+        function($e) {
36 36
             // disable unbundled asset
37
-            $e->sender->assetBundles['yii\\bootstrap\\BootstrapAsset'] = null;
37
+            $e->sender->assetBundles[ 'yii\\bootstrap\\BootstrapAsset' ] = null;
38 38
             // disable bundled asset
39
-            $e->sender->assetBundles['bootstrap'] = null;
39
+            $e->sender->assetBundles[ 'bootstrap' ] = null;
40 40
         }
41 41
     );
42 42
 }
43 43
 
44 44
 // Favicon
45 45
 if ($favicon = \Yii::$app->settings->get('faviconPng', 'app.assets', null)) {
46
-    $this->registerLinkTag(['rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon]);
46
+    $this->registerLinkTag([ 'rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon ]);
47 47
 }
48 48
 
49 49
 ?>
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 
65 65
 <?php $this->beginBody() ?>
66 66
 
67
-<?= TwigWidget::widget(['key' => '_beginBody', 'renderEmpty' => false]) ?>
67
+<?= TwigWidget::widget([ 'key' => '_beginBody', 'renderEmpty' => false ]) ?>
68 68
 
69 69
 <!-- Navbar -->
70 70
 <?php
71 71
 if (Yii::$app->settings->get('enableTwigNavbar', 'app.layout', false)) {
72
-                      echo \dmstr\modules\prototype\widgets\TwigWidget::widget(['key' => '_navbar']);
72
+                      echo \dmstr\modules\prototype\widgets\TwigWidget::widget([ 'key' => '_navbar' ]);
73 73
                   } else {
74 74
                       echo $this->render('_navbar');
75 75
                   }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 ?>
78 78
 
79 79
 <!-- Content -->
80
-<?= TwigWidget::widget(['key' => '_beforeContent', 'renderEmpty' => false]) ?>
80
+<?= TwigWidget::widget([ 'key' => '_beforeContent', 'renderEmpty' => false ]) ?>
81 81
 
82 82
 <div class="wrap">
83 83
 
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
 
86 86
 </div>
87 87
 
88
-<?= TwigWidget::widget(['key' => '_afterContent', 'renderEmpty' => false]) ?>
88
+<?= TwigWidget::widget([ 'key' => '_afterContent', 'renderEmpty' => false ]) ?>
89 89
 
90 90
 
91 91
 <!-- Footer -->
92 92
 <footer class="footer">
93
-    <?= Cell::widget(['id' => '_footer', 'requestParam' => '_global']) ?>
93
+    <?= Cell::widget([ 'id' => '_footer', 'requestParam' => '_global' ]) ?>
94 94
 </footer>
95 95
 
96 96
 <!-- User flash messages -->
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                         ],
105 105
                     ]) ?>
106 106
 
107
-<?= TwigWidget::widget(['key' => '_endBody', 'renderEmpty' => false]) ?>
107
+<?= TwigWidget::widget([ 'key' => '_endBody', 'renderEmpty' => false ]) ?>
108 108
 
109 109
 <?php if (Yii::$app->user->can('backend_default_index')): ?>
110 110
 
Please login to merge, or discard this patch.