mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fix formatting
I keep forgetting these rules ...
This commit is contained in:
parent
cc73d89672
commit
8c2d6efec0
@ -81,7 +81,8 @@ public function readData() {
|
|||||||
if ($this->date > TIME_NOW) {
|
if ($this->date > TIME_NOW) {
|
||||||
throw new \wcf\system\exception\UserInputException('date', 'inFuture');
|
throw new \wcf\system\exception\UserInputException('date', 'inFuture');
|
||||||
}
|
}
|
||||||
} catch (\wcf\system\exception\UserInputException $e) {
|
}
|
||||||
|
catch (\wcf\system\exception\UserInputException $e) {
|
||||||
$this->errorField = $e->getField();
|
$this->errorField = $e->getField();
|
||||||
$this->errorType = $e->getType();
|
$this->errorType = $e->getType();
|
||||||
|
|
||||||
@ -92,7 +93,8 @@ public function readData() {
|
|||||||
if ($this->date < strtotime('today 00:00:00 -'.ceil(CHAT_LOG_ARCHIVETIME / 1440).'day')) {
|
if ($this->date < strtotime('today 00:00:00 -'.ceil(CHAT_LOG_ARCHIVETIME / 1440).'day')) {
|
||||||
throw new \wcf\system\exception\UserInputException('date', 'tooLongAgo');
|
throw new \wcf\system\exception\UserInputException('date', 'tooLongAgo');
|
||||||
}
|
}
|
||||||
} catch (\wcf\system\exception\UserInputException $e) {
|
}
|
||||||
|
catch (\wcf\system\exception\UserInputException $e) {
|
||||||
$this->errorField = $e->getField();
|
$this->errorField = $e->getField();
|
||||||
$this->errorType = $e->getType();
|
$this->errorType = $e->getType();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user