@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | { |
437 | 437 | $setting = $this->getOption('failed_attempts_in_a_row', 'events'); |
438 | 438 | |
439 | - $enableDataCircle = $setting['data_circle']['enable'] ?: false; |
|
439 | + $enableDataCircle = $setting['data_circle']['enable'] ?: false; |
|
440 | 440 | $enableSystemFirewall = $setting['system_firewall']['enable'] ?: false; |
441 | 441 | |
442 | 442 | $this->kernel->setProperty('deny_attempt_enable', [ |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | $recordAttempt = $this->getOption('record_attempt'); |
454 | 454 | |
455 | 455 | $detectionPeriod = $recordAttempt['detection_period'] ?? 5; |
456 | - $timeToReset = $recordAttempt['time_to_reset'] ?? 1800; |
|
456 | + $timeToReset = $recordAttempt['time_to_reset'] ?? 1800; |
|
457 | 457 | |
458 | 458 | $this->kernel->setProperty('record_attempt_detection_period', $detectionPeriod); |
459 | 459 | $this->kernel->setProperty('reset_attempt_counter', $timeToReset); |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | protected function setIptablesWatchingFolder(): void |
468 | 468 | { |
469 | 469 | $iptablesSetting = $this->getOption('config', 'iptables'); |
470 | - $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
470 | + $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
471 | 471 | } |
472 | 472 | |
473 | 473 | /** |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | |
482 | 482 | if ($sessionLimitSetting['enable']) { |
483 | 483 | |
484 | - $onlineUsers = $sessionLimitSetting['config']['count'] ?? 100; |
|
484 | + $onlineUsers = $sessionLimitSetting['config']['count'] ?? 100; |
|
485 | 485 | $alivePeriod = $sessionLimitSetting['config']['period'] ?? 300; |
486 | 486 | |
487 | 487 | $this->kernel->limitSession($onlineUsers, $alivePeriod); |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | |
509 | 509 | $lastResetTime = $cronjobSetting['config']['last_update']; |
510 | 510 | |
511 | - if (!empty($lastResetTime) ) { |
|
511 | + if (!empty($lastResetTime)) { |
|
512 | 512 | $lastResetTime = strtotime($lastResetTime); |
513 | 513 | } else { |
514 | 514 | // @codeCoverageIgnoreStart |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | if (is_array($ipList)) { |
576 | 576 | foreach ($ipList as $ip) { |
577 | 577 | |
578 | - if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
578 | + if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
579 | 579 | |
580 | 580 | if ('allow' === $ip['rule']) { |
581 | 581 | $allowedList[] = $ip['ip']; |