@@ -28,8 +28,7 @@  | 
                                                    ||
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
| 30 | 30 | $args = isset($route->args) ?  | 
                                                        
| 31 | - $route->args :  | 
                                                        |
| 32 | - $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));  | 
                                                        |
| 31 | + $route->args : $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));  | 
                                                        |
| 33 | 32 | |
| 34 | 33 | $response = call_user_func_array([$this, $method], $args);  | 
                                                        
| 35 | 34 | |
@@ -14,7 +14,8 @@  | 
                                                    ||
| 14 | 14 | *  | 
                                                        
| 15 | 15 | * @return ResponseInterface  | 
                                                        
| 16 | 16 | */  | 
                                                        
| 17 | -    public function run() { | 
                                                        |
| 17 | + public function run()  | 
                                                        |
| 18 | +    { | 
                                                        |
| 18 | 19 | $request = $this->getRequest();  | 
                                                        
| 19 | 20 |          if (!$request) { | 
                                                        
| 20 | 21 |              throw new \RuntimeException("Request object is not set for controller");             |