From: Matthias Schmidt Date: Sat, 7 May 2016 13:45:03 +0000 (+0200) Subject: Fix method return values X-Git-Tag: 3.0.0_Beta_1~1753 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbe0c349cff9e255d27031e870d85f8475fa8d7e;p=GitHub%2FWoltLab%2FWCF.git Fix method return values --- diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php index 7b107e39d2..470e4eb28a 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php @@ -39,7 +39,7 @@ class ACPSessionEditor extends DatabaseObjectEditor { $parameters['userID'] = null; } - return parent::update($parameters); + parent::update($parameters); } /** diff --git a/wcfsetup/install/files/lib/system/CLIWCF.class.php b/wcfsetup/install/files/lib/system/CLIWCF.class.php index f48f4a41d0..c7b4cbfa25 100644 --- a/wcfsetup/install/files/lib/system/CLIWCF.class.php +++ b/wcfsetup/install/files/lib/system/CLIWCF.class.php @@ -328,7 +328,7 @@ class CLIWCF extends WCF { if (WCF::getSession()->getPermission('admin.configuration.package.canUpdatePackage') && VERBOSITY >= -1 && !self::getArgvParser()->disableUpdateCheck) { $updates = PackageUpdateDispatcher::getInstance()->getAvailableUpdates(); if (!empty($updates)) { - $return = self::getReader()->println(count($updates) . ' update' . (count($updates) > 1 ? 's are' : ' is') . ' available'); + self::getReader()->println(count($updates) . ' update' . (count($updates) > 1 ? 's are' : ' is') . ' available'); if (VERBOSITY >= 1) { $table = array( diff --git a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php index b457446b46..fdda0bf0dd 100644 --- a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php @@ -38,7 +38,7 @@ class BackgroundQueueHandler extends SingletonFactory { * @see \wcf\system\background\BackgroundQueueHandler::enqueueAt() */ public function enqueueIn($jobs, $time = 0) { - return self::enqueueAt($jobs, TIME_NOW + $time); + self::enqueueAt($jobs, TIME_NOW + $time); } /** diff --git a/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php b/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php index 8f2afea58a..d14a1ec856 100644 --- a/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php @@ -19,6 +19,6 @@ trait TObjectUserCondition { * @inheritDoc */ public function checkUser(Condition $condition, User $user) { - $this->checkObject($user, $condition->conditionData); + return $this->checkObject($user, $condition->conditionData); } } diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php index d6fc74dc30..d48b6df7d3 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php @@ -69,7 +69,7 @@ abstract class AbstractPackageInstallationPlugin implements IPackageInstallation // call 'update' event EventHandler::getInstance()->fireAction($this, 'update'); - return $this->install(); + $this->install(); } /**