Passed
Push — 2.x ( 79255f...04295e )
by Terry
01:49
created
src/Firewall/Firewall/SetupTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
         foreach ($ipList as $ip) {
316 316
 
317
-            if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
317
+            if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) {
318 318
 
319 319
                 if ('allow' === $ip['rule']) {
320 320
                     $allowedList[] = $ip['ip'];
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $this->kernel->setProperty(
377 377
             'deny_attempt_enable',
378 378
             [
379
-                'data_circle'     => $setting['data_circle']['enable'],     // false   
379
+                'data_circle'     => $setting['data_circle']['enable'], // false   
380 380
                 'system_firewall' => $setting['system_firewall']['enable'], // false   
381 381
             ]
382 382
         );
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
         $this->kernel->setProperty(
385 385
             'deny_attempt_buffer',
386 386
             [
387
-                'data_circle'     => $setting['data_circle']['buffer'],     // 10
387
+                'data_circle'     => $setting['data_circle']['buffer'], // 10
388 388
                 'system_firewall' => $setting['system_firewall']['buffer'], // 10
389 389
             ]
390 390
         );
@@ -429,8 +429,8 @@  discard block
 block discarded – undo
429 429
 
430 430
         if ($sessionLimitSetting['enable']) {
431 431
 
432
-            $onlineUsers = $sessionLimitSetting['config']['count'];       // default: 100
433
-            $alivePeriod = $sessionLimitSetting['config']['period'];      // default: 300
432
+            $onlineUsers = $sessionLimitSetting['config']['count']; // default: 100
433
+            $alivePeriod = $sessionLimitSetting['config']['period']; // default: 300
434 434
             $isUniqueIp  = $sessionLimitSetting['config']['unique_only']; // false
435 435
 
436 436
             $this->kernel->limitSession($onlineUsers, $alivePeriod, $isUniqueIp);
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 
454 454
             $lastResetTime = $cronjobSetting['config']['last_update'];
455 455
 
456
-            if (!empty($lastResetTime) ) {
456
+            if (!empty($lastResetTime)) {
457 457
                 $lastResetTime = strtotime($lastResetTime);
458 458
             } else {
459 459
                 // @codeCoverageIgnoreStart
@@ -535,8 +535,8 @@  discard block
 block discarded – undo
535 535
         $dialogInfo = $this->getOption('dialog_info_disclosure');
536 536
 
537 537
         $this->kernel->setProperty('display_online_info', $dialogInfo['online_user_amount']);
538
-        $this->kernel->setProperty('display_user_info',   $dialogInfo['user_inforamtion']);
539
-        $this->kernel->setProperty('display_http_code',   $dialogInfo['http_status_code']);
538
+        $this->kernel->setProperty('display_user_info', $dialogInfo['user_inforamtion']);
539
+        $this->kernel->setProperty('display_http_code', $dialogInfo['http_status_code']);
540 540
         $this->kernel->setProperty('display_reason_code', $dialogInfo['reason_code']);
541 541
         $this->kernel->setProperty('display_reason_text', $dialogInfo['reason_text']);
542 542
     }
Please login to merge, or discard this patch.