Fix the code style
authorAlexander Ebert <ebert@woltlab.com>
Tue, 15 Oct 2024 13:10:21 +0000 (15:10 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 15 Oct 2024 13:10:21 +0000 (15:10 +0200)
files/lib/bootstrap/com.woltlab.wcf.conversation.php
files/lib/page/ConversationPage.class.php

index 95d9bba5a0880c53493ae03963c59e10a847cfcf..a7789ed8a364ae9e3a768c1ebc19883db54c1874 100644 (file)
@@ -7,8 +7,8 @@ return static function (): void {
     $eventHandler = EventHandler::getInstance();
 
     $eventHandler->register(RebuildWorkerCollecting::class, static function (RebuildWorkerCollecting $event) {
-        $event->register(\wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5);
-        $event->register(\wcf\system\worker\ConversationRebuildDataWorker::class, 0);
-        $event->register(\wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300);
+        $event->register(wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5);
+        $event->register(wcf\system\worker\ConversationRebuildDataWorker::class, 0);
+        $event->register(wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300);
     });
 };
index 2d4e67f7b257ee33dc82d94b4b41de3cc9b123dc..21bfdcc0ed80c8b081b3c1e2f2fa170ec8e9cc39 100644 (file)
@@ -210,7 +210,8 @@ class ConversationPage extends MultipleLinkPage
         // update last visit time count
         if (
             $this->conversation->isNew()
-            && ($this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime
+            && (
+                $this->objectList->getMaxPostTime() > $this->conversation->lastVisitTime
                 || ($this->conversation->joinedAt && !\count($this->objectList))
             )
         ) {