From f4c294a77c5084b6018cc8a899b321bdc34dca24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 28 Feb 2014 17:06:50 +0100 Subject: [PATCH] Fix formatting --- acpMenu.xml | 4 +- acptemplate/__softwareVersions.tpl | 8 ++-- acptemplate/chatSuspensionList.tpl | 1 - acptemplate/messageLog.tpl | 7 ++-- acptemplate/roomList.tpl | 5 ++- contrib/build.php | 3 +- file/acp/be.bastelstu.chat.install.php | 3 +- file/acp/be.bastelstu.chat.update.php | 3 +- file/lib/acp/form/RoomAddForm.class.php | 4 +- file/lib/acp/form/RoomEditForm.class.php | 2 +- .../acp/page/ChatSuspensionListPage.class.php | 4 +- file/lib/data/CHATDatabaseObject.class.php | 2 +- file/lib/data/message/Message.class.php | 4 +- file/lib/data/message/MessageAction.class.php | 40 +++++++++++-------- file/lib/data/message/MessageList.class.php | 2 +- .../data/message/ViewableMessage.class.php | 2 +- file/lib/data/room/Room.class.php | 6 +-- file/lib/data/room/RoomEditor.class.php | 2 +- file/lib/data/suspension/Suspension.class.php | 2 +- .../suspension/SuspensionEditor.class.php | 2 +- .../data/suspension/SuspensionList.class.php | 2 +- file/lib/page/ChatPage.class.php | 2 +- file/lib/page/CopyrightPage.class.php | 4 +- file/lib/page/NewMessagesPage.class.php | 2 +- file/lib/system/CHATCore.class.php | 2 +- .../MessageAttachmentObjectType.class.php | 6 +-- .../system/command/AbstractCommand.class.php | 2 +- .../AbstractRestrictedCommand.class.php | 2 +- .../AbstractSuspensionCommand.class.php | 2 +- .../AbstractUnsuspensionCommand.class.php | 2 +- .../system/command/CommandHandler.class.php | 4 +- .../command/commands/AwayCommand.class.php | 2 +- .../command/commands/BanCommand.class.php | 2 +- .../command/commands/ColorCommand.class.php | 2 +- .../command/commands/FreeCommand.class.php | 2 +- .../command/commands/GbanCommand.class.php | 2 +- .../command/commands/GmuteCommand.class.php | 2 +- .../command/commands/InfoCommand.class.php | 2 +- .../command/commands/InviteCommand.class.php | 2 +- .../command/commands/MeCommand.class.php | 2 +- .../command/commands/MuteCommand.class.php | 2 +- .../command/commands/PlainCommand.class.php | 2 +- .../command/commands/RestoreCommand.class.php | 2 +- .../commands/TemproomCommand.class.php | 2 +- .../command/commands/UnbanCommand.class.php | 2 +- .../command/commands/UngbanCommand.class.php | 2 +- .../command/commands/UngmuteCommand.class.php | 2 +- .../command/commands/UnmuteCommand.class.php | 2 +- .../command/commands/WhereCommand.class.php | 2 +- .../command/commands/WhisperCommand.class.php | 2 +- ...ronjobExecuteChatCleanUpListener.class.php | 2 +- .../page/ChatPageMenuItemProvider.class.php | 4 +- .../permission/PermissionHandler.class.php | 4 +- file/lib/util/ChatUtil.class.php | 2 +- file/style/be.bastelstu.chat.less | 2 +- option.xml | 2 +- template/chat.tpl | 4 +- template/dashboardBoxOnlineList.tpl | 2 +- template/sidebar.tpl | 1 + 59 files changed, 101 insertions(+), 96 deletions(-) diff --git a/acpMenu.xml b/acpMenu.xml index 075fa79..9d50fe2 100644 --- a/acpMenu.xml +++ b/acpMenu.xml @@ -15,14 +15,14 @@ admin.chat.canEditRoom,admin.chat.canDeleteRoom 1 - + chat.acp.menu.link.chat admin.chat.canAddRoom 2 - + chat.acp.menu.link.chat diff --git a/acptemplate/__softwareVersions.tpl b/acptemplate/__softwareVersions.tpl index b5dd0fb..a706e72 100644 --- a/acptemplate/__softwareVersions.tpl +++ b/acptemplate/__softwareVersions.tpl @@ -1,4 +1,4 @@ -
-
{lang}wcf.acp.index.system.software.chatVersion{/lang}
-
{$__chat->getPackage()->packageVersion}
-
\ No newline at end of file +
+
{lang}wcf.acp.index.system.software.chatVersion{/lang}
+
{$__chat->getPackage()->packageVersion}
+
diff --git a/acptemplate/chatSuspensionList.tpl b/acptemplate/chatSuspensionList.tpl index e7330f3..773dbaa 100644 --- a/acptemplate/chatSuspensionList.tpl +++ b/acptemplate/chatSuspensionList.tpl @@ -163,5 +163,4 @@

{lang}wcf.global.noItems{/lang}

{/if} - {include file='footer'} diff --git a/acptemplate/messageLog.tpl b/acptemplate/messageLog.tpl index b2f9a02..70c8886 100644 --- a/acptemplate/messageLog.tpl +++ b/acptemplate/messageLog.tpl @@ -2,7 +2,7 @@ {if CHAT_LOG_ARCHIVETIME !== 0} - + {if $errorField === ''} - +

{lang}chat.acp.room.list{/lang}

@@ -27,6 +27,7 @@ {/hascontent} + {if $objects|count}
    diff --git a/contrib/build.php b/contrib/build.php index f04f3e4..09ef26f 100755 --- a/contrib/build.php +++ b/contrib/build.php @@ -1,9 +1,10 @@ #!/usr/bin/env php diff --git a/file/acp/be.bastelstu.chat.install.php b/file/acp/be.bastelstu.chat.install.php index a6b440d..e88e043 100644 --- a/file/acp/be.bastelstu.chat.install.php +++ b/file/acp/be.bastelstu.chat.install.php @@ -3,7 +3,7 @@ /** * Handles installation of Tims Chat. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -56,5 +56,6 @@ public function execute() { )); } } + $install = new Install(); $install->execute(); diff --git a/file/acp/be.bastelstu.chat.update.php b/file/acp/be.bastelstu.chat.update.php index 10ecaa5..58150e1 100644 --- a/file/acp/be.bastelstu.chat.update.php +++ b/file/acp/be.bastelstu.chat.update.php @@ -3,7 +3,7 @@ /** * Handles updates of Tims Chat. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -52,5 +52,6 @@ public function execute() { } } } + $update = new Update(); $update->execute(); diff --git a/file/lib/acp/form/RoomAddForm.class.php b/file/lib/acp/form/RoomAddForm.class.php index 5d27d29..76f3c56 100644 --- a/file/lib/acp/form/RoomAddForm.class.php +++ b/file/lib/acp/form/RoomAddForm.class.php @@ -6,7 +6,7 @@ /** * Shows the chatroom add form. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -52,7 +52,7 @@ public function __run() { */ public function readParameters() { parent::readParameters(); - + I18nHandler::getInstance()->register('title'); I18nHandler::getInstance()->register('topic'); } diff --git a/file/lib/acp/form/RoomEditForm.class.php b/file/lib/acp/form/RoomEditForm.class.php index 08b6f65..772b994 100644 --- a/file/lib/acp/form/RoomEditForm.class.php +++ b/file/lib/acp/form/RoomEditForm.class.php @@ -5,7 +5,7 @@ /** * Shows the chatroom edit form. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/acp/page/ChatSuspensionListPage.class.php b/file/lib/acp/page/ChatSuspensionListPage.class.php index 757d626..ee00ed3 100644 --- a/file/lib/acp/page/ChatSuspensionListPage.class.php +++ b/file/lib/acp/page/ChatSuspensionListPage.class.php @@ -53,7 +53,7 @@ class ChatSuspensionListPage extends \wcf\page\SortablePage { /* * username - * + * * @var String */ public $filterUsername = null; @@ -67,7 +67,7 @@ class ChatSuspensionListPage extends \wcf\page\SortablePage { /* * issuer username - * + * * @var String */ public $filterIssuerUsername = null; diff --git a/file/lib/data/CHATDatabaseObject.class.php b/file/lib/data/CHATDatabaseObject.class.php index 5ee98da..5f66e04 100644 --- a/file/lib/data/CHATDatabaseObject.class.php +++ b/file/lib/data/CHATDatabaseObject.class.php @@ -3,7 +3,7 @@ /** * Basic implementation that sets proper table name. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/data/message/Message.class.php b/file/lib/data/message/Message.class.php index c345a30..cd841b9 100644 --- a/file/lib/data/message/Message.class.php +++ b/file/lib/data/message/Message.class.php @@ -7,7 +7,7 @@ /** * Represents a chat message. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -132,7 +132,7 @@ public function getUsername($colored = false) { /** * Converts this message into json-form. - * + * * @param boolean $raw * @return string */ diff --git a/file/lib/data/message/MessageAction.class.php b/file/lib/data/message/MessageAction.class.php index c6928db..a3b2425 100644 --- a/file/lib/data/message/MessageAction.class.php +++ b/file/lib/data/message/MessageAction.class.php @@ -7,7 +7,7 @@ /** * Executes message related actions. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -167,22 +167,6 @@ public function send() { return $returnValues['returnValues']; } - /** - * Fetches messages in between the specified timestamps. - * - * @return array Array containing message table, containerID and information about an empty message table. - */ - public function getMessages() { - // read messages - $messages = ViewableMessageList::getMessagesBetween($this->parameters['room'], $this->parameters['start'], $this->parameters['end']); - - return array( - 'noMessages' => (count($messages) == 0) ? true : null, - 'containerID' => $this->parameters['containerID'], - 'template' => WCF::getTPL()->fetch('__messageLogTable', 'chat', array('messages' => $messages), true) - ); - } - /** * Validates getting messages. */ @@ -200,6 +184,25 @@ public function validateGetMessages() { if ($this->parameters['room'] === null) throw new \wcf\system\exception\IllegalLinkException(); } + /** + * Fetches messages in between the specified timestamps. + * + * @return array Array containing message table, containerID and information about an empty message table. + */ + public function getMessages() { + // read messages + $messages = ViewableMessageList::getMessagesBetween($this->parameters['room'], $this->parameters['start'], $this->parameters['end']); + + return array( + 'noMessages' => (count($messages) == 0) ? true : null, + 'containerID' => $this->parameters['containerID'], + 'template' => WCF::getTPL()->fetch('__messageLogTable', 'chat', array('messages' => $messages), true) + ); + } + + /** + * Validates setting an attachment. + */ public function validateSendAttachment() { // read user data $this->parameters['userData']['color1'] = WCF::getUser()->chatColor1; @@ -243,6 +246,9 @@ public function validateSendAttachment() { } } + /** + * Creates a message linked to an attachment + */ public function sendAttachment() { $this->parameters['type'] = Message::TYPE_ATTACHMENT; $this->parameters['text'] = '[attach]'. $this->parameters['objectID'] .'[/attach]'; diff --git a/file/lib/data/message/MessageList.class.php b/file/lib/data/message/MessageList.class.php index e5fb496..18afe47 100644 --- a/file/lib/data/message/MessageList.class.php +++ b/file/lib/data/message/MessageList.class.php @@ -18,7 +18,7 @@ class MessageList extends \wcf\data\DatabaseObjectList { /** * Reads the newest messages for the given room. - * + * * @param \chat\data\room\Room $room * @param integer $number * @return array<\chat\data\message\Message> diff --git a/file/lib/data/message/ViewableMessage.class.php b/file/lib/data/message/ViewableMessage.class.php index 8fda6d4..68e8db3 100644 --- a/file/lib/data/message/ViewableMessage.class.php +++ b/file/lib/data/message/ViewableMessage.class.php @@ -3,7 +3,7 @@ /** * Represents a viewable chat message. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/data/room/Room.class.php b/file/lib/data/room/Room.class.php index a36d7fe..25249fc 100644 --- a/file/lib/data/room/Room.class.php +++ b/file/lib/data/room/Room.class.php @@ -5,7 +5,7 @@ /** * Represents a chat room. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -77,7 +77,7 @@ public function canEnter(\wcf\data\user\User $user = null) { /** * Returns whether the user is allowed to write messages in this room. - * + * * @param \wcf\data\user\User $user * @return boolean */ @@ -115,7 +115,7 @@ public function canWrite(\wcf\data\user\User $user = null) { /** * Returns the ID of this chatroom. - * + * * @see \wcf\system\request\IRouteController */ public function getID() { diff --git a/file/lib/data/room/RoomEditor.class.php b/file/lib/data/room/RoomEditor.class.php index 3e673da..e5a15a5 100644 --- a/file/lib/data/room/RoomEditor.class.php +++ b/file/lib/data/room/RoomEditor.class.php @@ -4,7 +4,7 @@ /** * Provides functions to edit chat rooms. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/data/suspension/Suspension.class.php b/file/lib/data/suspension/Suspension.class.php index dd162ed..1c7f350 100644 --- a/file/lib/data/suspension/Suspension.class.php +++ b/file/lib/data/suspension/Suspension.class.php @@ -4,7 +4,7 @@ /** * Represents a chat suspension. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/data/suspension/SuspensionEditor.class.php b/file/lib/data/suspension/SuspensionEditor.class.php index 76621d1..668bf96 100644 --- a/file/lib/data/suspension/SuspensionEditor.class.php +++ b/file/lib/data/suspension/SuspensionEditor.class.php @@ -4,7 +4,7 @@ /** * Provides functions to edit chat suspensions. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/data/suspension/SuspensionList.class.php b/file/lib/data/suspension/SuspensionList.class.php index f854b2b..ea6c108 100644 --- a/file/lib/data/suspension/SuspensionList.class.php +++ b/file/lib/data/suspension/SuspensionList.class.php @@ -3,7 +3,7 @@ /** * Represents a list of chat suspensions. - * + * * @author Maximilian Mader * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index 368ee9a..d5ab880 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -6,7 +6,7 @@ /** * Shows the chat-interface - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/page/CopyrightPage.class.php b/file/lib/page/CopyrightPage.class.php index cd27459..885f2dc 100644 --- a/file/lib/page/CopyrightPage.class.php +++ b/file/lib/page/CopyrightPage.class.php @@ -3,7 +3,7 @@ /** * Shows information about Tims chat. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -32,7 +32,7 @@ class CopyrightPage extends \wcf\page\AbstractPage { public $templateName = '__copyright'; /** - * @see \wcf\page\IPage::assignVariables() + * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); diff --git a/file/lib/page/NewMessagesPage.class.php b/file/lib/page/NewMessagesPage.class.php index b9c698b..0d1d7cf 100644 --- a/file/lib/page/NewMessagesPage.class.php +++ b/file/lib/page/NewMessagesPage.class.php @@ -6,7 +6,7 @@ /** * Loads new messages. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/CHATCore.class.php b/file/lib/system/CHATCore.class.php index 072d28a..de5d737 100644 --- a/file/lib/system/CHATCore.class.php +++ b/file/lib/system/CHATCore.class.php @@ -3,7 +3,7 @@ /** * Chat core - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/attachment/MessageAttachmentObjectType.class.php b/file/lib/system/attachment/MessageAttachmentObjectType.class.php index e1e78a4..bb294e3 100644 --- a/file/lib/system/attachment/MessageAttachmentObjectType.class.php +++ b/file/lib/system/attachment/MessageAttachmentObjectType.class.php @@ -4,7 +4,7 @@ /** * Attachment object type implementation for chat messages. - * + * * @author Maximilian Mader * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -48,10 +48,6 @@ public function canDownload($objectID) { return false; } - public function canPreview($objectID) { - return $this->canDownload($objectID); - } - /** * @see wcf\system\attachment\IAttachmentObjectType::canUpload() */ diff --git a/file/lib/system/command/AbstractCommand.class.php b/file/lib/system/command/AbstractCommand.class.php index c517526..3c36ee1 100644 --- a/file/lib/system/command/AbstractCommand.class.php +++ b/file/lib/system/command/AbstractCommand.class.php @@ -4,7 +4,7 @@ /** * Default implementation for commands. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/AbstractRestrictedCommand.class.php b/file/lib/system/command/AbstractRestrictedCommand.class.php index 79e4c63..0850b6a 100644 --- a/file/lib/system/command/AbstractRestrictedCommand.class.php +++ b/file/lib/system/command/AbstractRestrictedCommand.class.php @@ -4,7 +4,7 @@ /** * Default implementation for restricted commands - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/AbstractSuspensionCommand.class.php b/file/lib/system/command/AbstractSuspensionCommand.class.php index c35c603..970d883 100644 --- a/file/lib/system/command/AbstractSuspensionCommand.class.php +++ b/file/lib/system/command/AbstractSuspensionCommand.class.php @@ -7,7 +7,7 @@ /** * Default implementation for suspension commands - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/AbstractUnsuspensionCommand.class.php b/file/lib/system/command/AbstractUnsuspensionCommand.class.php index 4761824..afcf02f 100644 --- a/file/lib/system/command/AbstractUnsuspensionCommand.class.php +++ b/file/lib/system/command/AbstractUnsuspensionCommand.class.php @@ -7,7 +7,7 @@ /** * Default implementation for suspension commands - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/CommandHandler.class.php b/file/lib/system/command/CommandHandler.class.php index c3a127f..6961ff5 100644 --- a/file/lib/system/command/CommandHandler.class.php +++ b/file/lib/system/command/CommandHandler.class.php @@ -4,7 +4,7 @@ /** * Handles commands - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -80,7 +80,7 @@ public function isCommand($text = null) { /** * Returns the whole message. - * + * * @return string */ public function getText() { diff --git a/file/lib/system/command/commands/AwayCommand.class.php b/file/lib/system/command/commands/AwayCommand.class.php index 9448dfc..fe15bbb 100644 --- a/file/lib/system/command/commands/AwayCommand.class.php +++ b/file/lib/system/command/commands/AwayCommand.class.php @@ -4,7 +4,7 @@ /** * Marks the user as away. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/BanCommand.class.php b/file/lib/system/command/commands/BanCommand.class.php index 71e816a..3e0f6bd 100644 --- a/file/lib/system/command/commands/BanCommand.class.php +++ b/file/lib/system/command/commands/BanCommand.class.php @@ -3,7 +3,7 @@ /** * Bans a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/ColorCommand.class.php b/file/lib/system/command/commands/ColorCommand.class.php index ed7ab91..9b9a677 100644 --- a/file/lib/system/command/commands/ColorCommand.class.php +++ b/file/lib/system/command/commands/ColorCommand.class.php @@ -3,7 +3,7 @@ /** * Changes the color of the username - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/FreeCommand.class.php b/file/lib/system/command/commands/FreeCommand.class.php index 89bca0c..6cf44b0 100644 --- a/file/lib/system/command/commands/FreeCommand.class.php +++ b/file/lib/system/command/commands/FreeCommand.class.php @@ -3,7 +3,7 @@ /** * Informs everyone that the fish was freed. OH A NOEZ. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/GbanCommand.class.php b/file/lib/system/command/commands/GbanCommand.class.php index e1607dd..f71ee36 100644 --- a/file/lib/system/command/commands/GbanCommand.class.php +++ b/file/lib/system/command/commands/GbanCommand.class.php @@ -3,7 +3,7 @@ /** * Globally bans a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/GmuteCommand.class.php b/file/lib/system/command/commands/GmuteCommand.class.php index c1f89d5..1e15225 100644 --- a/file/lib/system/command/commands/GmuteCommand.class.php +++ b/file/lib/system/command/commands/GmuteCommand.class.php @@ -3,7 +3,7 @@ /** * Globally mutes a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/InfoCommand.class.php b/file/lib/system/command/commands/InfoCommand.class.php index 71877e8..91cf55e 100644 --- a/file/lib/system/command/commands/InfoCommand.class.php +++ b/file/lib/system/command/commands/InfoCommand.class.php @@ -7,7 +7,7 @@ /** * Shows information about the specified user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/InviteCommand.class.php b/file/lib/system/command/commands/InviteCommand.class.php index 5a529d0..24fc532 100644 --- a/file/lib/system/command/commands/InviteCommand.class.php +++ b/file/lib/system/command/commands/InviteCommand.class.php @@ -5,7 +5,7 @@ /** * Invites a user into a temproom. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/MeCommand.class.php b/file/lib/system/command/commands/MeCommand.class.php index 8d764ec..8032f85 100644 --- a/file/lib/system/command/commands/MeCommand.class.php +++ b/file/lib/system/command/commands/MeCommand.class.php @@ -3,7 +3,7 @@ /** * Indicates an action. The message is shown without the colon. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/MuteCommand.class.php b/file/lib/system/command/commands/MuteCommand.class.php index a53461b..9f8496e 100644 --- a/file/lib/system/command/commands/MuteCommand.class.php +++ b/file/lib/system/command/commands/MuteCommand.class.php @@ -3,7 +3,7 @@ /** * Mutes a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/PlainCommand.class.php b/file/lib/system/command/commands/PlainCommand.class.php index 7a8f21e..4c0766c 100644 --- a/file/lib/system/command/commands/PlainCommand.class.php +++ b/file/lib/system/command/commands/PlainCommand.class.php @@ -3,7 +3,7 @@ /** * Sends a message that starts with a slash. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/RestoreCommand.class.php b/file/lib/system/command/commands/RestoreCommand.class.php index 6bf429a..9369f4e 100644 --- a/file/lib/system/command/commands/RestoreCommand.class.php +++ b/file/lib/system/command/commands/RestoreCommand.class.php @@ -6,7 +6,7 @@ /** * Resets the color of a user - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/TemproomCommand.class.php b/file/lib/system/command/commands/TemproomCommand.class.php index 1823953..c446d2e 100644 --- a/file/lib/system/command/commands/TemproomCommand.class.php +++ b/file/lib/system/command/commands/TemproomCommand.class.php @@ -4,7 +4,7 @@ /** * Creates a temporary room - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/UnbanCommand.class.php b/file/lib/system/command/commands/UnbanCommand.class.php index 2058d3c..4cfcca1 100644 --- a/file/lib/system/command/commands/UnbanCommand.class.php +++ b/file/lib/system/command/commands/UnbanCommand.class.php @@ -3,7 +3,7 @@ /** * Bans a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/UngbanCommand.class.php b/file/lib/system/command/commands/UngbanCommand.class.php index 86cc54e..26e6531 100644 --- a/file/lib/system/command/commands/UngbanCommand.class.php +++ b/file/lib/system/command/commands/UngbanCommand.class.php @@ -3,7 +3,7 @@ /** * Unbans a user globally. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/UngmuteCommand.class.php b/file/lib/system/command/commands/UngmuteCommand.class.php index 12854c3..465217d 100644 --- a/file/lib/system/command/commands/UngmuteCommand.class.php +++ b/file/lib/system/command/commands/UngmuteCommand.class.php @@ -3,7 +3,7 @@ /** * Unmutes a user globally. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/UnmuteCommand.class.php b/file/lib/system/command/commands/UnmuteCommand.class.php index 3ab9de1..8c70c49 100644 --- a/file/lib/system/command/commands/UnmuteCommand.class.php +++ b/file/lib/system/command/commands/UnmuteCommand.class.php @@ -3,7 +3,7 @@ /** * Unmutes a user. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/WhereCommand.class.php b/file/lib/system/command/commands/WhereCommand.class.php index 2088ebc..5b3ae2d 100644 --- a/file/lib/system/command/commands/WhereCommand.class.php +++ b/file/lib/system/command/commands/WhereCommand.class.php @@ -3,7 +3,7 @@ /** * Shows the users that are online - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/command/commands/WhisperCommand.class.php b/file/lib/system/command/commands/WhisperCommand.class.php index 71132f7..7c49bf8 100644 --- a/file/lib/system/command/commands/WhisperCommand.class.php +++ b/file/lib/system/command/commands/WhisperCommand.class.php @@ -4,7 +4,7 @@ /** * Whispers a message. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/event/listener/HourlyCleanUpCronjobExecuteChatCleanUpListener.class.php b/file/lib/system/event/listener/HourlyCleanUpCronjobExecuteChatCleanUpListener.class.php index 4aff8cd..e02f565 100644 --- a/file/lib/system/event/listener/HourlyCleanUpCronjobExecuteChatCleanUpListener.class.php +++ b/file/lib/system/event/listener/HourlyCleanUpCronjobExecuteChatCleanUpListener.class.php @@ -4,7 +4,7 @@ /** * Vaporizes unneeded data. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php index ed65e48..2f04287 100644 --- a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php +++ b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php @@ -3,7 +3,7 @@ /** * PageMenuItemProvider for chat. - * + * * @author Tim Düsterhus * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike @@ -20,7 +20,7 @@ class ChatPageMenuItemProvider extends \wcf\system\menu\page\DefaultPageMenuItem /** * Hides the button when there is no valid room - * + * * @see \wcf\system\menu\page\PageMenuItemProvider::isVisible() */ public function isVisible() { diff --git a/file/lib/system/permission/PermissionHandler.class.php b/file/lib/system/permission/PermissionHandler.class.php index 121fef6..a1e3d22 100644 --- a/file/lib/system/permission/PermissionHandler.class.php +++ b/file/lib/system/permission/PermissionHandler.class.php @@ -6,7 +6,7 @@ /** * Handles chat-permissions. - * + * * @author Tim Düsterhus, Marcel Werk * @copyright 2010-2014 WoltLab GmbH * @license GNU Lesser General Public License @@ -80,7 +80,7 @@ public function __construct(\wcf\data\user\User $user = null) { /** * Fetches the given permission for the given room - * + * * @param \chat\data\room\Room $room * @param string $permission * @return boolean diff --git a/file/lib/util/ChatUtil.class.php b/file/lib/util/ChatUtil.class.php index 2a4872e..b9c1f2f 100644 --- a/file/lib/util/ChatUtil.class.php +++ b/file/lib/util/ChatUtil.class.php @@ -51,7 +51,7 @@ public static function getPackageID() { * Creates a gradient out of two colors represented by an integer. * The first byte is red, the second byte is green, the third one is blue. * The numbers can be easily expressed in hexadecimal notation: 0xFF0000 being red. - * + * * @param string $string * @param integer $start * @param integer $end diff --git a/file/style/be.bastelstu.chat.less b/file/style/be.bastelstu.chat.less index 1daf11f..9875633 100644 --- a/file/style/be.bastelstu.chat.less +++ b/file/style/be.bastelstu.chat.less @@ -1,6 +1,6 @@ /** * Styles for Tim’s Chat - * + * * @author Tim Düsterhus, Maximilian Mader * @copyright 2010-2014 Tim Düsterhus * @license Creative Commons Attribution-NonCommercial-ShareAlike diff --git a/option.xml b/option.xml index 347536f..0ae583d 100644 --- a/option.xml +++ b/option.xml @@ -10,7 +10,7 @@ chat - +