@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | is_null($pingHostname) ? $config->hostToPing = $config->defaultHostToPing : $config->hostToPing = $pingHostname; |
19 | 19 | $this->addModules($container->get('ModuleFacade'), $config); |
20 | 20 | $renderData = $container->get('ModuleFacade')->returnModulesData(); |
21 | - if ( ! $this->canUserPassWhiteList($ip, $config)) { |
|
21 | + if (!$this->canUserPassWhiteList($ip, $config)) { |
|
22 | 22 | $renderData = ['error' => 'Your ip is not on whitelist.']; |
23 | 23 | } |
24 | 24 | $response = $this->renderFormat( |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | private function canUserPassWhiteList($clientIp, Config $config) |
34 | 34 | { |
35 | 35 | if ($config->whitelistEnabled) { |
36 | - if ( ! in_array($clientIp, $config->whitelist)) { |
|
36 | + if (!in_array($clientIp, $config->whitelist)) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | } |