Passed
Push — 2.x ( e707aa...d6bbff )
by Terry
02:22
created
src/Firewall/Firewall/MainTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
         foreach ($ipList as $ip) {
281 281
 
282
-            if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
282
+            if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) {
283 283
 
284 284
                 if ('allow' === $ip['rule']) {
285 285
                     $allowedList[] = $ip['ip'];
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
         $this->kernel->setProperty(
353 353
             'deny_attempt_enable',
354 354
             [
355
-                'data_circle'     => $setting['data_circle']['enable'],     // false   
355
+                'data_circle'     => $setting['data_circle']['enable'], // false   
356 356
                 'system_firewall' => $setting['system_firewall']['enable'], // false   
357 357
             ]
358 358
         );
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
         $this->kernel->setProperty(
361 361
             'deny_attempt_buffer',
362 362
             [
363
-                'data_circle'     => $setting['data_circle']['buffer'],     // 10
363
+                'data_circle'     => $setting['data_circle']['buffer'], // 10
364 364
                 'system_firewall' => $setting['system_firewall']['buffer'], // 10
365 365
             ]
366 366
         );
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 
429 429
             $lastResetTime = $cronjobSetting['config']['last_update'];
430 430
 
431
-            if (!empty($lastResetTime) ) {
431
+            if (!empty($lastResetTime)) {
432 432
                 $lastResetTime = strtotime($lastResetTime);
433 433
             } else {
434 434
                 // @codeCoverageIgnoreStart
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/MessengerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $str = implode(
80 80
             '',
81 81
             array_map(
82
-                function ($word) {
82
+                function($word) {
83 83
                     return ucwords($word); 
84 84
                 },
85 85
                 $str
Please login to merge, or discard this patch.
src/Firewall/Firewall/Driver/DriverFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $str = implode(
80 80
             '',
81 81
             array_map(
82
-                function ($word) {
82
+                function($word) {
83 83
                     return ucwords($word); 
84 84
                 },
85 85
                 $str
Please login to merge, or discard this patch.
src/Firewall/Panel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
             $controller = __CLASS__ . '\\' . ucfirst($controller);
132 132
 
133 133
             $controllerClass = new $controller();
134
-           // $controllerClass->csrf($this->csrfField);
134
+            // $controllerClass->csrf($this->csrfField);
135 135
 
136 136
             if ('demo' === $this->mode) {
137 137
 
Please login to merge, or discard this patch.
src/Firewall/Captcha/ImageCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
             'colors'       => [
111 111
                 'background' => [255, 255, 255],
112 112
                 'border'     => [153, 200, 255],
113
-                'text'       => [51,  153, 255],
113
+                'text'       => [51, 153, 255],
114 114
                 'grid'       => [153, 200, 255]
115 115
             ]
116 116
         ];
Please login to merge, or discard this patch.
src/Firewall/Driver/SqlDriverProvider.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@
 block discarded – undo
79 79
     protected function doInitialize(bool $dbCheck = true): void
80 80
     {
81 81
         if (!$this->isInitialized) {
82
-          //  if (!empty($this->channel)) {
83
-         //       $this->setChannel($this->channel);
84
-         //   }
82
+            //  if (!empty($this->channel)) {
83
+            //       $this->setChannel($this->channel);
84
+            //   }
85 85
 
86 86
             if ($dbCheck && !$this->checkTableExists()) {
87 87
                 $this->installSql();
Please login to merge, or discard this patch.
src/Firewall/Panel/ConfigMethodsTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
             // Create default log files.
178 178
             if (is_writable($iptablesWatchingFolder)) {
179 179
                 fopen($iptablesWatchingFolder . '/iptables_queue.log', 'w+');
180
-                fopen($iptablesWatchingFolder . '/ipv4_status.log',    'w+');
181
-                fopen($iptablesWatchingFolder . '/ipv6_status.log',    'w+');
182
-                fopen($iptablesWatchingFolder . '/ipv4_command.log',   'w+');
183
-                fopen($iptablesWatchingFolder . '/ipv6_command.log',   'w+');
180
+                fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+');
181
+                fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+');
182
+                fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+');
183
+                fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+');
184 184
 
185 185
                 return $result;
186 186
             }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
                 $redis = new Redis();
364 364
                 $redis->connect(
365 365
                     (string) $this->getConfig('drivers.redis.host'), 
366
-                    (int)    $this->getConfig('drivers.redis.port')
366
+                    (int) $this->getConfig('drivers.redis.port')
367 367
                 );
368 368
                 unset($redis);
369 369
 
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
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
         try {
46 46
   
47 47
             $host = 'mysql' . 
48
-                ':host='    . $setting['host'] .
49
-                ';dbname='  . $setting['dbname'] .
48
+                ':host=' . $setting['host'] .
49
+                ';dbname=' . $setting['dbname'] .
50 50
                 ';charset=' . $setting['charset'];
51 51
 
52 52
             $user = (string) $setting['user'];
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/ItemNativePhpMail.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
      */
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 35
 
36 36
         $instance = new Mail();
Please login to merge, or discard this patch.