@@ -177,10 +177,10 @@ discard block |
||
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 | } |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | (string) $db['user'], |
254 | 254 | (string) $db['pass'] |
255 | 255 | ); |
256 | - } catch(PDOException $e) { |
|
256 | + } catch (PDOException $e) { |
|
257 | 257 | |
258 | 258 | $result = false; |
259 | 259 | |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | try { |
315 | 315 | new PDO('sqlite:' . $sqliteFilePath); |
316 | 316 | |
317 | - } catch(PDOException $e) { |
|
317 | + } catch (PDOException $e) { |
|
318 | 318 | $this->pushMessage('error', $e->getMessage()); |
319 | 319 | $result = false; |
320 | 320 | } |
@@ -363,11 +363,11 @@ discard block |
||
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 | |
370 | - } catch(RedisException $e) { |
|
370 | + } catch (RedisException $e) { |
|
371 | 371 | $this->pushMessage('error', $e->getMessage()); |
372 | 372 | $result = false; |
373 | 373 | } |