Passed
Push — master ( 3db37c...11f6ba )
by Mihail
04:15
created
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
         ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true],
111 111
         ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true]
112 112
     ]
113
-]);?>
113
+]); ?>
114 114
 
115 115
 <?= $form->field('galleryFreeId', 'hidden') ?>
116 116
 <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/layout/main.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,13 +188,16 @@
 block discarded – undo
188 188
                             <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?>
189 189
                                 <?php if (Obj::isLikeInt($bUrl)): // only text ?>
190 190
                                     <li class="active"><?= \App::$Security->strip_tags($bText) ?></li>
191
-                                <?php else: ?>
191
+                                <?php else {
192
+    : ?>
192 193
                                     <li>
193 194
                                         <a href="<?= \App::$Security->strip_tags($bUrl) ?>">
194 195
                                             <?= \App::$Security->strip_tags($bText) ?>
195 196
                                         </a>
196 197
                                     </li>
197
-                                <?php endif; ?>
198
+                                <?php endif;
199
+}
200
+?>
198 201
                             <?php endforeach; ?>
199 202
                         </ol>
200 203
                     <?php endif; ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/antivirus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 <script>
14 14
 window.jQ.push(function() {
15 15
     $.fn.runscan = function (first) {
16
-        $.getJSON("<?= \App::$Alias->scriptUrl .  '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) {
16
+        $.getJSON("<?= \App::$Alias->scriptUrl . '/api/main/antivirus?lang=' . \App::$Request->getLanguage() ?> . ", function (data) {
17 17
             if (first) {
18 18
                 totalScan = data.left;
19 19
                 progress = 0;
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Profile fields'), 'link' => ['profile/fieldlist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['profile/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         'items' => [
36 36
             [['text' => $model->getLabel('name')], ['text' => $model->name[\App::$Request->getLanguage()]]],
37 37
             [['text' => $model->getLabel('type')], ['text' => $model->type]],
38
-            [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']],
38
+            [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("' . $model->reg_exp . '", $input)']],
39 39
         ]
40 40
     ]
41 41
 ]);
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
     ]
67 67
 ]);
68 68
     ?>
69
-<?php else: ?>
69
+<?php else {
70
+    : ?>
70 71
     <p>No additional fields is added!</p>
71
-<?php endif; ?>
72 72
\ No newline at end of file
73
+<?php endif;
74
+}
75
+?>
73 76
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/group_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 <?php
26 26
 $items = [];
27
-foreach($records as $role) {
27
+foreach ($records as $role) {
28 28
     $permissions = explode(';', $role->permissions);
29 29
     $permissionsLabel = null;
30 30
     foreach ($permissions as $perm) {
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 $catConfigs = [];
17 17
 foreach ($model->categoryData['configs'] as $key=>$value) {
18
-    $catConfigs[$key] = (int)$value === 1;
18
+    $catConfigs[$key] = (int) $value === 1;
19 19
 }
20 20
 
21 21
 $catMeta = [
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,9 +78,12 @@
 block discarded – undo
78 78
             <span><i class="fa fa-eye"></i> <?= $item['views'] ?></span>
79 79
             <?php endif; ?>
80 80
         </div>
81
-        <?php else: ?>
81
+        <?php else {
82
+    : ?>
82 83
         <hr />
83
-        <?php endif; ?>
84
+        <?php endif;
85
+}
86
+?>
84 87
         <div class="row">
85 88
             <div class="col-md-12">
86 89
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
Please login to merge, or discard this patch.