From 394b00f92732faa1efa832c2e0fcc697ebdacee4 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 16 Jul 2014 18:03:19 +0200 Subject: [PATCH] Remove unused variable Also improve code formatting --- .../MessageEmbeddedObjectManager.class.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php index ee1dd7fdeb..c4361a2d34 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php @@ -19,31 +19,31 @@ use wcf\system\WCF; class MessageEmbeddedObjectManager extends SingletonFactory { /** * caches message to embedded object assignments - * @var array + * @var array */ protected $messageEmbeddedObjects = array(); /** * caches embedded objects - * @var array + * @var array */ protected $embeddedObjects = array(); /** * object type of the active message - * @var integer + * @var integer */ protected $activeMessageObjectTypeID = null; /** * id of the active message - * @var integer + * @var integer */ protected $activeMessageID = null; /** * list of embedded object handlers - * @var array + * @var array */ protected $embeddedObjectHandlers = null; @@ -107,7 +107,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * Loads the embedded objects for given messages. - * + * * @param string $messageObjectType * @param array $messageIDs */ @@ -152,7 +152,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { } /** - * Gets all embedded objects of a specific type. + * Returns all embedded objects of a specific type. * * @param string $embeddedObjectType * @return array @@ -180,7 +180,6 @@ class MessageEmbeddedObjectManager extends SingletonFactory { */ public function getObject($embeddedObjectType, $objectID) { $embeddedObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.message.embeddedObject', $embeddedObjectType); - $returnValue = array(); if (!empty($this->messageEmbeddedObjects[$this->activeMessageObjectTypeID][$this->activeMessageID][$embeddedObjectTypeID])) { foreach ($this->messageEmbeddedObjects[$this->activeMessageObjectTypeID][$this->activeMessageID][$embeddedObjectTypeID] as $embeddedObjectID) { if ($embeddedObjectID == $objectID) { @@ -238,7 +237,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * Returns a specific embedded object handler. - * + * * @param integer $objectTypeID * @return object */ -- 2.20.1