Passed
Push — 2.x ( df2ab7...4516a4 )
by Terry
02:57 queued 14s
created
templates/panel/operation_status.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 <div class="filter-status">
30 30
                     <div class="heading"><?php _e('panel', 'overview_label_cookie', 'Cookie'); ?></div>
31 31
                     <div class="nums">
32
-                        <?php if (! empty($filter_cookie)) : ?>
32
+                        <?php if (!empty($filter_cookie)) : ?>
33 33
                             <a href="#" onclick="displayLogs('frequency');"><?php echo $filter_cookie; ?></a>
34 34
                         <?php else : ?>
35 35
                             <?php echo $filter_cookie; ?>
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 <div class="filter-status">
46 46
                     <div class="heading"><?php _e('panel', 'overview_label_session', 'Session'); ?></div>
47 47
                     <div class="nums">
48
-                        <?php if (! empty($filter_session)) : ?>
48
+                        <?php if (!empty($filter_session)) : ?>
49 49
                             <a href="#" onclick="displayLogs('session');"><?php echo $filter_session; ?></a>
50 50
                         <?php else : ?>
51 51
                             <?php echo $filter_session; ?>
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 <div class="filter-status">
62 62
                     <div class="heading"><?php _e('panel', 'overview_label_frequency', 'Frequency'); ?></div>
63 63
                     <div class="nums">
64
-                        <?php if (! empty($filter_frequency)) : ?>
64
+                        <?php if (!empty($filter_frequency)) : ?>
65 65
                             <a href="#" onclick="displayLogs('frequency');"><?php echo $filter_frequency; ?></a>
66 66
                         <?php else : ?>
67 67
                             <?php echo $filter_frequency; ?>
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 <div class="filter-status">
78 78
                     <div class="heading"><?php _e('panel', 'overview_label_referer', 'Referrer'); ?></div>
79 79
                     <div class="nums">
80
-                        <?php if (! empty($filter_referer)) : ?>
80
+                        <?php if (!empty($filter_referer)) : ?>
81 81
                             <a href="#" onclick="displayLogs('referer');"><?php echo $filter_referer; ?></a>
82 82
                         <?php else : ?>
83 83
                             <?php echo $filter_referer; ?>
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 <div class="filter-status">
104 104
                     <div class="heading"><?php _e('panel', 'overview_label_ip', 'IP'); ?></div>
105 105
                     <div class="nums">
106
-                        <?php if (! empty($component_ip)) : ?>
106
+                        <?php if (!empty($component_ip)) : ?>
107 107
                             <a href="#" onclick="displayLogs('ip');"><?php echo $component_ip; ?></a>
108 108
                         <?php else : ?>
109 109
                             <?php echo $component_ip; ?>
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 <div class="filter-status">
120 120
                     <div class="heading"><?php _e('panel', 'overview_label_trustedbot', 'Trusted Bot'); ?></div>
121 121
                     <div class="nums">
122
-                        <?php if (! empty($component_trustedbot)) : ?>
122
+                        <?php if (!empty($component_trustedbot)) : ?>
123 123
                             <a href="#" onclick="displayLogs('trustedbot');"><?php echo $component_trustedbot; ?></a>
124 124
                         <?php else : ?>
125 125
                             <?php echo $component_trustedbot; ?>
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 <div class="filter-status">
136 136
                     <div class="heading"><?php _e('panel', 'overview_label_header', 'Header'); ?></div>
137 137
                     <div class="nums">
138
-                        <?php if (! empty($component_header)) : ?>
138
+                        <?php if (!empty($component_header)) : ?>
139 139
                             <a href="#" onclick="displayLogs('header');"><?php echo $component_header; ?></a>
140 140
                         <?php else : ?>
141 141
                             <?php echo $component_header; ?>
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 <div class="filter-status">
152 152
                     <div class="heading"><?php _e('panel', 'overview_label_rdns', 'RDNS'); ?></div>
153 153
                     <div class="nums">
154
-                        <?php if (! empty($component_rdns)) : ?>
154
+                        <?php if (!empty($component_rdns)) : ?>
155 155
                             <a href="#" onclick="displayLogs('rdns');"><?php echo $component_rdns; ?></a>
156 156
                         <?php else : ?>
157 157
                             <?php echo $component_rdns; ?>
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                 <div class="filter-status">
168 168
                     <div class="heading"><?php _e('panel', 'overview_label_useragent', 'User Agent'); ?></div>
169 169
                     <div class="nums">
170
-                        <?php if (! empty($component_useragent)) : ?>
170
+                        <?php if (!empty($component_useragent)) : ?>
171 171
                             <a href="#" onclick="displayLogs('useragent');"><?php echo $component_useragent; ?></a>
172 172
                         <?php else : ?>
173 173
                             <?php echo $component_useragent; ?>
@@ -214,15 +214,15 @@  discard block
 block discarded – undo
214 214
                         <td><?php echo $ipInfo['ip_resolve']; ?></td>
215 215
                         <td>
216 216
                             <?php 
217
-                                if (! empty($type_mapping[$ipInfo['type'] ]) ) {
218
-                                    echo $type_mapping[$ipInfo['type'] ];
217
+                                if (!empty($type_mapping[$ipInfo['type']])) {
218
+                                    echo $type_mapping[$ipInfo['type']];
219 219
                                 }
220 220
                             ?>
221 221
                         </td>
222 222
                         <td>
223 223
                             <?php
224
-                                if (! empty($reason_mapping[$ipInfo['reason'] ]) ) {
225
-                                    echo $reason_mapping[$ipInfo['reason'] ];
224
+                                if (!empty($reason_mapping[$ipInfo['reason']])) {
225
+                                    echo $reason_mapping[$ipInfo['reason']];
226 226
                                 }
227 227
                             ?>
228 228
                         </td>
Please login to merge, or discard this patch.
templates/panel/xss_protection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         </div>
115 115
     </div>
116 116
     <br />
117
-    <?php if ( empty($xss_protected_list)) : ?>
117
+    <?php if (empty($xss_protected_list)) : ?>
118 118
     <div id="so-table-container" class="so-datatables">
119 119
         <table id="so-datalog" class="cell-border compact stripe responsive" cellspacing="0" width="100%">
120 120
             <tbody>
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 </tr>
147 147
             </thead>
148 148
             <tbody>
149
-                <?php if (! empty($xss_protected_list)) : ?>
149
+                <?php if (!empty($xss_protected_list)) : ?>
150 150
                 <?php foreach ($xss_protected_list as $i => $info) : ?>
151 151
                 <tr>
152 152
                     <td><?php echo $info['type']; ?></td>
Please login to merge, or discard this patch.
templates/panel/exclusion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
                 </tr>
78 78
             </thead>
79 79
             <tbody>
80
-                <?php if (! empty($exclusion_list)) : ?>
80
+                <?php if (!empty($exclusion_list)) : ?>
81 81
                 <?php foreach ($exclusion_list as $i => $urlInfo) : ?>
82 82
                 <tr>
83 83
                     <td><?php echo $urlInfo['url']; ?></td>
Please login to merge, or discard this patch.
templates/frontend/captcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 							<p><input type="submit" value="<?php _e('core', 'stop_submit', 'Submit') ?>" /></p>
51 51
 						</form>
52 52
 					</div>
53
-					<?php if (! empty($dialoguserinfo)) : ?>
53
+					<?php if (!empty($dialoguserinfo)) : ?>
54 54
 						<div class="status-user-info">
55 55
 							<?php foreach ($dialoguserinfo as $key => $userinfo) : ?>
56 56
 								<div class="row">
Please login to merge, or discard this patch.
src/Firewall/Firewall/Driver/ItemSqliteDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         // @codeCoverageIgnoreStart
46 46
 
47
-        } catch(PDOException $e) {
47
+        } catch (PDOException $e) {
48 48
             echo $e->getMessage();
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Firewall/Firewall/Driver/ItemRedisDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         // @codeCoverageIgnoreStart
62 62
 
63
-        } catch(RedisException $e) {
63
+        } catch (RedisException $e) {
64 64
             echo $e->getMessage();
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/ItemSlack.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public static function get(array $setting): MessengerInterface
31 31
     {
32 32
         $botToken = $setting['config']['bot_token'] ?? '';
33
-        $channel  = $setting['config']['channel']   ?? '';
33
+        $channel  = $setting['config']['channel'] ?? '';
34 34
 
35 35
         return new Slack($botToken, $channel);
36 36
     }
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/ItemMailgun.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
      */
31 31
     public static function get(array $setting): MessengerInterface
32 32
     {
33
-        $apiKey     = $setting['config']['api_key']     ?? '';
33
+        $apiKey     = $setting['config']['api_key'] ?? '';
34 34
         $domain     = $setting['config']['domain_name'] ?? '';
35
-        $sender     = $setting['config']['sender']      ?? '';
36
-        $recipients = $setting['config']['recipients']  ?? [];
35
+        $sender     = $setting['config']['sender'] ?? '';
36
+        $recipients = $setting['config']['recipients'] ?? [];
37 37
 
38 38
         $instance = new Mailgun($apiKey, $domain);
39 39
         $instance->setSubject(__('core', 'messenger_text_mail_subject'));
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/ItemSmtp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
      */
31 31
     public static function get(array $setting): MessengerInterface
32 32
     {
33
-        $sender     = $setting['config']['sender']     ?? '';
33
+        $sender     = $setting['config']['sender'] ?? '';
34 34
         $recipients = $setting['config']['recipients'] ?? [];
35
-        $host       = $setting['config']['host']       ?? '';
36
-        $user       = $setting['config']['user']       ?? '';
37
-        $pass       = $setting['config']['pass']       ?? '';
35
+        $host       = $setting['config']['host'] ?? '';
36
+        $user       = $setting['config']['user'] ?? '';
37
+        $pass       = $setting['config']['pass'] ?? '';
38 38
         $port       = $setting['config']['port'] ?? '';
39 39
 
40 40
         $instance = new Smtp($user, $pass, $host, (int) $port);
Please login to merge, or discard this patch.