From: Tim Düsterhus Date: Wed, 9 Jul 2014 20:16:58 +0000 (+0200) Subject: Fix code style of Edit History X-Git-Tag: 2.1.0_Alpha_1~589 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=996db334e86e57cc1802f00e65149de5c0f5fcd3;p=GitHub%2FWoltLab%2FWCF.git Fix code style of Edit History --- diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php index bec522d0a0..c6bc6ba0f2 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryAction.class.php @@ -4,19 +4,19 @@ use wcf\data\object\type\ObjectTypeCache; use wcf\data\AbstractDatabaseObjectAction; /** -* Executes edit history entry-related actions. -* -* @author Tim Duesterhus -* @copyright 2001-2014 WoltLab GmbH -* @license GNU Lesser General Public License -* @package com.woltlab.wcf -* @subpackage data.edit.history.entry -* @category Community Framework -*/ + * Executes edit history entry-related actions. + * + * @author Tim Duesterhus + * @copyright 2001-2014 WoltLab GmbH + * @license GNU Lesser General Public License + * @package com.woltlab.wcf + * @subpackage data.edit.history.entry + * @category Community Framework + */ class EditHistoryEntryAction extends AbstractDatabaseObjectAction { /** - * @see \wcf\data\AbstractDatabaseObjectAction::$className - */ + * @see \wcf\data\AbstractDatabaseObjectAction::$className + */ protected $className = 'wcf\data\edit\history\entry\EditHistoryEntryEditor'; /** diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php index 6f6d46c039..4344b593d8 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php @@ -3,18 +3,18 @@ namespace wcf\data\edit\history\entry; use wcf\data\DatabaseObjectEditor; /** -* Extends the edit history entry object with functions to create, update and delete history entries. -* -* @author Tim Duesterhus -* @copyright 2001-2014 WoltLab GmbH -* @license GNU Lesser General Public License -* @package com.woltlab.wcf -* @subpackage data.edit.history.entry -* @category Community Framework -*/ + * Extends the edit history entry object with functions to create, update and delete history entries. + * + * @author Tim Duesterhus + * @copyright 2001-2014 WoltLab GmbH + * @license GNU Lesser General Public License + * @package com.woltlab.wcf + * @subpackage data.edit.history.entry + * @category Community Framework + */ class EditHistoryEntryEditor extends DatabaseObjectEditor { /** - * @see \wcf\data\DatabaseObjectEditor::$baseClass - */ + * @see \wcf\data\DatabaseObjectEditor::$baseClass + */ protected static $baseClass = 'wcf\data\edit\history\entry\EditHistoryEntry'; } diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php index b86e47a616..9645edbdbd 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryList.class.php @@ -3,18 +3,18 @@ namespace wcf\data\edit\history\entry; use wcf\data\DatabaseObjectList; /** -* Represents a list of edit history entries. -* -* @author Tim Duesterhus -* @copyright 2001-2014 WoltLab GmbH -* @license GNU Lesser General Public License -* @package com.woltlab.wcf -* @subpackage data.edit.history.entry -* @category Community Framework -*/ + * Represents a list of edit history entries. + * + * @author Tim Duesterhus + * @copyright 2001-2014 WoltLab GmbH + * @license GNU Lesser General Public License + * @package com.woltlab.wcf + * @subpackage data.edit.history.entry + * @category Community Framework + */ class EditHistoryEntryList extends DatabaseObjectList { /** - * @see \wcf\data\DatabaseObjectList::$className - */ + * @see \wcf\data\DatabaseObjectList::$className + */ public $className = 'wcf\data\edit\history\entry\EditHistoryEntry'; } diff --git a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php index 8dbd378b30..0536a2089b 100644 --- a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php +++ b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php @@ -123,8 +123,8 @@ class EditHistoryPage extends AbstractPage { } /** - * @see \wcf\page\IPage::readData() - */ + * @see \wcf\page\IPage::readData() + */ public function readData() { parent::readData(); @@ -143,8 +143,8 @@ class EditHistoryPage extends AbstractPage { } /** - * @see \wcf\page\IPage::assignVariables() - */ + * @see \wcf\page\IPage::assignVariables() + */ public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index 2748a837ff..b08d4a4cba 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -6,36 +6,36 @@ use wcf\system\SingletonFactory; use wcf\system\WCF; /** -* Manages the search index. -* -* @author Tim Duesterhus -* @copyright 2001-2014 WoltLab GmbH -* @license GNU Lesser General Public License -* @package com.woltlab.wcf -* @subpackage system.search -* @category Community Framework -*/ + * Manages the edit history. + * + * @author Tim Duesterhus + * @copyright 2001-2014 WoltLab GmbH + * @license GNU Lesser General Public License + * @package com.woltlab.wcf + * @subpackage system.search + * @category Community Framework + */ class EditHistoryManager extends SingletonFactory { /** - * list of available object types - * @var array - */ + * list of available object types + * @var array + */ protected $availableObjectTypes = array(); /** - * @see \wcf\system\SingletonFactory::init() - */ + * @see \wcf\system\SingletonFactory::init() + */ protected function init() { // get available object types $this->availableObjectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.edit.historySavingObject'); } /** - * Returns the id of the object type with the given name. - * - * @param string $objectType - * @return integer - */ + * Returns the id of the object type with the given name. + * + * @param string $objectType + * @return integer + */ public function getObjectTypeID($objectType) { if (!isset($this->availableObjectTypes[$objectType])) { throw new SystemException("unknown object type '".$objectType."'"); @@ -45,16 +45,16 @@ class EditHistoryManager extends SingletonFactory { } /** - * Adds a new entry. - * - * @param string $objectType - * @param integer $objectID - * @param string $message - * @param integer $time - * @param integer $userID - * @param string $username - * @param string $editReason - */ + * Adds a new entry. + * + * @param string $objectType + * @param integer $objectID + * @param string $message + * @param integer $time + * @param integer $userID + * @param string $username + * @param string $editReason + */ public function add($objectType, $objectID, $message, $time, $userID, $username, $editReason) { // save new entry $sql = "INSERT INTO wcf".WCF_N."_edit_history_entry @@ -65,11 +65,11 @@ class EditHistoryManager extends SingletonFactory { } /** - * Deletes edit history entries. - * - * @param string $objectType - * @param array $objectIDs - */ + * Deletes edit history entries. + * + * @param string $objectType + * @param array $objectIDs + */ public function delete($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); diff --git a/wcfsetup/install/files/lib/system/edit/IHistorySavingObject.class.php b/wcfsetup/install/files/lib/system/edit/IHistorySavingObject.class.php index 7ce69c2849..af86b7c91e 100644 --- a/wcfsetup/install/files/lib/system/edit/IHistorySavingObject.class.php +++ b/wcfsetup/install/files/lib/system/edit/IHistorySavingObject.class.php @@ -5,15 +5,15 @@ use wcf\data\IDatabaseObjectProcessor; use wcf\data\IUserContent; /** -* Represents an object that saves it's edit history. -* -* @author Tim Duesterhus -* @copyright 2001-2014 WoltLab GmbH -* @license GNU Lesser General Public License -* @package com.woltlab.wcf -* @subpackage system.edit -* @category Community Framework -*/ + * Represents an object that saves it's edit history. + * + * @author Tim Duesterhus + * @copyright 2001-2014 WoltLab GmbH + * @license GNU Lesser General Public License + * @package com.woltlab.wcf + * @subpackage system.edit + * @category Community Framework + */ interface IHistorySavingObject extends IDatabaseObjectProcessor, IUserContent { /** * Reverts the object's text to the given EditHistoryEntry.