@@ -137,7 +137,7 @@ |
||
137 | 137 | |
138 | 138 | Event::AddListener( |
139 | 139 | 'dialog_output', |
140 | - function () { |
|
140 | + function() { |
|
141 | 141 | Container::set('shieldon_end', [ |
142 | 142 | 'time' => microtime(), |
143 | 143 | 'memory' => memory_get_usage(), |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | |
335 | 335 | Event::AddListener( |
336 | 336 | 'set_session_driver', |
337 | - function ($args) { |
|
337 | + function($args) { |
|
338 | 338 | $session = get_session_instance(); |
339 | 339 | $session->init( |
340 | 340 | $args['driver'], |
@@ -594,11 +594,11 @@ discard block |
||
594 | 594 | $this->initComponents(); |
595 | 595 | |
596 | 596 | $processMethods = [ |
597 | - 'isRuleExist', // Stage 1 - Looking for rule table. |
|
598 | - 'isTrustedBot', // Stage 2 - Detect popular search engine. |
|
599 | - 'isFakeRobot', // Stage 3 - Reject fake search engine crawlers. |
|
597 | + 'isRuleExist', // Stage 1 - Looking for rule table. |
|
598 | + 'isTrustedBot', // Stage 2 - Detect popular search engine. |
|
599 | + 'isFakeRobot', // Stage 3 - Reject fake search engine crawlers. |
|
600 | 600 | 'isIpComponent', // Stage 4 - IP manager. |
601 | - 'isComponents', // Stage 5 - Check other components. |
|
601 | + 'isComponents', // Stage 5 - Check other components. |
|
602 | 602 | ]; |
603 | 603 | |
604 | 604 | foreach ($processMethods as $method) { |
@@ -476,12 +476,10 @@ |
||
476 | 476 | $echo = []; |
477 | 477 | |
478 | 478 | $echo['css'] = $this->getConfig('messengers.' . $moduleName . '.confirm_test') ? |
479 | - 'success' : |
|
480 | - ''; |
|
479 | + 'success' : ''; |
|
481 | 480 | |
482 | 481 | $echo['icon'] = $this->getConfig('messengers.' . $moduleName . '.confirm_test') ? |
483 | - '<i class="fas fa-check"></i>' : |
|
484 | - '<i class="fas fa-exclamation"></i>'; |
|
482 | + '<i class="fas fa-check"></i>' : '<i class="fas fa-exclamation"></i>'; |
|
485 | 483 | |
486 | 484 | echo $echo[$echoType]; |
487 | 485 | } |
@@ -134,7 +134,7 @@ |
||
134 | 134 | $method = implode( |
135 | 135 | '', |
136 | 136 | array_map( |
137 | - function ($word) { |
|
137 | + function($word) { |
|
138 | 138 | return ucwords($word); |
139 | 139 | }, |
140 | 140 | $method |
@@ -86,7 +86,7 @@ |
||
86 | 86 | if (!empty($this->csrfField)) { |
87 | 87 | foreach ($this->csrfField as $value) { |
88 | 88 | // phpcs:ignore |
89 | - $string .= '<input type="hidden" name="' . $value['name'] .'" value="' . $value['value'] . '" id="csrf-field">'; |
|
89 | + $string .= '<input type="hidden" name="' . $value['name'] . '" value="' . $value['value'] . '" id="csrf-field">'; |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 | return $string; |
@@ -113,7 +113,7 @@ |
||
113 | 113 | 'colors' => [ |
114 | 114 | 'background' => [255, 255, 255], |
115 | 115 | 'border' => [153, 200, 255], |
116 | - 'text' => [51, 153, 255], |
|
116 | + 'text' => [51, 153, 255], |
|
117 | 117 | 'grid' => [153, 200, 255], |
118 | 118 | ], |
119 | 119 | ]; |
@@ -177,7 +177,7 @@ |
||
177 | 177 | } else { |
178 | 178 | $html .= '<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" value="">'; |
179 | 179 | $html .= '<script src="https://www.google.com/recaptcha/api.js?render=' . |
180 | - $this->key .'&hl=' . $this->lang . '"></script>'; |
|
180 | + $this->key . '&hl=' . $this->lang . '"></script>'; |
|
181 | 181 | $html .= '<script>'; |
182 | 182 | $html .= ' grecaptcha.ready(function() {'; |
183 | 183 | $html .= ' grecaptcha.execute("' . $this->key . '", {action: "homepage"}).then(function(token) {'; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $str = implode( |
62 | 62 | '', |
63 | 63 | array_map( |
64 | - function ($word) { |
|
64 | + function($word) { |
|
65 | 65 | return ucwords($word); |
66 | 66 | }, |
67 | 67 | $str |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $str = implode( |
62 | 62 | '', |
63 | 63 | array_map( |
64 | - function ($word) { |
|
64 | + function($word) { |
|
65 | 65 | return ucwords($word); |
66 | 66 | }, |
67 | 67 | $str |