@@ -143,10 +143,10 @@ |
||
| 143 | 143 | return $headers; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - /** |
|
| 147 | - * This static method will create a new Request object, based on the |
|
| 148 | - * current PHP request. |
|
| 149 | - */ |
|
| 146 | + /** |
|
| 147 | + * This static method will create a new Request object, based on the |
|
| 148 | + * current PHP request. |
|
| 149 | + */ |
|
| 150 | 150 | public static function getRequest(): RequestBuilder |
| 151 | 151 | { |
| 152 | 152 | $serverArr = $_SERVER; |
@@ -115,14 +115,14 @@ |
||
| 115 | 115 | } |
| 116 | 116 | $controller = $this->resolveClass($middleware[0], $info['path'], $info['namespace']); |
| 117 | 117 | if (method_exists($controller, 'handle')) { |
| 118 | - $return = call_user_func_array([$controller, 'handle'], $params); |
|
| 119 | - if($return != true) { |
|
| 120 | - echo $return; |
|
| 121 | - exit; |
|
| 118 | + $return = call_user_func_array([$controller, 'handle'], $params); |
|
| 119 | + if($return != true) { |
|
| 120 | + echo $return; |
|
| 121 | + exit; |
|
| 122 | 122 | |
| 123 | 123 | } else { |
| 124 | - return $return; |
|
| 125 | - } |
|
| 124 | + return $return; |
|
| 125 | + } |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | return $this->exception('handle() method is not found in <b>' . $command . '</b> class.'); |