From 1c802418a73510515564a936d8dde321897fab74 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 25 Jan 2017 12:21:48 +0100 Subject: [PATCH] More return type fixes --- Message/Http/Header.php | 16 ++++++++-------- Views/View.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Message/Http/Header.php b/Message/Http/Header.php index 76c76a420..168343f94 100644 --- a/Message/Http/Header.php +++ b/Message/Http/Header.php @@ -185,7 +185,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function push() + public function push() /* : void */ { if (self::$isLocked) { throw new \Exception('Already locked'); @@ -203,7 +203,7 @@ class Header extends HeaderAbstract /** * {@inheritdoc} */ - public function generate(string $code) + public function generate(string $code) /* : void */ { switch ($code) { case RequestStatus::R_403: @@ -234,7 +234,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate403() + private function generate403() /* : void */ { $this->set('HTTP', 'HTTP/1.0 403 Forbidden'); $this->set('Status', 'Status: HTTP/1.0 403 Forbidden'); @@ -249,7 +249,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate404() + private function generate404() /* : void */ { $this->set('HTTP', 'HTTP/1.0 404 Not Found'); $this->set('Status', 'Status: HTTP/1.0 404 Not Found'); @@ -264,7 +264,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate406() + private function generate406() /* : void */ { $this->set('HTTP', 'HTTP/1.0 406 Not acceptable'); $this->set('Status', 'Status: 406 Not acceptable'); @@ -279,7 +279,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate407() + private function generate407() /* : void */ { } @@ -292,7 +292,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate500() + private function generate500() /* : void */ { $this->set('HTTP', 'HTTP/1.0 500 Internal Server Error'); $this->set('Status', 'Status: 500 Internal Server Error'); @@ -308,7 +308,7 @@ class Header extends HeaderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function generate503() + private function generate503() /* : void */ { $this->set('HTTP', 'HTTP/1.0 503 Service Temporarily Unavailable'); $this->set('Status', 'Status: 503 Service Temporarily Unavailable'); diff --git a/Views/View.php b/Views/View.php index fc16baa7f..c1158c3bc 100644 --- a/Views/View.php +++ b/Views/View.php @@ -150,7 +150,7 @@ class View extends ViewAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function addData(string $id, $data) + public function addData(string $id, $data) /* : void */ { $this->data[$id] = $data; }