@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | define('SHIELDON_VIEW', true); |
175 | 175 | } |
176 | 176 | |
177 | - $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
177 | + $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
178 | 178 | |
179 | 179 | if (!empty($data)) { |
180 | 180 | extract($data); |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | } else { |
526 | 526 | if (is_numeric($postData)) { |
527 | 527 | $this->setConfig(str_replace('__', '.', $postKey), (int) $postData); |
528 | - } else { |
|
528 | + } else { |
|
529 | 529 | $this->setConfig(str_replace('__', '.', $postKey), $postData); |
530 | 530 | } |
531 | 531 | } |
@@ -613,10 +613,10 @@ discard block |
||
613 | 613 | // Create default log files. |
614 | 614 | if (is_writable($iptablesWatchingFolder)) { |
615 | 615 | fopen($iptablesWatchingFolder . '/iptables_queue.log', 'w+'); |
616 | - fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+'); |
|
617 | - fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+'); |
|
618 | - fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+'); |
|
619 | - fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+'); |
|
616 | + fopen($iptablesWatchingFolder . '/ipv4_status.log', 'w+'); |
|
617 | + fopen($iptablesWatchingFolder . '/ipv6_status.log', 'w+'); |
|
618 | + fopen($iptablesWatchingFolder . '/ipv4_command.log', 'w+'); |
|
619 | + fopen($iptablesWatchingFolder . '/ipv6_command.log', 'w+'); |
|
620 | 620 | } |
621 | 621 | } |
622 | 622 | |
@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | (string) $db['user'], |
695 | 695 | (string) $db['pass'] |
696 | 696 | ); |
697 | - } catch(PDOException $e) { |
|
697 | + } catch (PDOException $e) { |
|
698 | 698 | $result = false; |
699 | 699 | $this->pushMessage('error', |
700 | 700 | __( |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | if (class_exists('PDO')) { |
748 | 748 | try { |
749 | 749 | new PDO('sqlite:' . $sqliteFilePath); |
750 | - } catch(PDOException $e) { |
|
750 | + } catch (PDOException $e) { |
|
751 | 751 | $this->pushMessage('error', $e->getMessage()); |
752 | 752 | $result = false; |
753 | 753 | } |
@@ -789,10 +789,10 @@ discard block |
||
789 | 789 | $redis = new Redis(); |
790 | 790 | $redis->connect( |
791 | 791 | (string) $this->getConfig('drivers.redis.host'), |
792 | - (int) $this->getConfig('drivers.redis.port') |
|
792 | + (int) $this->getConfig('drivers.redis.port') |
|
793 | 793 | ); |
794 | 794 | unset($redis); |
795 | - } catch(RedisException $e) { |
|
795 | + } catch (RedisException $e) { |
|
796 | 796 | $this->pushMessage('error', $e->getMessage()); |
797 | 797 | $result = false; |
798 | 798 | } |