".$this->getConditionBuilder();
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($this->getConditionBuilder()->getParameters());
- $row = $statement->fetchArray();
- return $row;
+ return $statement->fetchArray();
}
}
* @return string
*/
public function getObjectTypeName() {
- $objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID);
- return $objectType->objectType;
+ return ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID)->objectType;
}
/**
* @inheritDoc
*/
public function getTitle() {
- $title = PageCache::getInstance()->getPageTitle($this->pageID);
-
- return $title;
+ return PageCache::getInstance()->getPageTitle($this->pageID);
}
/**
CommentHandler::getInstance()->deleteObjects('com.woltlab.wcf.user.profileComment', $this->objectIDs);
}
- $returnValue = parent::delete();
-
- return $returnValue;
+ return parent::delete();
}
/**
}
}
- $data = implode("\n", $lines);
- return $data;
+ return implode("\n", $lines);
}
}
$user->userID,
$likeObject->likeObjectID
]);
- $row = $statement->fetchArray();
- return $row;
+ return $statement->fetchArray();
}
}
$row = $statement->fetchArray();
if ($row) {
- $document = unserialize(base64_decode($row['document']));
- return $document;
+ return unserialize(base64_decode($row['document']));
}
return null;
throw new ParentClassException($className, SingletonFactory::class);
}
- $object = call_user_func([$className, 'getInstance']);
- return $object;
+ return call_user_func([$className, 'getInstance']);
}
}
* @return integer
*/
protected function getCategoryID($categoryName) {
- $category = $this->getTopCategory($categoryName);
-
- return $category->categoryID;
+ return $this->getTopCategory($categoryName)->categoryID;
}
/**
* @return string
*/
protected function getCategoryName($categoryName) {
- $category = $this->getTopCategory($categoryName);
-
- return $category->categoryName;
+ return $this->getTopCategory($categoryName)->categoryName;
}
/**