From 474d3c2f3cc8557ccc70e9a8b9913ac54f7f1da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Dec 2012 18:46:38 +0100 Subject: [PATCH] Fix Formatting --- file/acp/be.bastelstu.wcf.chat.install.php | 1 + file/lib/acp/form/ChatRoomEditForm.class.php | 2 +- file/lib/page/ChatPage.class.php | 4 ++-- .../cache/builder/ChatPermissionCacheBuilder.class.php | 2 +- file/lib/system/chat/command/NotFoundException.class.php | 2 +- .../lib/system/chat/command/UserNotFoundException.class.php | 2 +- .../system/chat/permission/ChatPermissionHandler.class.php | 2 +- file/lib/system/cronjob/ChatCleanupCronjob.class.php | 1 - file/lib/util/ChatUtil.class.php | 6 +++--- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/file/acp/be.bastelstu.wcf.chat.install.php b/file/acp/be.bastelstu.wcf.chat.install.php index f404002..01cd57a 100644 --- a/file/acp/be.bastelstu.wcf.chat.install.php +++ b/file/acp/be.bastelstu.wcf.chat.install.php @@ -9,6 +9,7 @@ * @license Creative Commons Attribution-NonCommercial-ShareAlike * @package be.bastelstu.wcf.chat */ +// @codingStandardsIgnoreFile final class Install { /** * Contains all the styles the current installation has. diff --git a/file/lib/acp/form/ChatRoomEditForm.class.php b/file/lib/acp/form/ChatRoomEditForm.class.php index c56f7b6..7081d4d 100644 --- a/file/lib/acp/form/ChatRoomEditForm.class.php +++ b/file/lib/acp/form/ChatRoomEditForm.class.php @@ -125,4 +125,4 @@ public function assignVariables() { 'action' => 'edit' )); } -} \ No newline at end of file +} diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index f1b3a29..0e52689 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -171,8 +171,8 @@ public function readData() { $smileyCategories = \wcf\data\smiley\SmileyCache::getInstance()->getCategories(); - foreach($smileyCategories as $category) { - if(!$category->disabled) $this->smileyCategories[] = $category; + foreach ($smileyCategories as $category) { + if (!$category->disabled) $this->smileyCategories[] = $category; } $this->defaultSmilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies(); diff --git a/file/lib/system/cache/builder/ChatPermissionCacheBuilder.class.php b/file/lib/system/cache/builder/ChatPermissionCacheBuilder.class.php index 8a7144d..22234dd 100644 --- a/file/lib/system/cache/builder/ChatPermissionCacheBuilder.class.php +++ b/file/lib/system/cache/builder/ChatPermissionCacheBuilder.class.php @@ -41,4 +41,4 @@ public function getData(array $cacheResource) { return $data; } -} \ No newline at end of file +} diff --git a/file/lib/system/chat/command/NotFoundException.class.php b/file/lib/system/chat/command/NotFoundException.class.php index 5d59450..e267ea5 100644 --- a/file/lib/system/chat/command/NotFoundException.class.php +++ b/file/lib/system/chat/command/NotFoundException.class.php @@ -10,4 +10,4 @@ * @package be.bastelstu.wcf.chat * @subpackage system.chat.command */ -class NotFoundException extends \Exception { } \ No newline at end of file +class NotFoundException extends \Exception { } diff --git a/file/lib/system/chat/command/UserNotFoundException.class.php b/file/lib/system/chat/command/UserNotFoundException.class.php index 0033050..e199cd9 100644 --- a/file/lib/system/chat/command/UserNotFoundException.class.php +++ b/file/lib/system/chat/command/UserNotFoundException.class.php @@ -29,4 +29,4 @@ public function __construct($username) { public function getUsername() { return $this->username; } -} \ No newline at end of file +} diff --git a/file/lib/system/chat/permission/ChatPermissionHandler.class.php b/file/lib/system/chat/permission/ChatPermissionHandler.class.php index 78e93b7..bc32e21 100644 --- a/file/lib/system/chat/permission/ChatPermissionHandler.class.php +++ b/file/lib/system/chat/permission/ChatPermissionHandler.class.php @@ -109,4 +109,4 @@ public static function clearCache() { $ush->resetAll('chatUserPermissions', $packageID); \wcf\system\cache\CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.chatPermission-[a-f0-9]{40}.php'); } -} \ No newline at end of file +} diff --git a/file/lib/system/cronjob/ChatCleanupCronjob.class.php b/file/lib/system/cronjob/ChatCleanupCronjob.class.php index 3260ec5..00a436c 100644 --- a/file/lib/system/cronjob/ChatCleanupCronjob.class.php +++ b/file/lib/system/cronjob/ChatCleanupCronjob.class.php @@ -23,7 +23,6 @@ public function execute(\wcf\data\cronjob\Cronjob $cronjob) { $suspensionAction = new chat\suspension\ChatSuspensionAction(array(), 'prune'); $suspensionAction->executeAction(); - // kill dead users $deadUsers = \wcf\util\ChatUtil::getDiedUsers(); foreach ($deadUsers as $deadUser) { diff --git a/file/lib/util/ChatUtil.class.php b/file/lib/util/ChatUtil.class.php index 63aa969..f30ac25 100644 --- a/file/lib/util/ChatUtil.class.php +++ b/file/lib/util/ChatUtil.class.php @@ -99,8 +99,8 @@ public static function getPackageID() { * @return integer */ public static function /* int */ getRandomNumber() { - return 4; // chosen by a fair dice roll - // guaranteed to be random + return 4; // chosen by a fair dice roll + // guaranteed to be random } /** @@ -256,7 +256,7 @@ public static function writeUserData(array $data, \wcf\data\user\User $user = nu $ush = UserStorageHandler::getInstance(); $packageID = self::getPackageID(); - foreach($data as $key => $value) { + foreach ($data as $key => $value) { $ush->update($user->userID, $key, (isset(static::$serialize[$key])) ? serialize($value) : $value, $packageID); } }