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>
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||||
* @package be.bastelstu.wcf.chat
|
* @package be.bastelstu.wcf.chat
|
||||||
*/
|
*/
|
||||||
|
// @codingStandardsIgnoreFile
|
||||||
final class Install {
|
final class Install {
|
||||||
/**
|
/**
|
||||||
* Contains all the styles the current installation has.
|
* Contains all the styles the current installation has.
|
||||||
|
@ -171,8 +171,8 @@ public function readData() {
|
|||||||
|
|
||||||
$smileyCategories = \wcf\data\smiley\SmileyCache::getInstance()->getCategories();
|
$smileyCategories = \wcf\data\smiley\SmileyCache::getInstance()->getCategories();
|
||||||
|
|
||||||
foreach($smileyCategories as $category) {
|
foreach ($smileyCategories as $category) {
|
||||||
if(!$category->disabled) $this->smileyCategories[] = $category;
|
if (!$category->disabled) $this->smileyCategories[] = $category;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->defaultSmilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies();
|
$this->defaultSmilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies();
|
||||||
|
@ -23,7 +23,6 @@ public function execute(\wcf\data\cronjob\Cronjob $cronjob) {
|
|||||||
$suspensionAction = new chat\suspension\ChatSuspensionAction(array(), 'prune');
|
$suspensionAction = new chat\suspension\ChatSuspensionAction(array(), 'prune');
|
||||||
$suspensionAction->executeAction();
|
$suspensionAction->executeAction();
|
||||||
|
|
||||||
|
|
||||||
// kill dead users
|
// kill dead users
|
||||||
$deadUsers = \wcf\util\ChatUtil::getDiedUsers();
|
$deadUsers = \wcf\util\ChatUtil::getDiedUsers();
|
||||||
foreach ($deadUsers as $deadUser) {
|
foreach ($deadUsers as $deadUser) {
|
||||||
|
@ -99,8 +99,8 @@ public static function getPackageID() {
|
|||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public static function /* int */ getRandomNumber() {
|
public static function /* int */ getRandomNumber() {
|
||||||
return 4; // chosen by a fair dice roll
|
return 4; // chosen by a fair dice roll
|
||||||
// guaranteed to be random
|
// guaranteed to be random
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -256,7 +256,7 @@ public static function writeUserData(array $data, \wcf\data\user\User $user = nu
|
|||||||
$ush = UserStorageHandler::getInstance();
|
$ush = UserStorageHandler::getInstance();
|
||||||
$packageID = self::getPackageID();
|
$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);
|
$ush->update($user->userID, $key, (isset(static::$serialize[$key])) ? serialize($value) : $value, $packageID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user