Passed
Push — 2.x ( a1962c...4a3192 )
by Terry
02:33
created
templates/panel/action_log_past_seven_days.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/iptables_manager.php 2 patches
Braces   +17 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,9 +46,18 @@  discard block
 block discarded – undo
46 46
                         <option value="null">---</option>
47 47
                         <?php for ($i = 32; $i > 0; $i--) : ?>
48 48
                             <?php $label = $i;  ?>
49
-                            <?php if ($i === 8) $label = $i . ' (A)'; ?>
50
-                            <?php if ($i === 16) $label = $i . ' (B)'; ?>
51
-                            <?php if ($i === 24) $label = $i . ' (C)'; ?>
49
+                            <?php if ($i === 8) {
50
+    $label = $i . ' (A)';
51
+}
52
+?>
53
+                            <?php if ($i === 16) {
54
+    $label = $i . ' (B)';
55
+}
56
+?>
57
+                            <?php if ($i === 24) {
58
+    $label = $i . ' (C)';
59
+}
60
+?>
52 61
                             <option value="<?php echo $i; ?>"><?php echo $label; ?></option>
53 62
                         <?php endfor; ?>
54 63
                     </select>
@@ -122,7 +131,8 @@  discard block
 block discarded – undo
122 131
             </tbdoy>
123 132
         </table>
124 133
     </div>
125
-    <?php else: ?>
134
+    <?php else {
135
+    : ?>
126 136
     <div id="so-table-loading" class="so-datatables">
127 137
         <div class="lds-css ng-scope">
128 138
             <div class="lds-ripple">
@@ -131,7 +141,9 @@  discard block
 block discarded – undo
131 141
             </div>
132 142
         </div>
133 143
     </div>
134
-    <?php endif; ?>
144
+    <?php endif;
145
+}
146
+?>
135 147
     <div id="so-table-container" class="so-datatables" style="display: none;">
136 148
         <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%">
137 149
             <thead>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                     <select name="subnet" class="regular" id="subnet">
60 60
                         <option value="null">---</option>
61 61
                         <?php for ($i = 32; $i > 0; $i--) : ?>
62
-                            <?php $label = $i;  ?>
62
+                            <?php $label = $i; ?>
63 63
                             <?php if ($i === 8) $label = $i . ' (A)'; ?>
64 64
                             <?php if ($i === 16) $label = $i . ' (B)'; ?>
65 65
                             <?php if ($i === 24) $label = $i . ' (C)'; ?>
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                     <select name="subnet" class="regular" id="subnet">
72 72
                         <option value="null">---</option>
73 73
                         <?php for ($i = 128; $i > 0; $i--) : ?>
74
-                            <?php $label = $i;  ?>
74
+                            <?php $label = $i; ?>
75 75
                             <option value="<?php echo $i; ?>"><?php echo $label; ?></option>
76 76
                         <?php endfor; ?>
77 77
                     </select>
Please login to merge, or discard this patch.
templates/panel/authentication.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/js/chart.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,11 @@
 block discarded – undo
21 21
     var pageviewChartString = [<?php echo ($past_seven_hours['pageview_chart_string'] ?? ''); ?>];
22 22
     var captchaChartString = [<?php echo ($past_seven_hours['captcha_chart_string'] ?? ''); ?>];
23 23
     var labelChartString = [<?php echo ($past_seven_hours['label_chart_string'] ?? ''); ?>];
24
-    <?php else : ?>
25
-    var pageviewChartString = [<?php echo ($period_data['pageview_chart_string'] ?? ''); ?>];
24
+    <?php else {
25
+    : ?>
26
+    var pageviewChartString = [<?php echo ($period_data['pageview_chart_string'] ?? '');
27
+}
28
+?>];
26 29
     var captchaChartString = [<?php echo ($period_data['captcha_chart_string'] ?? ''); ?>];
27 30
     var labelChartString = [<?php echo ($period_data['label_chart_string'] ?? ''); ?>];
28 31
     <?php endif; ?>
Please login to merge, or discard this patch.
templates/panel/ip_manager.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@  discard block
 block discarded – undo
69 69
             </tbdoy>
70 70
         </table>
71 71
     </div>
72
-    <?php else: ?>
72
+    <?php else {
73
+    : ?>
73 74
     <div id="so-table-loading" class="so-datatables">
74 75
         <div class="lds-css ng-scope">
75 76
             <div class="lds-ripple">
@@ -78,7 +79,9 @@  discard block
 block discarded – undo
78 79
             </div>
79 80
         </div>
80 81
     </div>
81
-    <?php endif; ?>
82
+    <?php endif;
83
+}
84
+?>
82 85
 
83 86
     <div id="so-table-container" class="so-datatables" style="display: none;">
84 87
         <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%">
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         </div>
72 72
     </div>
73 73
     <br />
74
-    <?php if ( empty($ip_list)) : ?>
74
+    <?php if (empty($ip_list)) : ?>
75 75
     <div id="so-table-container" class="so-datatables">
76 76
         <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%">
77 77
             <tbody>
Please login to merge, or discard this patch.
src/Firewall/Component/Rdns.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public function isDenied(): bool
46 46
     {
47 47
         if (!empty($this->deniedList)) {
48
-            if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $this->rdns)) {
48
+            if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $this->rdns)) {
49 49
                 return true;
50 50
             }
51 51
         }
Please login to merge, or discard this patch.
src/Firewall/Component/UserAgent.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
         $this->deniedList = [
50 50
 
51 51
             // Backlink crawlers
52
-            'Ahrefs',     // http://ahrefs.com/robot/
53
-            'roger',      // rogerbot (SEOMOZ)
54
-            'moz.com',    // SEOMOZ crawlers
55
-            'MJ12bot',    // Majestic crawlers
56
-            'findlinks',  // http://wortschatz.uni-leipzig.de/findlinks
57
-            'Semrush',    // http://www.semrush.com/bot.html
52
+            'Ahrefs', // http://ahrefs.com/robot/
53
+            'roger', // rogerbot (SEOMOZ)
54
+            'moz.com', // SEOMOZ crawlers
55
+            'MJ12bot', // Majestic crawlers
56
+            'findlinks', // http://wortschatz.uni-leipzig.de/findlinks
57
+            'Semrush', // http://www.semrush.com/bot.html
58 58
     
59 59
             // Web information crawlers
60
-            'domain',     // Domain name information crawlers.
61
-            'copyright',  // Copyright information crawlers.
60
+            'domain', // Domain name information crawlers.
61
+            'copyright', // Copyright information crawlers.
62 62
     
63 63
             // Others
64
-            'archive',    // Wayback machine
64
+            'archive', // Wayback machine
65 65
         ];
66 66
     }
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function isDenied(): bool
72 72
     {
73 73
         if (!empty($this->deniedList)) {
74
-            if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $this->userAgent)) {
74
+            if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $this->userAgent)) {
75 75
                 return true;
76 76
             }
77 77
         }
Please login to merge, or discard this patch.
src/Firewall/Middleware/UserAgent.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
     protected $deniedList = [
41 41
 
42 42
         // Backlink crawlers
43
-        'Ahrefs',     // http://ahrefs.com/robot/
44
-        'roger',      // rogerbot (SEOMOZ)
45
-        'moz.com',    // SEOMOZ crawlers
46
-        'MJ12bot',    // Majestic crawlers
47
-        'findlinks',  // http://wortschatz.uni-leipzig.de/findlinks
48
-        'Semrush',    // http://www.semrush.com/bot.html
43
+        'Ahrefs', // http://ahrefs.com/robot/
44
+        'roger', // rogerbot (SEOMOZ)
45
+        'moz.com', // SEOMOZ crawlers
46
+        'MJ12bot', // Majestic crawlers
47
+        'findlinks', // http://wortschatz.uni-leipzig.de/findlinks
48
+        'Semrush', // http://www.semrush.com/bot.html
49 49
 
50 50
         // Web information crawlers
51
-        'domain',     // Domain name information crawlers.
52
-        'copyright',  // Copyright information crawlers.
51
+        'domain', // Domain name information crawlers.
52
+        'copyright', // Copyright information crawlers.
53 53
 
54 54
         // Others
55
-        'archive',    // Wayback machine
55
+        'archive', // Wayback machine
56 56
     ];
57 57
 
58 58
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function __construct(array $deniedList = [])
66 66
     {
67 67
         if (!empty($deniedList)) {
68
-            $this->deniedList =$deniedList;
68
+            $this->deniedList = $deniedList;
69 69
         }
70 70
     }
71 71
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         if (!empty($this->deniedList)) {
89
-            if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $userAgent)) {
89
+            if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $userAgent)) {
90 90
                 return (new Response)->withStatus(self::HTTP_STATUS_CODE);
91 91
             }
92 92
         }
Please login to merge, or discard this patch.
src/Firewall/Middleware/Header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function __construct(array $fieldList = [])
52 52
     {
53 53
         if (!empty($fieldList)) {
54
-            $this->fieldList =$fieldList;
54
+            $this->fieldList = $fieldList;
55 55
         }
56 56
     }
57 57
 
Please login to merge, or discard this patch.