@@ -29,10 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | public static function get(array $setting): MessengerInterface |
31 | 31 | { |
32 | - $serverUrl = $setting['config']['server_url'] ?? ''; |
|
33 | - $userId = $setting['config']['user_id'] ?? ''; |
|
32 | + $serverUrl = $setting['config']['server_url'] ?? ''; |
|
33 | + $userId = $setting['config']['user_id'] ?? ''; |
|
34 | 34 | $accessToken = $setting['config']['access_token'] ?? ''; |
35 | - $channel = $setting['config']['channel'] ?? ''; |
|
35 | + $channel = $setting['config']['channel'] ?? ''; |
|
36 | 36 | |
37 | 37 | return new RocketChat($accessToken, $userId, $serverUrl, $channel); |
38 | 38 | } |
@@ -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 |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | protected function setIptablesWatchingFolder(): void |
542 | 542 | { |
543 | 543 | $iptablesSetting = $this->getOption('config', 'iptables'); |
544 | - $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
544 | + $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
545 | 545 | } |
546 | 546 | |
547 | 547 | /** |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | |
583 | 583 | $lastResetTime = $cronjobSetting['config']['last_update']; |
584 | 584 | |
585 | - if (!empty($lastResetTime) ) { |
|
585 | + if (!empty($lastResetTime)) { |
|
586 | 586 | $lastResetTime = strtotime($lastResetTime); |
587 | 587 | } else { |
588 | 588 | // @codeCoverageIgnoreStart |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | if (is_array($ipList)) { |
650 | 650 | foreach ($ipList as $ip) { |
651 | 651 | |
652 | - if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
652 | + if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
653 | 653 | |
654 | 654 | if ('allow' === $ip['rule']) { |
655 | 655 | $allowedList[] = $ip['ip']; |