@@ -15,14 +15,14 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * @return ServerRequestInterface |
| 17 | 17 | */ |
| 18 | - abstract public function getRequest(); |
|
| 19 | - |
|
| 20 | - /** |
|
| 21 | - * Get response. set for controller |
|
| 22 | - * |
|
| 23 | - * @return ResponseInterface |
|
| 24 | - */ |
|
| 25 | - abstract public function getResponse(); |
|
| 18 | + abstract public function getRequest(); |
|
| 19 | + |
|
| 20 | + /** |
|
| 21 | + * Get response. set for controller |
|
| 22 | + * |
|
| 23 | + * @return ResponseInterface |
|
| 24 | + */ |
|
| 25 | + abstract public function getResponse(); |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Run the controller |
@@ -436,9 +436,9 @@ |
||
| 436 | 436 | */ |
| 437 | 437 | protected function getResponseStatusCode() |
| 438 | 438 | { |
| 439 | - $response = $this->getResponse(); |
|
| 439 | + $response = $this->getResponse(); |
|
| 440 | 440 | |
| 441 | - return $response ? $response->getStatusCode() : 0; |
|
| 441 | + return $response ? $response->getStatusCode() : 0; |
|
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * Add a global variable to the view. |
| 33 | 33 | * |
| 34 | 34 | * @param string $name Variable name |
| 35 | - * @param mixed $value |
|
| 35 | + * @param string $value |
|
| 36 | 36 | * @return $this |
| 37 | 37 | */ |
| 38 | 38 | public function setViewVariable($name, $value) |
@@ -48,7 +48,6 @@ discard block |
||
| 48 | 48 | * Expose a function to the view. |
| 49 | 49 | * |
| 50 | 50 | * @param string $function Variable name |
| 51 | - * @param mixed $callback |
|
| 52 | 51 | * @param string $as 'function' or 'filter' |
| 53 | 52 | * @return $this |
| 54 | 53 | */ |