Passed
Push — 2.x ( e966a7...a2237c )
by Terry
02:13
created
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/ItemMySqlDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             // Create a PDO instance.
38 38
             $pdoInstance = new PDO(
39 39
                 'mysql:host=' 
40
-                    . $setting['host']   . ';dbname=' 
40
+                    . $setting['host'] . ';dbname=' 
41 41
                     . $setting['dbname'] . ';charset=' 
42 42
                     . $setting['charset']
43 43
                 , (string) $setting['user']
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         // @codeCoverageIgnoreStart
51 51
 
52
-        } catch(PDOException $e) {
52
+        } catch (PDOException $e) {
53 53
             echo $e->getMessage();
54 54
         }
55 55
 
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.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
     protected function setIptablesWatchingFolder(): void
550 550
     {
551 551
         $iptablesSetting = $this->getOption('config', 'iptables');
552
-        $this->kernel->setProperty('iptables_watching_folder',  $iptablesSetting['watching_folder']);
552
+        $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']);
553 553
     }
554 554
 
555 555
     /**
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
             $lastResetTime = $cronjobSetting['config']['last_update'];
592 592
 
593
-            if (!empty($lastResetTime) ) {
593
+            if (!empty($lastResetTime)) {
594 594
                 $lastResetTime = strtotime($lastResetTime);
595 595
             } else {
596 596
                 // @codeCoverageIgnoreStart
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
         if (!empty($ipList)) {
658 658
             foreach ($ipList as $ip) {
659 659
 
660
-                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
660
+                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) {
661 661
     
662 662
                     if ('allow' === $ip['rule']) {
663 663
                         $allowedList[] = $ip['ip'];
Please login to merge, or discard this patch.