From a7eaa7ce9c196bddcb21c904ab3b87430dd22cb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20K=C3=BChn?= Date: Sat, 29 Dec 2012 15:38:42 +0100 Subject: [PATCH] Removed returning of value in read*-methods --- .../lib/data/AbstractDatabaseObjectAction.class.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 200af0fc15..1330323e5c 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -368,10 +368,9 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * @param string $variableName * @param boolean $allowEmpty * @param string $arrayIndex - * @return integer */ protected function readInteger($variableName, $allowEmpty = false, $arrayIndex = '') { - return $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_INTEGER); + $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_INTEGER); } /** @@ -380,10 +379,9 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * @param string $variableName * @param boolean $allowEmpty * @param string $arrayIndex - * @return string */ protected function readString($variableName, $allowEmpty = false, $arrayIndex = '') { - return $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_STRING); + $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_STRING); } /** @@ -392,10 +390,9 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * @param string $variableName * @param boolean $allowEmpty * @param string $arrayIndex - * @return boolean */ protected function readBool($variableName, $allowEmpty = false, $arrayIndex = '') { - return $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_BOOL); + $this->readValue($variableName, $allowEmpty, $arrayIndex, self::TYPE_BOOL); } /** @@ -473,8 +470,6 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID } break; } - - return $target[$variableName]; } /** -- 2.20.1