@@ -168,8 +168,7 @@ |
||
| 168 | 168 | $data = json_encode($data); |
| 169 | 169 | |
| 170 | 170 | return $this->isJsonp() ? |
| 171 | - $this->getRequest()->getQueryParams()['callback'] . '(' . $data . ')' : |
|
| 172 | - $data; |
|
| 171 | + $this->getRequest()->getQueryParams()['callback'] . '(' . $data . ')' : $data; |
|
| 173 | 172 | } |
| 174 | 173 | |
| 175 | 174 | /** |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | try { |
| 42 | 42 | $args = isset($route->args) ? |
| 43 | - $route->args : |
|
| 44 | - $this->getFunctionArgs($route, new \ReflectionMethod($this, $method)); |
|
| 43 | + $route->args : $this->getFunctionArgs($route, new \ReflectionMethod($this, $method)); |
|
| 45 | 44 | } catch (\RuntimeException $e) { |
| 46 | 45 | return $this->setResponseError(400, 'Bad Request'); |
| 47 | 46 | } |
@@ -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 | */ |