@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | |
332 | 332 | // @codeCoverageIgnoreStart |
333 | 333 | |
334 | - } catch(Exception $e) { |
|
334 | + } catch (Exception $e) { |
|
335 | 335 | return false; |
336 | 336 | } |
337 | 337 | |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | |
391 | 391 | // @codeCoverageIgnoreStart |
392 | 392 | |
393 | - } catch(Exception $e) { |
|
393 | + } catch (Exception $e) { |
|
394 | 394 | return false; |
395 | 395 | } |
396 | 396 | |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | |
444 | 444 | // @codeCoverageIgnoreStart |
445 | 445 | |
446 | - } catch(Exception $e) { |
|
446 | + } catch (Exception $e) { |
|
447 | 447 | return false; |
448 | 448 | } |
449 | 449 |
@@ -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 |
@@ -45,8 +45,8 @@ discard block |
||
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']; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | // @codeCoverageIgnoreStart |
62 | 62 | |
63 | - } catch(PDOException $e) { |
|
63 | + } catch (PDOException $e) { |
|
64 | 64 | echo $e->getMessage(); |
65 | 65 | } |
66 | 66 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | // @codeCoverageIgnoreStart |
72 | 72 | |
73 | - } catch(RedisException $e) { |
|
73 | + } catch (RedisException $e) { |
|
74 | 74 | echo $e->getMessage(); |
75 | 75 | } |
76 | 76 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | // @codeCoverageIgnoreStart |
56 | 56 | |
57 | - } catch(PDOException $e) { |
|
57 | + } catch (PDOException $e) { |
|
58 | 58 | echo $e->getMessage(); |
59 | 59 | } |
60 | 60 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $this->kernel->setClosure( |
81 | 81 | 'xss_post', |
82 | - function () use ($xss) { |
|
82 | + function() use ($xss) { |
|
83 | 83 | if (!empty($_POST)) { |
84 | 84 | foreach (array_keys($_POST) as $k) { |
85 | 85 | $_POST[$k] = $xss->clean($_POST[$k]); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $this->kernel->setClosure( |
106 | 106 | 'xss_get', |
107 | - function () use ($xss) { |
|
107 | + function() use ($xss) { |
|
108 | 108 | if (!empty($_GET)) { |
109 | 109 | foreach (array_keys($_GET) as $k) { |
110 | 110 | $_GET[$k] = $xss->clean($_GET[$k]); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | $this->kernel->setClosure( |
131 | 131 | 'xss_cookie', |
132 | - function () use ($xss) { |
|
132 | + function() use ($xss) { |
|
133 | 133 | if (!empty($_COOKIE)) { |
134 | 134 | foreach (array_keys($_COOKIE) as $k) { |
135 | 135 | $_COOKIE[$k] = $xss->clean($_COOKIE[$k]); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | $this->kernel->setClosure( |
156 | 156 | 'xss_protection', |
157 | - function () use ($xss, $protectedList) { |
|
157 | + function() use ($xss, $protectedList) { |
|
158 | 158 | foreach ($protectedList as $v) { |
159 | 159 | $k = $v['variable'] ?? 'undefined'; |
160 | 160 |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | <div class="card-body"> |
130 | 130 | <form action="<?php echo $form ?>" method="post" autocomplete="off"> |
131 | 131 | <div class="main-content"> |
132 | - <?php if (! empty($error)) : ?> |
|
132 | + <?php if (!empty($error)) : ?> |
|
133 | 133 | <div class="error-notice"> |
134 | 134 | <?php echo $error; ?> |
135 | 135 | </div> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <div class="input-box"> |
141 | 141 | <input type="password" name="s_pass" placeholder="Password" class="form-input" /> |
142 | 142 | </div> |
143 | - <?php if (! empty($captchas)) : ?> |
|
143 | + <?php if (!empty($captchas)) : ?> |
|
144 | 144 | <div class="input-box"> |
145 | 145 | <?php foreach ($captchas as $captcha) : ?> |
146 | 146 | <?php echo $captcha->form(); ?> |
@@ -60,7 +60,7 @@ |
||
60 | 60 | <p><input type="submit" value="<?php _e('core', 'stop_submit', 'Submit') ?>" /></p> |
61 | 61 | </form> |
62 | 62 | </div> |
63 | - <?php if (! empty($dialoguserinfo)) : ?> |
|
63 | + <?php if (!empty($dialoguserinfo)) : ?> |
|
64 | 64 | <div class="status-user-info"> |
65 | 65 | <?php foreach ($dialoguserinfo as $key => $userinfo) : ?> |
66 | 66 | <div class="row"> |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | |
280 | 280 | foreach ($ipList as $ip) { |
281 | 281 | |
282 | - if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
282 | + if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
283 | 283 | |
284 | 284 | if ('allow' === $ip['rule']) { |
285 | 285 | $allowedList[] = $ip['ip']; |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | $this->kernel->setProperty( |
353 | 353 | 'deny_attempt_enable', |
354 | 354 | [ |
355 | - 'data_circle' => $setting['data_circle']['enable'], // false |
|
355 | + 'data_circle' => $setting['data_circle']['enable'], // false |
|
356 | 356 | 'system_firewall' => $setting['system_firewall']['enable'], // false |
357 | 357 | ] |
358 | 358 | ); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | $this->kernel->setProperty( |
361 | 361 | 'deny_attempt_buffer', |
362 | 362 | [ |
363 | - 'data_circle' => $setting['data_circle']['buffer'], // 10 |
|
363 | + 'data_circle' => $setting['data_circle']['buffer'], // 10 |
|
364 | 364 | 'system_firewall' => $setting['system_firewall']['buffer'], // 10 |
365 | 365 | ] |
366 | 366 | ); |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | |
429 | 429 | $lastResetTime = $cronjobSetting['config']['last_update']; |
430 | 430 | |
431 | - if (!empty($lastResetTime) ) { |
|
431 | + if (!empty($lastResetTime)) { |
|
432 | 432 | $lastResetTime = strtotime($lastResetTime); |
433 | 433 | } else { |
434 | 434 | // @codeCoverageIgnoreStart |