Passed
Push — 2.x ( df5dec...d1e533 )
by Terry
01:44
created
templates/panel/action_log_today.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,9 +60,12 @@
 block discarded – undo
60 60
                 </div>
61 61
             </div>
62 62
         </div>
63
-    <?php else : ?>
63
+    <?php else {
64
+    : ?>
64 65
         <div class="alert alert-danger">
65
-            <?php _e('panel', 'log_msg_no_logger', 'Sorry, you have to implement ActionLogger to use this function.'); ?>
66
+            <?php _e('panel', 'log_msg_no_logger', 'Sorry, you have to implement ActionLogger to use this function.');
67
+}
68
+?>
66 69
             
67 70
         </div>
68 71
     <?php endif; ?>
Please login to merge, or discard this patch.
templates/panel/action_log_yesterday.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,9 +60,12 @@
 block discarded – undo
60 60
                 </div>
61 61
             </div>
62 62
         </div>
63
-    <?php else : ?>
63
+    <?php else {
64
+    : ?>
64 65
         <div class="alert alert-danger">
65
-            <?php _e('panel', 'log_msg_no_logger', 'Sorry, you have to implement ActionLogger to use this function.'); ?>
66
+            <?php _e('panel', 'log_msg_no_logger', 'Sorry, you have to implement ActionLogger to use this function.');
67
+}
68
+?>
66 69
             
67 70
         </div>
68 71
     <?php endif; ?>
Please login to merge, or discard this patch.
templates/panel/xss_protection.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,8 @@  discard block
 block discarded – undo
62 62
             </tbdoy>
63 63
         </table>
64 64
     </div>
65
-    <?php else: ?>
65
+    <?php else {
66
+    : ?>
66 67
     <div id="so-table-loading" class="so-datatables">
67 68
         <div class="lds-css ng-scope">
68 69
             <div class="lds-ripple">
@@ -71,7 +72,9 @@  discard block
 block discarded – undo
71 72
             </div>
72 73
         </div>
73 74
     </div>
74
-    <?php endif; ?>
75
+    <?php endif;
76
+}
77
+?>
75 78
     <div id="so-table-container" class="so-datatables" style="display: none;">
76 79
         <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%">
77 80
             <thead>
Please login to merge, or discard this patch.
templates/panel/setting/daemon.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -304,9 +304,12 @@
 block discarded – undo
304 304
                 <div>
305 305
                     <?php if ($this->mode === 'demo') : ?>
306 306
                         <code id="code1" style="display: none">* * * * * root bash your_project_folder/vendor/shieldon/bin/iptables_bridge.sh --watch=your_watching_folder >> /var/log/shieldon.log 2>&1</code>
307
-                    <?php else: ?>
307
+                    <?php else {
308
+    : ?>
308 309
                         <code id="code1" style="display: none">* * * * * root bash <?php echo realpath(__DIR__ . '/../../../bin/iptables_bridge.sh') ?> --watch=<span id="iptables-watch-folder"></span> >> /var/log/shieldon.log 2>&1</code>
309
-                    <?php endif; ?>
310
+                    <?php endif;
311
+}
312
+?>
310 313
                     
311 314
                     <textarea id="code2" class="form-control" rows="4" style="font-size: 12px; font-family: monospace;"></textarea>
312 315
                 </div><br />
Please login to merge, or discard this patch.
templates/panel/template.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -355,13 +355,16 @@
 block discarded – undo
355 355
                                     <i class="fas fa-times-circle"></i>
356 356
                                 <?php endif; ?>
357 357
                             </div>
358
-                            <?php else: ?>
358
+                            <?php else {
359
+    : ?>
359 360
                                 <div class="icon-box">
360 361
                                     <span class="message-icon">
361 362
                                         <i class="fas fa-exclamation-circle"></i>
362 363
                                 </span>
363 364
                                 </div>
364
-                            <?php endif; ?>
365
+                            <?php endif;
366
+}
367
+?>
365 368
                         </div>
366 369
                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
367 370
                             <span aria-hidden="true">&times;</span>
Please login to merge, or discard this patch.