@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | self::getInstance()->checkMethod($route, $requestMethod); |
| 71 | 71 | self::getInstance()->checkData($route, (new Uri($_SERVER['REQUEST_URI']))->getPath()); |
| 72 | 72 | return self::getInstance(); |
| 73 | - }catch(\Exception $er){ |
|
| 73 | + } catch(\Exception $er){ |
|
| 74 | 74 | continue; |
| 75 | 75 | } |
| 76 | 76 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | try{ |
| 98 | 98 | $action = unserialize(self::getInstance()->current()['action']); |
| 99 | 99 | self::getInstance()->executeRouteAction( (is_string($action)) ? $action : $action->getClosure() ); |
| 100 | - }catch(\Exception $er){ |
|
| 100 | + } catch(\Exception $er){ |
|
| 101 | 101 | self::getInstance()->error = $er; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -91,7 +91,9 @@ discard block |
||
| 91 | 91 | $ReflectionMethod = new \ReflectionFunction ($closure); |
| 92 | 92 | |
| 93 | 93 | foreach($ReflectionMethod->getParameters() as $param){ |
| 94 | - if(!isset($_REQUEST[$param->name])) continue; |
|
| 94 | + if(!isset($_REQUEST[$param->name])) { |
|
| 95 | + continue; |
|
| 96 | + } |
|
| 95 | 97 | $params[$param->name] = $_REQUEST[$param->name]; |
| 96 | 98 | } |
| 97 | 99 | |
@@ -174,7 +176,9 @@ discard block |
||
| 174 | 176 | $ReflectionMethod = new \ReflectionMethod(new $controller(), $method); |
| 175 | 177 | |
| 176 | 178 | foreach($ReflectionMethod->getParameters() as $param){ |
| 177 | - if(!isset($_REQUEST[$param->name])) continue; |
|
| 179 | + if(!isset($_REQUEST[$param->name])) { |
|
| 180 | + continue; |
|
| 181 | + } |
|
| 178 | 182 | $params[$param->name] = $_REQUEST[$param->name]; |
| 179 | 183 | } |
| 180 | 184 | |