Passed
Push — master ( 67611c...18e951 )
by Henri
02:13 queued 32s
created
src/RunInTrait.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,9 @@  discard block
 block discarded – undo
93 93
             $ReflectionMethod =  new \ReflectionFunction($closure);
94 94
 
95 95
             foreach($ReflectionMethod->getParameters() as $param){
96
-                if(!isset($_REQUEST[$param->name])) continue;
96
+                if(!isset($_REQUEST[$param->name])) {
97
+                    continue;
98
+                }
97 99
                 $params[$param->name] = $_REQUEST[$param->name];
98 100
             }
99 101
             
@@ -176,7 +178,9 @@  discard block
 block discarded – undo
176 178
         $ReflectionMethod =  new \ReflectionMethod(new $controller(), $method);
177 179
 
178 180
         foreach($ReflectionMethod->getParameters() as $param){
179
-            if(!isset($_REQUEST[$param->name])) continue;
181
+            if(!isset($_REQUEST[$param->name])) {
182
+                continue;
183
+            }
180 184
             $params[$param->name] = $_REQUEST[$param->name];
181 185
         }
182 186
 
Please login to merge, or discard this patch.
src/Router.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 self::getInstance()->checkMethod($route, $requestMethod);
100 100
                 self::getInstance()->checkData($route, (new Uri($_SERVER['REQUEST_URI']))->getPath());
101 101
                 return self::getInstance();
102
-            }catch(\Exception $er){
102
+            } catch(\Exception $er){
103 103
                 continue;
104 104
             }
105 105
         }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         try{
127 127
             $action = unserialize(self::getInstance()->current()['action']);
128 128
             self::getInstance()->executeRouteAction((is_string($action)) ? $action : $action->getClosure());
129
-        }catch(\Exception $er){
129
+        } catch(\Exception $er){
130 130
             self::getInstance()->error = $er;
131 131
         }
132 132
         
Please login to merge, or discard this patch.