@@ -114,13 +114,13 @@ |
||
114 | 114 | } |
115 | 115 | $controller = $this->resolveClass($middleware[0], $info['path'], $info['namespace']); |
116 | 116 | if (method_exists($controller, 'handle')) { |
117 | - $response = call_user_func_array([$controller, 'handle'], $params); |
|
118 | - if($response != false) { |
|
119 | - echo $response; |
|
120 | - exit; |
|
121 | - } else { |
|
122 | - return $response; |
|
123 | - } |
|
117 | + $response = call_user_func_array([$controller, 'handle'], $params); |
|
118 | + if($response != false) { |
|
119 | + echo $response; |
|
120 | + exit; |
|
121 | + } else { |
|
122 | + return $response; |
|
123 | + } |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | return $this->exception('handle() method is not found in <b>' . $command . '</b> class.'); |
@@ -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; |