Passed
Push — 2.x ( e85bad...a6612a )
by Terry
02:13
created
src/Firewall/Panel/ConfigMethodsTrait.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     } else {
78 78
                         if (is_numeric($postData)) {
79 79
                             $this->setConfig(str_replace('__', '.', $postKey), (int) $postData);
80
-                        } else  {
80
+                        } else {
81 81
                             $this->setConfig(str_replace('__', '.', $postKey), $postData);
82 82
                         }
83 83
                     }
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
                 // Create default log files.
166 166
                 if (is_writable($iptablesWatchingFolder)) {
167 167
                     fopen($iptablesWatchingFolder . '/iptables_queue.log', 'w+');
168
-                    fopen($iptablesWatchingFolder . '/ipv4_status.log',    'w+');
169
-                    fopen($iptablesWatchingFolder . '/ipv6_status.log',    'w+');
170
-                    fopen($iptablesWatchingFolder . '/ipv4_command.log',   'w+');
171
-                    fopen($iptablesWatchingFolder . '/ipv6_command.log',   'w+');
168
+                    fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+');
169
+                    fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+');
170
+                    fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+');
171
+                    fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+');
172 172
                 }
173 173
             }
174 174
     
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                     (string) $db['user'],
241 241
                     (string) $db['pass']
242 242
                 );
243
-            } catch(PDOException $e) {
243
+            } catch (PDOException $e) {
244 244
 
245 245
                 $result = false;
246 246
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             try {
300 300
                 new PDO('sqlite:' . $sqliteFilePath);
301 301
 
302
-            } catch(PDOException $e) { 
302
+            } catch (PDOException $e) { 
303 303
                 $this->pushMessage('error', $e->getMessage());
304 304
                 $result = false;
305 305
             }
@@ -346,11 +346,11 @@  discard block
 block discarded – undo
346 346
                 $redis = new Redis();
347 347
                 $redis->connect(
348 348
                     (string) $this->getConfig('drivers.redis.host'), 
349
-                    (int)    $this->getConfig('drivers.redis.port')
349
+                    (int) $this->getConfig('drivers.redis.port')
350 350
                 );
351 351
                 unset($redis);
352 352
 
353
-            } catch(RedisException $e) {
353
+            } catch (RedisException $e) {
354 354
                 $this->pushMessage('error', $e->getMessage());
355 355
                 $result = false;
356 356
             }
Please login to merge, or discard this patch.