Completed
Push — master ( 3d1281...7469ec )
by Ma
06:45
created
src/Api/Controller/ServerInfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.