From: Magnus Kühn Date: Sat, 29 Dec 2012 14:38:42 +0000 (+0100) Subject: Removed returning of value in read*-methods X-Git-Tag: 2.0.0_Beta_1~658^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7eaa7ce9c196bddcb21c904ab3b87430dd22cb3;p=GitHub%2FWoltLab%2FWCF.git Removed returning of value in read*-methods --- 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]; } /**