diff --git a/src/Aviat/Ion/View.php b/src/Aviat/Ion/View.php index 5899a0b2..61dacd51 100644 --- a/src/Aviat/Ion/View.php +++ b/src/Aviat/Ion/View.php @@ -72,7 +72,7 @@ abstract class View { { $this->send(); } - } + } /** * Return rendered output @@ -119,11 +119,13 @@ abstract class View { public function getOutput() { return $this->string($this->output)->__toString(); - } - - /** - * Send output to client - */ - abstract public function send(); + } + + /** + * Send output to client + * + * @return void + */ + abstract public function send(); } // End of View.php \ No newline at end of file diff --git a/src/Aviat/Ion/View/HttpView.php b/src/Aviat/Ion/View/HttpView.php index 1a62f853..8f8abbf0 100644 --- a/src/Aviat/Ion/View/HttpView.php +++ b/src/Aviat/Ion/View/HttpView.php @@ -31,44 +31,46 @@ class HttpView extends BaseView { public function redirect($url, $code) { $this->response->redirect->to($url, $code); - } - - /** - * Set the status code of the request - * - * @param int $code - * @return HttpView - */ - public function setStatusCode($code) - { - $this->response->status->setCode($code); - $this->response->status->setVersion(1.1); - return $this; - } - - /** - * Send output to client - */ - public function send() - { - $this->hasRendered = TRUE; - $this->output(); - } - - /** - * Send the appropriate response - * - * @return void - */ - protected function output() - { - $content =& $this->response->content; - $content->set($this->output); - $content->setType($this->contentType); - $content->setCharset('utf-8'); - - $sender = new ResponseSender($this->response); - $sender->__invoke(); - } + } + + /** + * Set the status code of the request + * + * @param int $code + * @return HttpView + */ + public function setStatusCode($code) + { + $this->response->status->setCode($code); + $this->response->status->setVersion(1.1); + return $this; + } + + /** + * Send output to client + * + * @return void + */ + public function send() + { + $this->hasRendered = TRUE; + $this->output(); + } + + /** + * Send the appropriate response + * + * @return void + */ + protected function output() + { + $content =& $this->response->content; + $content->set($this->output); + $content->setType($this->contentType); + $content->setCharset('utf-8'); + + $sender = new ResponseSender($this->response); + $sender->__invoke(); + } } \ No newline at end of file