@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | ?> |
19 | 19 | |
20 | 20 | <div class="so-dashboard"> |
21 | - <?php if (! empty($period_data)) : ?> |
|
21 | + <?php if (!empty($period_data)) : ?> |
|
22 | 22 | <div class="so-flex"> |
23 | 23 | <div class="so-board"> |
24 | 24 | <div class="board-field left"> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </tr> |
90 | 90 | </thead> |
91 | 91 | <tbody> |
92 | - <?php if (! empty($ip_details)) : ?> |
|
92 | + <?php if (!empty($ip_details)) : ?> |
|
93 | 93 | <?php foreach ($ip_details as $ip => $ipInfo) : ?> |
94 | 94 | <tr> |
95 | 95 | <td> |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | </table> |
113 | 113 | </div> |
114 | 114 | <div class="so-timezone"> |
115 | - <?php if (! empty($last_cached_time)) : ?> |
|
115 | + <?php if (!empty($last_cached_time)) : ?> |
|
116 | 116 | <?php _e('panel', 'log_label_cache_time', 'Report generated time'); ?>: <strong class="text-info"><?php echo $last_cached_time; ?></strong> |
117 | 117 | |
118 | 118 | <?php endif; ?> |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | <?php |
124 | 124 | |
125 | - if (! empty($period_data)) { |
|
125 | + if (!empty($period_data)) { |
|
126 | 126 | $data['period_data'] = $period_data; |
127 | 127 | $this->_include('panel/js/chart', $data); |
128 | 128 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | ?> |
19 | 19 | |
20 | 20 | <div class="so-dashboard"> |
21 | - <?php if (! empty($period_data)) : ?> |
|
21 | + <?php if (!empty($period_data)) : ?> |
|
22 | 22 | <div class="so-flex"> |
23 | 23 | <div class="so-board"> |
24 | 24 | <div class="board-field left"> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </tr> |
90 | 90 | </thead> |
91 | 91 | <tbody> |
92 | - <?php if (! empty($ip_details)) : ?> |
|
92 | + <?php if (!empty($ip_details)) : ?> |
|
93 | 93 | <?php foreach ($ip_details as $ip => $ipInfo) : ?> |
94 | 94 | <tr> |
95 | 95 | <td> |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | </table> |
113 | 113 | </div> |
114 | 114 | <div class="so-timezone"> |
115 | - <?php if (! empty($last_cached_time)) : ?> |
|
115 | + <?php if (!empty($last_cached_time)) : ?> |
|
116 | 116 | <?php _e('panel', 'log_label_cache_time', 'Report generated time'); ?>: <strong class="text-info"><?php echo $last_cached_time; ?></strong> |
117 | 117 | |
118 | 118 | <?php endif; ?> |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | <?php |
124 | 124 | |
125 | - if (! empty($period_data)) { |
|
125 | + if (!empty($period_data)) { |
|
126 | 126 | $data['period_data'] = $period_data; |
127 | 127 | $this->_include('panel/js/chart', $data); |
128 | 128 | } |
@@ -165,7 +165,7 @@ |
||
165 | 165 | define('SHIELDON_VIEW', true); |
166 | 166 | } |
167 | 167 | |
168 | - $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
168 | + $viewFilePath = __DIR__ . '/../../../templates/' . $page . '.php'; |
|
169 | 169 | |
170 | 170 | if (!empty($data)) { |
171 | 171 | extract($data); |
@@ -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 |
@@ -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 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public static function get(array $setting): MessengerInterface |
31 | 31 | { |
32 | 32 | $botToken = $setting['config']['bot_token'] ?? ''; |
33 | - $channel = $setting['config']['channel'] ?? ''; |
|
33 | + $channel = $setting['config']['channel'] ?? ''; |
|
34 | 34 | |
35 | 35 | return new Slack($botToken, $channel); |
36 | 36 | } |
@@ -30,10 +30,10 @@ |
||
30 | 30 | */ |
31 | 31 | public static function get(array $setting): MessengerInterface |
32 | 32 | { |
33 | - $apiKey = $setting['config']['api_key'] ?? ''; |
|
33 | + $apiKey = $setting['config']['api_key'] ?? ''; |
|
34 | 34 | $domain = $setting['config']['domain_name'] ?? ''; |
35 | - $sender = $setting['config']['sender'] ?? ''; |
|
36 | - $recipients = $setting['config']['recipients'] ?? []; |
|
35 | + $sender = $setting['config']['sender'] ?? ''; |
|
36 | + $recipients = $setting['config']['recipients'] ?? []; |
|
37 | 37 | |
38 | 38 | $instance = new Mailgun($apiKey, $domain); |
39 | 39 | $instance->setSubject(__('core', 'messenger_text_mail_subject')); |
@@ -30,11 +30,11 @@ |
||
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 | - $host = $setting['config']['host'] ?? ''; |
|
36 | - $user = $setting['config']['user'] ?? ''; |
|
37 | - $pass = $setting['config']['pass'] ?? ''; |
|
35 | + $host = $setting['config']['host'] ?? ''; |
|
36 | + $user = $setting['config']['user'] ?? ''; |
|
37 | + $pass = $setting['config']['pass'] ?? ''; |
|
38 | 38 | $port = $setting['config']['port'] ?? ''; |
39 | 39 | |
40 | 40 | $instance = new Smtp($user, $pass, $host, (int) $port); |
@@ -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(); |