@@ -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 | $pdo = new PDO('sqlite:' . $sqliteFilePath); |
| 750 | - } catch(PDOException $e) { |
|
| 750 | + } catch (PDOException $e) { |
|
| 751 | 751 | $result = false; |
| 752 | 752 | $this->pushMessage('error', $e->getMessage()); |
| 753 | 753 | } |
@@ -790,9 +790,9 @@ discard block |
||
| 790 | 790 | $redis = new Redis(); |
| 791 | 791 | $redis->connect( |
| 792 | 792 | (string) $this->getConfig('drivers.redis.host'), |
| 793 | - (int) $this->getConfig('drivers.redis.port') |
|
| 793 | + (int) $this->getConfig('drivers.redis.port') |
|
| 794 | 794 | ); |
| 795 | - } catch(RedisException $e) { |
|
| 795 | + } catch (RedisException $e) { |
|
| 796 | 796 | $result = false; |
| 797 | 797 | $this->pushMessage('error', $e->getMessage()); |
| 798 | 798 | } |