@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } elseif (is_numeric($postData)) { |
| 80 | 80 | $this->setConfig(str_replace('__', '.', $postKey), (int) $postData); |
| 81 | 81 | |
| 82 | - } else { |
|
| 82 | + } else { |
|
| 83 | 83 | $this->setConfig(str_replace('__', '.', $postKey), $postData); |
| 84 | 84 | } |
| 85 | 85 | } |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | // Create default log files. |
| 163 | 163 | if (is_writable($iptablesWatchingFolder)) { |
| 164 | 164 | fopen($iptablesWatchingFolder . '/iptables_queue.log', 'w+'); |
| 165 | - fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+'); |
|
| 166 | - fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+'); |
|
| 167 | - fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+'); |
|
| 168 | - fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+'); |
|
| 165 | + fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+'); |
|
| 166 | + fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+'); |
|
| 167 | + fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+'); |
|
| 168 | + fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+'); |
|
| 169 | 169 | |
| 170 | 170 | return $result; |
| 171 | 171 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | (string) $db['user'], |
| 238 | 238 | (string) $db['pass'] |
| 239 | 239 | ); |
| 240 | - } catch(PDOException $e) { |
|
| 240 | + } catch (PDOException $e) { |
|
| 241 | 241 | |
| 242 | 242 | $result = false; |
| 243 | 243 | |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | try { |
| 297 | 297 | new PDO('sqlite:' . $sqliteFilePath); |
| 298 | 298 | |
| 299 | - } catch(PDOException $e) { |
|
| 299 | + } catch (PDOException $e) { |
|
| 300 | 300 | $this->pushMessage('error', $e->getMessage()); |
| 301 | 301 | $result = false; |
| 302 | 302 | } |
@@ -343,11 +343,11 @@ discard block |
||
| 343 | 343 | $redis = new Redis(); |
| 344 | 344 | $redis->connect( |
| 345 | 345 | (string) $this->getConfig('drivers.redis.host'), |
| 346 | - (int) $this->getConfig('drivers.redis.port') |
|
| 346 | + (int) $this->getConfig('drivers.redis.port') |
|
| 347 | 347 | ); |
| 348 | 348 | unset($redis); |
| 349 | 349 | |
| 350 | - } catch(RedisException $e) { |
|
| 350 | + } catch (RedisException $e) { |
|
| 351 | 351 | $this->pushMessage('error', $e->getMessage()); |
| 352 | 352 | $result = false; |
| 353 | 353 | } |