Passed
Push — 2.x ( 958536...e12ed9 )
by Terry
02:44 queued 25s
created
src/Firewall/Firewall/MainTrait.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -238,10 +238,10 @@
 block discarded – undo
238 238
     }
239 239
 
240 240
 /**
241
-     * Set the channel ID.
242
-     *
243
-     * @return void
244
-     */
241
+ * Set the channel ID.
242
+ *
243
+ * @return void
244
+ */
245 245
     protected function setChannel(): void
246 246
     {
247 247
         $channelId = $this->getOption('channel_id');
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         if (is_array($ipList)) {
221 221
             foreach ($ipList as $ip) {
222 222
 
223
-                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
223
+                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) {
224 224
     
225 225
                     if ('allow' === $ip['rule']) {
226 226
                         $allowedList[] = $ip['ip'];
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     {
290 290
         $setting = $this->getOption('failed_attempts_in_a_row', 'events');
291 291
 
292
-        $enableDataCircle     = $setting['data_circle']['enable']     ?: false;
292
+        $enableDataCircle     = $setting['data_circle']['enable'] ?: false;
293 293
         $enableSystemFirewall = $setting['system_firewall']['enable'] ?: false;
294 294
 
295 295
         $this->kernel->setProperty('deny_attempt_enable', [
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $recordAttempt = $this->getOption('record_attempt');
307 307
 
308 308
         $detectionPeriod = $recordAttempt['detection_period'] ?? 5;
309
-        $timeToReset     = $recordAttempt['time_to_reset']    ?? 1800;
309
+        $timeToReset     = $recordAttempt['time_to_reset'] ?? 1800;
310 310
 
311 311
         $this->kernel->setProperty('record_attempt_detection_period', $detectionPeriod);
312 312
         $this->kernel->setProperty('reset_attempt_counter', $timeToReset);
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     protected function setIptablesBridgeDirectory(): void
321 321
     {
322 322
         $iptablesSetting = $this->getOption('config', 'iptables');
323
-        $this->kernel->setProperty('iptables_watching_folder',  $iptablesSetting['watching_folder']);
323
+        $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']);
324 324
     }
325 325
 
326 326
     /**
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
         if ($sessionLimitSetting['enable']) {
336 336
 
337
-            $onlineUsers = $sessionLimitSetting['config']['count']  ?? 100;
337
+            $onlineUsers = $sessionLimitSetting['config']['count'] ?? 100;
338 338
             $alivePeriod = $sessionLimitSetting['config']['period'] ?? 300;
339 339
 
340 340
             $this->kernel->limitSession($onlineUsers, $alivePeriod);
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
             $lastResetTime = $cronjobSetting['config']['last_update'];
363 363
 
364
-            if (!empty($lastResetTime) ) {
364
+            if (!empty($lastResetTime)) {
365 365
                 $lastResetTime = strtotime($lastResetTime);
366 366
             } else {
367 367
                 // @codeCoverageIgnoreStart
Please login to merge, or discard this patch.