Test Failed
Push — 2.x ( 9b487d...4021d6 )
by Terry
16:06
created
src/Firewall/Firewall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/Firewall/Kernel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Firewall/Panel/BaseController.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -476,12 +476,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Firewall/Panel/Ajax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Firewall/Panel/CsrfTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Firewall/Captcha/ImageCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
src/Firewall/Captcha/ReCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
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) {';
Please login to merge, or discard this patch.
src/Firewall/Firewall/Messenger/MessengerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Firewall/Firewall/Captcha/CaptchaFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.