@@ -77,7 +77,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |