Passed
Push — 2.x ( c5863b...a76a74 )
by Terry
02:44
created
src/Firewall/Firewall/Messenger/ItemRocketChat.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
      */
30 30
     public static function get(array $setting): MessengerInterface
31 31
     {
32
-        $serverUrl   = $setting['config']['server_url']   ?? '';
33
-        $userId      = $setting['config']['user_id']      ?? '';
32
+        $serverUrl   = $setting['config']['server_url'] ?? '';
33
+        $userId      = $setting['config']['user_id'] ?? '';
34 34
         $accessToken = $setting['config']['access_token'] ?? '';
35
-        $channel     = $setting['config']['channel']      ?? '';
35
+        $channel     = $setting['config']['channel'] ?? '';
36 36
 
37 37
         return new RocketChat($accessToken, $userId, $serverUrl, $channel);
38 38
     }
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.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
     protected function setIptablesWatchingFolder(): void
542 542
     {
543 543
         $iptablesSetting = $this->getOption('config', 'iptables');
544
-        $this->kernel->setProperty('iptables_watching_folder',  $iptablesSetting['watching_folder']);
544
+        $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']);
545 545
     }
546 546
 
547 547
     /**
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
 
583 583
             $lastResetTime = $cronjobSetting['config']['last_update'];
584 584
 
585
-            if (!empty($lastResetTime) ) {
585
+            if (!empty($lastResetTime)) {
586 586
                 $lastResetTime = strtotime($lastResetTime);
587 587
             } else {
588 588
                 // @codeCoverageIgnoreStart
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
         if (is_array($ipList)) {
650 650
             foreach ($ipList as $ip) {
651 651
 
652
-                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
652
+                if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) {
653 653
     
654 654
                     if ('allow' === $ip['rule']) {
655 655
                         $allowedList[] = $ip['ip'];
Please login to merge, or discard this patch.