1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Fix Formatting

This commit is contained in:
Tim Düsterhus 2012-12-20 18:46:38 +01:00
parent 0fad9b0c8c
commit 474d3c2f3c
9 changed files with 11 additions and 11 deletions

View File

@ -9,6 +9,7 @@
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package be.bastelstu.wcf.chat
*/
// @codingStandardsIgnoreFile
final class Install {
/**
* Contains all the styles the current installation has.

View File

@ -125,4 +125,4 @@ public function assignVariables() {
'action' => 'edit'
));
}
}
}

View File

@ -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();

View File

@ -41,4 +41,4 @@ public function getData(array $cacheResource) {
return $data;
}
}
}

View File

@ -10,4 +10,4 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command
*/
class NotFoundException extends \Exception { }
class NotFoundException extends \Exception { }

View File

@ -29,4 +29,4 @@ public function __construct($username) {
public function getUsername() {
return $this->username;
}
}
}

View File

@ -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');
}
}
}

View File

@ -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) {

View File

@ -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);
}
}