Completed
Push — master ( 7469ec...e31cc4 )
by Ma
02:25
created
src/Api/Route/Strategy/RouteFound.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
      */
44 44
     private function invokeController($controllerName, $method, array $parameters)
45 45
     {
46
-        if ( ! $this->controllerFactory) {
46
+        if (!$this->controllerFactory) {
47 47
             throw new \Exception('Controller Factory invalid.');
48 48
         }
49 49
         
50 50
         $controller = $this->controllerFactory->build($controllerName);
51 51
 
52
-        if ( ! method_exists($controller, $method)) {
52
+        if (!method_exists($controller, $method)) {
53 53
             throw new \Exception("Method called '{$method}' not found in '{$controllerName}'.");
54 54
         }
55 55
         call_user_func_array([$controller, $method], $parameters);
Please login to merge, or discard this patch.
src/Api/Route/Strategy/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
                 break;
24 24
         }
25 25
 
26
-        if ( ! class_exists($className)) {
26
+        if (!class_exists($className)) {
27 27
             throw new \Exception("Strategy {$className} not found");
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Api/Controller/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
                 break;
24 24
         }
25 25
 
26
-        if ( ! class_exists($className)) {
26
+        if (!class_exists($className)) {
27 27
             throw new \Exception("Strategy {$className} not found");
28 28
         }
29 29
 
Please login to merge, or discard this patch.
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.
src/Api/Module/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
         }
18 18
 
19 19
         $className = self::MODULE_NAMESPACE.$systemPrefix.'\\'.$className;
20
-        if ( ! class_exists($className)) {
20
+        if (!class_exists($className)) {
21 21
             throw new ApiException('Invalid module given');
22 22
         }
23 23
 
24 24
         $reflectionClass = new \ReflectionClass($className);
25
-        if ( ! $reflectionClass->isSubclassOf(self::CONTRACT_NAMESPACE.'ModuleInterface')) {
25
+        if (!$reflectionClass->isSubclassOf(self::CONTRACT_NAMESPACE.'ModuleInterface')) {
26 26
             throw new ApiException('Not valid implementation of Module');
27 27
         }
28 28
 
Please login to merge, or discard this patch.