Passed
Push — master ( c86e8c...1b1f16 )
by Mihail
04:54
created
Apps/View/Front/default/widgets/comments/show.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,8 @@  discard block
 block discarded – undo
77 77
     </div>
78 78
     <?php if (\App::$Captcha->isFull()): ?>
79 79
 		<div class="col-md-offset-3 col-md-9"><?= \App::$Captcha->get() ?></div>
80
-    <?php else: ?>
80
+    <?php else {
81
+    : ?>
81 82
     <div class="form-group">
82 83
         <label for="guest-captcha" class="col-sm-3 control-label"><?= __('Captcha') ?>:</label>
83 84
         <div class="col-sm-9">
@@ -85,7 +86,9 @@  discard block
 block discarded – undo
85 86
             <input id="guest-captcha" type="text" name="captcha" class="form-control" required>
86 87
         </div>
87 88
     </div>
88
-    <?php endif; ?>
89
+    <?php endif;
90
+}
91
+?>
89 92
     <?php endif; ?>
90 93
     <textarea class="form-control wysi-comments" name="message"></textarea>
91 94
 </form>
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcomment/default.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,12 @@
 block discarded – undo
18 18
 			<li><i class="glyphicon glyphicon-user"></i>
19 19
 			<?php if ((int)$comment['user']['id'] > 0): ?>
20 20
 				<?= Url::link(['profile/show', $comment['user']['id']], $comment['user']['name']) ?>
21
-			<?php else: ?>
21
+			<?php else {
22
+    : ?>
22 23
 				<?= $comment['user']['name'] ?>
23
-			<?php endif; ?>
24
+			<?php endif;
25
+}
26
+?>
24 27
 			</li>
25 28
 		</ul>
26 29
 	</li>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,9 +74,12 @@  discard block
 block discarded – undo
74 74
         <?php if ($properties['author'] === true): ?>
75 75
             <?php if ($model->authorId !== null && $model->authorId > 0): ?>
76 76
                 <span class="spaced"><i class="glyphicon glyphicon-user"></i> <?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span>
77
-            <?php else: ?>
77
+            <?php else {
78
+    : ?>
78 79
                 <span class="spaced"><i class="glyphicon glyphicon-user"></i> <s><?= $model->authorName ?></s></span>
79
-            <?php endif; ?>
80
+            <?php endif;
81
+}
82
+?>
80 83
         <?php endif; ?>
81 84
         <?php if ($properties['views'] === true): ?>
82 85
         <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span>
@@ -85,9 +88,12 @@  discard block
 block discarded – undo
85 88
         <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span>
86 89
         <?php endif; ?>
87 90
     </div>
88
-    <?php else: ?>
91
+    <?php else {
92
+    : ?>
89 93
     <hr />
90
-    <?php endif; ?>
94
+    <?php endif;
95
+}
96
+?>
91 97
     <?php if ($trash): ?>
92 98
     <p class="alert alert-danger"><i class="glyphicon glyphicon-trash"></i> <?= __('This content is placed in trash') ?></p>
93 99
     <?php endif; ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,9 +109,12 @@
 block discarded – undo
109 109
             <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $item['views'] ?></span>
110 110
             <?php endif; ?>
111 111
         </div>
112
-        <?php else: ?>
112
+        <?php else {
113
+    : ?>
113 114
         <hr />
114
-        <?php endif; ?>
115
+        <?php endif;
116
+}
117
+?>
115 118
         <div class="row">
116 119
             <div class="col-md-12">
117 120
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/user/_tabs.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,9 @@
 block discarded – undo
4 4
 use Ffcms\Core\Helper\Type\Str;
5 5
 
6 6
 $args = [];
7
-if (isset($r) && Any::isStr($r) && Str::length($r) > 1)
7
+if (isset($r) && Any::isStr($r) && Str::length($r) > 1) {
8 8
     $args['r'] = $r;
9
+}
9 10
 
10 11
 echo \Ffcms\Core\Helper\HTML\Bootstrap\Nav::display([
11 12
     'property' => ['class' => 'nav-tabs'],
Please login to merge, or discard this patch.
Apps/View/Front/default/layout/main.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,11 +139,14 @@
 block discarded – undo
139 139
                 <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?>
140 140
                     <?php if (Any::isInt($bUrl)): // only text ?>
141 141
                     <li class="active"><?= \App::$Security->strip_tags($bText) ?></li>
142
-                    <?php else: ?>
142
+                    <?php else {
143
+    : ?>
143 144
                     <li>
144 145
                         <a href="<?= \App::$Security->strip_tags($bUrl) ?>"><?= \App::$Security->strip_tags($bText) ?></a>
145 146
                     </li>
146
-                    <?php endif; ?>
147
+                    <?php endif;
148
+}
149
+?>
147 150
                 <?php endforeach; ?>
148 151
             </ol>
149 152
             <?php endif; ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/read.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
     </div>
90 90
 
91 91
     <?= $form->finish() ?>
92
-<?php else: ?>
92
+<?php else {
93
+    : ?>
93 94
 <p class="alert alert-danger"><?= __('This request is closed! No answers is allowed') ?></p>
94
-<?php endif; ?>
95 95
\ No newline at end of file
96
+<?php endif;
97
+}
98
+?>
96 99
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@  discard block
 block discarded – undo
60 60
                 </a>
61 61
             </div>
62 62
         </div>
63
-        <?php else: ?>
63
+        <?php else {
64
+    : ?>
64 65
         <div class="row">
65 66
             <div class="col-md-8" style="padding-right: 0;">
66 67
                 <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>">
@@ -77,7 +78,9 @@  discard block
 block discarded – undo
77 78
                 <button class="btn btn-block btn-danger" id="reduceRating">-</button>
78 79
             </div>
79 80
         </div>
80
-        <?php endif; ?>
81
+        <?php endif;
82
+}
83
+?>
81 84
         <?php endif; ?>
82 85
         <?php
83 86
         $userMenu = null;
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/updates.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
     echo $form->submitButton(__('Download update'), ['class' => 'btn btn-primary']);
56 56
     echo $form->finish();
57 57
     ?>
58
-<?php else: ?>
58
+<?php else {
59
+    : ?>
59 60
     <p><?= __('Your system is up to date. No updates is available') ?></p>
60
-<?php endif; ?>
61
+<?php endif;
62
+}
63
+?>
Please login to merge, or discard this patch.