@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | // @codeCoverageIgnoreStart |
46 | 46 | |
47 | - } catch(PDOException $e) { |
|
47 | + } catch (PDOException $e) { |
|
48 | 48 | echo $e->getMessage(); |
49 | 49 | } |
50 | 50 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | // Create a PDO instance. |
38 | 38 | $pdoInstance = new PDO( |
39 | 39 | 'mysql:host=' |
40 | - . $setting['host'] . ';dbname=' |
|
40 | + . $setting['host'] . ';dbname=' |
|
41 | 41 | . $setting['dbname'] . ';charset=' |
42 | 42 | . $setting['charset'] |
43 | 43 | , (string) $setting['user'] |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | // @codeCoverageIgnoreStart |
51 | 51 | |
52 | - } catch(PDOException $e) { |
|
52 | + } catch (PDOException $e) { |
|
53 | 53 | echo $e->getMessage(); |
54 | 54 | } |
55 | 55 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | // @codeCoverageIgnoreStart |
62 | 62 | |
63 | - } catch(RedisException $e) { |
|
63 | + } catch (RedisException $e) { |
|
64 | 64 | echo $e->getMessage(); |
65 | 65 | } |
66 | 66 |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | protected function setIptablesWatchingFolder(): void |
550 | 550 | { |
551 | 551 | $iptablesSetting = $this->getOption('config', 'iptables'); |
552 | - $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
552 | + $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
553 | 553 | } |
554 | 554 | |
555 | 555 | /** |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | |
591 | 591 | $lastResetTime = $cronjobSetting['config']['last_update']; |
592 | 592 | |
593 | - if (!empty($lastResetTime) ) { |
|
593 | + if (!empty($lastResetTime)) { |
|
594 | 594 | $lastResetTime = strtotime($lastResetTime); |
595 | 595 | } else { |
596 | 596 | // @codeCoverageIgnoreStart |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | if (!empty($ipList)) { |
658 | 658 | foreach ($ipList as $ip) { |
659 | 659 | |
660 | - if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
660 | + if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
661 | 661 | |
662 | 662 | if ('allow' === $ip['rule']) { |
663 | 663 | $allowedList[] = $ip['ip']; |