@@ -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 | ]; |
@@ -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(); |
@@ -40,12 +40,12 @@ |
||
40 | 40 | */ |
41 | 41 | public static function get(array $setting): MessengerInterface |
42 | 42 | { |
43 | - $sender = $setting['config']['sender'] ?? ''; |
|
43 | + $sender = $setting['config']['sender'] ?? ''; |
|
44 | 44 | $recipients = $setting['config']['recipients'] ?? []; |
45 | - $host = $setting['config']['host'] ?? ''; |
|
46 | - $user = $setting['config']['user'] ?? ''; |
|
47 | - $pass = $setting['config']['pass'] ?? ''; |
|
48 | - $port = $setting['config']['port'] ?? ''; |
|
45 | + $host = $setting['config']['host'] ?? ''; |
|
46 | + $user = $setting['config']['user'] ?? ''; |
|
47 | + $pass = $setting['config']['pass'] ?? ''; |
|
48 | + $port = $setting['config']['port'] ?? ''; |
|
49 | 49 | |
50 | 50 | $instance = new Smtp($user, $pass, $host, (int) $port); |
51 | 51 | $instance->setSubject(__('core', 'messenger_text_mail_subject')); |
@@ -40,8 +40,8 @@ |
||
40 | 40 | */ |
41 | 41 | public static function get(array $setting): MessengerInterface |
42 | 42 | { |
43 | - $apiKey = $setting['config']['api_key'] ?? ''; |
|
44 | - $sender = $setting['config']['sender'] ?? ''; |
|
43 | + $apiKey = $setting['config']['api_key'] ?? ''; |
|
44 | + $sender = $setting['config']['sender'] ?? ''; |
|
45 | 45 | $recipients = $setting['config']['recipients'] ?? []; |
46 | 46 | |
47 | 47 | $instance = new Sendgrid($apiKey); |
@@ -50,19 +50,19 @@ discard block |
||
50 | 50 | protected $deniedList = [ |
51 | 51 | |
52 | 52 | // Backlink crawlers |
53 | - 'Ahrefs', // http://ahrefs.com/robot/ |
|
54 | - 'roger', // rogerbot (SEOMOZ) |
|
55 | - 'moz.com', // SEOMOZ crawlers |
|
56 | - 'MJ12bot', // Majestic crawlers |
|
57 | - 'findlinks', // http://wortschatz.uni-leipzig.de/findlinks |
|
58 | - 'Semrush', // http://www.semrush.com/bot.html |
|
53 | + 'Ahrefs', // http://ahrefs.com/robot/ |
|
54 | + 'roger', // rogerbot (SEOMOZ) |
|
55 | + 'moz.com', // SEOMOZ crawlers |
|
56 | + 'MJ12bot', // Majestic crawlers |
|
57 | + 'findlinks', // http://wortschatz.uni-leipzig.de/findlinks |
|
58 | + 'Semrush', // http://www.semrush.com/bot.html |
|
59 | 59 | |
60 | 60 | // Web information crawlers |
61 | - 'domain', // Domain name information crawlers. |
|
62 | - 'copyright', // Copyright information crawlers. |
|
61 | + 'domain', // Domain name information crawlers. |
|
62 | + 'copyright', // Copyright information crawlers. |
|
63 | 63 | |
64 | 64 | // Others |
65 | - 'archive', // Wayback machine |
|
65 | + 'archive', // Wayback machine |
|
66 | 66 | ]; |
67 | 67 | |
68 | 68 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | if (!empty($this->deniedList)) { |
99 | - if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $userAgent)) { |
|
99 | + if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $userAgent)) { |
|
100 | 100 | return (new Response)->withStatus(self::HTTP_STATUS_CODE); |
101 | 101 | } |
102 | 102 | } |