@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | |
315 | 315 | foreach ($ipList as $ip) { |
316 | 316 | |
317 | - if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
317 | + if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
318 | 318 | |
319 | 319 | if ('allow' === $ip['rule']) { |
320 | 320 | $allowedList[] = $ip['ip']; |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | $this->kernel->setProperty( |
377 | 377 | 'deny_attempt_enable', |
378 | 378 | [ |
379 | - 'data_circle' => $setting['data_circle']['enable'], // false |
|
379 | + 'data_circle' => $setting['data_circle']['enable'], // false |
|
380 | 380 | 'system_firewall' => $setting['system_firewall']['enable'], // false |
381 | 381 | ] |
382 | 382 | ); |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | $this->kernel->setProperty( |
385 | 385 | 'deny_attempt_buffer', |
386 | 386 | [ |
387 | - 'data_circle' => $setting['data_circle']['buffer'], // 10 |
|
387 | + 'data_circle' => $setting['data_circle']['buffer'], // 10 |
|
388 | 388 | 'system_firewall' => $setting['system_firewall']['buffer'], // 10 |
389 | 389 | ] |
390 | 390 | ); |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | |
430 | 430 | if ($sessionLimitSetting['enable']) { |
431 | 431 | |
432 | - $onlineUsers = $sessionLimitSetting['config']['count']; // default: 100 |
|
433 | - $alivePeriod = $sessionLimitSetting['config']['period']; // default: 300 |
|
432 | + $onlineUsers = $sessionLimitSetting['config']['count']; // default: 100 |
|
433 | + $alivePeriod = $sessionLimitSetting['config']['period']; // default: 300 |
|
434 | 434 | $isUniqueIp = $sessionLimitSetting['config']['unique_only']; // false |
435 | 435 | |
436 | 436 | $this->kernel->limitSession($onlineUsers, $alivePeriod, $isUniqueIp); |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | |
454 | 454 | $lastResetTime = $cronjobSetting['config']['last_update']; |
455 | 455 | |
456 | - if (!empty($lastResetTime) ) { |
|
456 | + if (!empty($lastResetTime)) { |
|
457 | 457 | $lastResetTime = strtotime($lastResetTime); |
458 | 458 | } else { |
459 | 459 | // @codeCoverageIgnoreStart |
@@ -535,8 +535,8 @@ discard block |
||
535 | 535 | $dialogInfo = $this->getOption('dialog_info_disclosure'); |
536 | 536 | |
537 | 537 | $this->kernel->setProperty('display_online_info', $dialogInfo['online_user_amount']); |
538 | - $this->kernel->setProperty('display_user_info', $dialogInfo['user_inforamtion']); |
|
539 | - $this->kernel->setProperty('display_http_code', $dialogInfo['http_status_code']); |
|
538 | + $this->kernel->setProperty('display_user_info', $dialogInfo['user_inforamtion']); |
|
539 | + $this->kernel->setProperty('display_http_code', $dialogInfo['http_status_code']); |
|
540 | 540 | $this->kernel->setProperty('display_reason_code', $dialogInfo['reason_code']); |
541 | 541 | $this->kernel->setProperty('display_reason_text', $dialogInfo['reason_text']); |
542 | 542 | } |
@@ -66,18 +66,18 @@ discard block |
||
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
69 | - /** |
|
69 | + /** |
|
70 | 70 | * Shieldon middleware invokable class. |
71 | 71 | * |
72 | - * @param Request $request |
|
73 | - * |
|
74 | - * @return mixed |
|
75 | - */ |
|
76 | - public function before(Request $request) |
|
77 | - { |
|
78 | - if ($request->isCLI()) { |
|
79 | - return; |
|
80 | - } |
|
72 | + * @param Request $request |
|
73 | + * |
|
74 | + * @return mixed |
|
75 | + */ |
|
76 | + public function before(Request $request) |
|
77 | + { |
|
78 | + if ($request->isCLI()) { |
|
79 | + return; |
|
80 | + } |
|
81 | 81 | |
82 | 82 | // CodeIgniter 4 is not a PSR-7 compatible framework, therefore we don't |
83 | 83 | // pass the Reqest and Reposne to Firewall instance. |
@@ -100,18 +100,18 @@ discard block |
||
100 | 100 | $httpResolver = new HttpResolver(); |
101 | 101 | $httpResolver($response); |
102 | 102 | } |
103 | - } |
|
104 | - |
|
105 | - /** |
|
106 | - * We don't have anything to do here. |
|
107 | - * |
|
108 | - * @param Response $request |
|
109 | - * @param Response $response |
|
110 | - * |
|
111 | - * @return mixed |
|
112 | - */ |
|
113 | - public function after(Request $request, Response $response) |
|
114 | - { |
|
103 | + } |
|
104 | + |
|
105 | + /** |
|
106 | + * We don't have anything to do here. |
|
107 | + * |
|
108 | + * @param Response $request |
|
109 | + * @param Response $response |
|
110 | + * |
|
111 | + * @return mixed |
|
112 | + */ |
|
113 | + public function after(Request $request, Response $response) |
|
114 | + { |
|
115 | 115 | |
116 | 116 | } |
117 | 117 | } |
118 | 118 | \ No newline at end of file |