Apply PSR-12 code style (#145)
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / data / conversation / FeedConversationList.class.php
index 4ace14d79de0e7b666b2b171bad812f6d6c1725c..9f9c54f7b74bec3793f0e5ca3268b1aa05bc2015 100644 (file)
@@ -1,54 +1,60 @@
 <?php
+
 namespace wcf\data\conversation;
+
 use wcf\system\WCF;
 
 /**
  * Represents a list of conversations for RSS feeds.
- * 
- * @author     Alexander Ebert
- * @copyright  2001-2019 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    WoltLabSuite\Core\Data\Conversation
  *
- * @method     FeedConversation        current()
- * @method     FeedConversation[]      getObjects()
- * @method     FeedConversation|null   search($objectID)
- * @property   FeedConversation[]      $objects
+ * @author  Alexander Ebert
+ * @copyright   2001-2019 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\Data\Conversation
+ *
+ * @method  FeedConversation    current()
+ * @method  FeedConversation[]  getObjects()
+ * @method  FeedConversation|null   search($objectID)
+ * @property    FeedConversation[] $objects
  */
-class FeedConversationList extends ConversationList {
-       /**
-        * @inheritDoc
-        */
-       public $decoratorClassName = FeedConversation::class;
-       
-       /**
-        * @inheritDoc
-        */
-       public $sqlOrderBy = 'conversation.lastPostTime DESC';
-       
-       /** @noinspection PhpMissingParentCallCommonInspection */
-       /**
-        * @inheritDoc
-        */
-       public function readObjectIDs() {
-               $sql = "SELECT  conversation_to_user.conversationID AS objectID
-                       FROM    wcf".WCF_N."_conversation_to_user conversation_to_user
-                               ".$this->sqlConditionJoins."
-                               ".$this->getConditionBuilder()."
-                               ".(!empty($this->sqlOrderBy) ? "ORDER BY ".$this->sqlOrderBy : '');
-               $statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
-               $statement->execute($this->getConditionBuilder()->getParameters());
-               $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
-       }
-       
-       /**
-        * @inheritDoc
-        */
-       public function readObjects() {
-               if ($this->objectIDs === null) {
-                       $this->readObjectIDs();
-               }
-               
-               parent::readObjects();
-       }
+class FeedConversationList extends ConversationList
+{
+    /**
+     * @inheritDoc
+     */
+    public $decoratorClassName = FeedConversation::class;
+
+    /**
+     * @inheritDoc
+     */
+    public $sqlOrderBy = 'conversation.lastPostTime DESC';
+
+    /** @noinspection PhpMissingParentCallCommonInspection */
+
+    /**
+     * @inheritDoc
+     */
+    public function readObjectIDs()
+    {
+        $sql = "SELECT conversation_to_user.conversationID AS objectID
+                       FROM    wcf" . WCF_N . "_conversation_to_user conversation_to_user
+                               " . $this->sqlConditionJoins . "
+                               " . $this->getConditionBuilder() . "
+                               " . (!empty($this->sqlOrderBy) ? "ORDER BY " . $this->sqlOrderBy : '');
+        $statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
+        $statement->execute($this->getConditionBuilder()->getParameters());
+        $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
+    }
+
+    /**
+     * @inheritDoc
+     */
+    public function readObjects()
+    {
+        if ($this->objectIDs === null) {
+            $this->readObjectIDs();
+        }
+
+        parent::readObjects();
+    }
 }