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:
parent
0fad9b0c8c
commit
474d3c2f3c
@ -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.
|
||||
|
@ -125,4 +125,4 @@ public function assignVariables() {
|
||||
'action' => 'edit'
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -41,4 +41,4 @@ public function getData(array $cacheResource) {
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,4 @@
|
||||
* @package be.bastelstu.wcf.chat
|
||||
* @subpackage system.chat.command
|
||||
*/
|
||||
class NotFoundException extends \Exception { }
|
||||
class NotFoundException extends \Exception { }
|
||||
|
@ -29,4 +29,4 @@ public function __construct($username) {
|
||||
public function getUsername() {
|
||||
return $this->username;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user