Passed
Push — master ( 0456bd...25822b )
by Mihail
07:10
created
Apps/View/Admin/default/main/yandex_connect.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,9 +43,12 @@
 block discarded – undo
43 43
         'href' => 'https://oauth.yandex.ru/authorize?response_type=token&client_id=' . $model->appid . '&redirect_uri=' . Url::to('main/yandextoken'),
44 44
         'class' => 'btn-success'
45 45
     ]) ?>
46
-<?php else: ?>
46
+<?php else {
47
+    : ?>
47 48
     <?= $this->bootstrap()->alert('warning', __('Create oauth application before get token')) ?>
48
-<?php endif; ?>
49
+<?php endif;
50
+}
51
+?>
49 52
 
50 53
 <?= $form->stop() ?>
51 54
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,8 @@  discard block
 block discarded – undo
82 82
                 'href' => Url::to('main/yandexconnect'),
83 83
                 'class' => 'btn-danger'
84 84
             ]) ?>
85
-        <?php else: ?>
85
+        <?php else {
86
+    : ?>
86 87
             <div class="row">
87 88
                 <div class="col-md-8">
88 89
                     <canvas id="visitChart" width="100%" height="50"></canvas>
@@ -91,7 +92,9 @@  discard block
 block discarded – undo
91 92
                     <canvas id="sourcesChart" width="100%" height="90"></canvas>
92 93
                 </div>
93 94
             </div>
94
-        <?php endif; ?>
95
+        <?php endif;
96
+}
97
+?>
95 98
     </div>
96 99
 </div>
97 100
 
Please login to merge, or discard this patch.