@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $str = implode( |
| 80 | 80 | '', |
| 81 | 81 | array_map( |
| 82 | - function ($word) { |
|
| 82 | + function($word) { |
|
| 83 | 83 | return ucwords($word); |
| 84 | 84 | }, |
| 85 | 85 | $str |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $str = implode( |
| 80 | 80 | '', |
| 81 | 81 | array_map( |
| 82 | - function ($word) { |
|
| 82 | + function($word) { |
|
| 83 | 83 | return ucwords($word); |
| 84 | 84 | }, |
| 85 | 85 | $str |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | 'colors' => [ |
| 111 | 111 | 'background' => [255, 255, 255], |
| 112 | 112 | 'border' => [153, 200, 255], |
| 113 | - 'text' => [51, 153, 255], |
|
| 113 | + 'text' => [51, 153, 255], |
|
| 114 | 114 | 'grid' => [153, 200, 255] |
| 115 | 115 | ] |
| 116 | 116 | ]; |
@@ -79,9 +79,9 @@ |
||
| 79 | 79 | protected function doInitialize(bool $dbCheck = true): void |
| 80 | 80 | { |
| 81 | 81 | if (!$this->isInitialized) { |
| 82 | - // if (!empty($this->channel)) { |
|
| 83 | - // $this->setChannel($this->channel); |
|
| 84 | - // } |
|
| 82 | + // if (!empty($this->channel)) { |
|
| 83 | + // $this->setChannel($this->channel); |
|
| 84 | + // } |
|
| 85 | 85 | |
| 86 | 86 | if ($dbCheck && !$this->checkTableExists()) { |
| 87 | 87 | $this->installSql(); |
@@ -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 | } |
@@ -363,7 +363,7 @@ 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 | |
@@ -45,8 +45,8 @@ |
||
| 45 | 45 | try { |
| 46 | 46 | |
| 47 | 47 | $host = 'mysql' . |
| 48 | - ':host=' . $setting['host'] . |
|
| 49 | - ';dbname=' . $setting['dbname'] . |
|
| 48 | + ':host=' . $setting['host'] . |
|
| 49 | + ';dbname=' . $setting['dbname'] . |
|
| 50 | 50 | ';charset=' . $setting['charset']; |
| 51 | 51 | |
| 52 | 52 | $user = (string) $setting['user']; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function get(array $setting): MessengerInterface |
| 32 | 32 | { |
| 33 | - $sender = $setting['config']['sender'] ?? ''; |
|
| 33 | + $sender = $setting['config']['sender'] ?? ''; |
|
| 34 | 34 | $recipients = $setting['config']['recipients'] ?? []; |
| 35 | 35 | |
| 36 | 36 | $instance = new Mail(); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @return bool |
| 59 | 59 | */ |
| 60 | - public function __call($function , $args) |
|
| 60 | + public function __call($function, $args) |
|
| 61 | 61 | { |
| 62 | 62 | $className = 'Shieldon\Firewall\Panel\Sandbox\\' . $function; |
| 63 | 63 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $method = implode( |
| 119 | 119 | '', |
| 120 | 120 | array_map( |
| 121 | - function ($word) { |
|
| 121 | + function($word) { |
|
| 122 | 122 | return ucwords($word); |
| 123 | 123 | }, |
| 124 | 124 | $method |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | // Call testing method if exists. |
| 132 | 132 | $status = $this->{$method}($getParams, $message); |
| 133 | 133 | |
| 134 | - if ( $status) { |
|
| 134 | + if ($status) { |
|
| 135 | 135 | $data['status'] = 'success'; |
| 136 | 136 | $postParams[$postKey] = 'on'; |
| 137 | 137 | $this->saveConfig(); |
@@ -114,9 +114,9 @@ |
||
| 114 | 114 | if (isset($postParams['xss'])) { |
| 115 | 115 | unset_superglobal('xss', 'post'); |
| 116 | 116 | |
| 117 | - $type = $postParams['type'] ?? ''; |
|
| 117 | + $type = $postParams['type'] ?? ''; |
|
| 118 | 118 | $variable = $postParams['variable'] ?? ''; |
| 119 | - $action = $postParams['action'] ?? ''; |
|
| 119 | + $action = $postParams['action'] ?? ''; |
|
| 120 | 120 | |
| 121 | 121 | // The index number in the $xssProtectedList, see below. |
| 122 | 122 | $order = (int) $postParams['order']; |