@@ -23,8 +23,8 @@ |
||
| 23 | 23 | * Encode data in json format |
| 24 | 24 | * |
| 25 | 25 | * @param mixed $data |
| 26 | - * @param int $options=0 |
|
| 27 | - * @param int $depth=512 |
|
| 26 | + * @param int $options |
|
| 27 | + * @param int $depth |
|
| 28 | 28 | * @return string |
| 29 | 29 | */ |
| 30 | 30 | public static function encode($data, $options = 0, $depth = 512) |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | * @param int $code |
| 40 | 40 | * @return HttpView |
| 41 | 41 | */ |
| 42 | - public function setStatusCode($code) |
|
| 43 | - {
|
|
| 42 | + public function setStatusCode($code) |
|
| 43 | + { |
|
| 44 | 44 | $this->response->status->setCode($code); |
| 45 | 45 | $this->response->status->setVersion(1.1); |
| 46 | 46 | return $this; |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Send output to client |
| 51 | 51 | */ |
| 52 | - public function send() |
|
| 53 | - {
|
|
| 52 | + public function send() |
|
| 53 | + { |
|
| 54 | 54 | $this->hasRendered = TRUE; |
| 55 | 55 | $this->output(); |
| 56 | 56 | } |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - protected function output() |
|
| 64 | - {
|
|
| 63 | + protected function output() |
|
| 64 | + { |
|
| 65 | 65 | $content =& $this->response->content; |
| 66 | 66 | $content->set($this->output); |
| 67 | 67 | $content->setType($this->contentType); |