@@ -93,7 +93,9 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -99,7 +99,7 @@ discard block |
||
| 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 |
||
| 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 | |