Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / acl / option / ACLOption.class.php
index 32494ae5dcb4a8c21c359b665edb322018b33744..8183efc256e592820bd2104148ee4100f3a8cc69 100644 (file)
@@ -1,33 +1,37 @@
 <?php
+
 namespace wcf\data\acl\option;
+
 use wcf\data\DatabaseObject;
 
 /**
  * Represents an acl option.
- * 
- * @author     Marcel Werk
- * @copyright  2001-2019 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    WoltLabSuite\Core\Data\Acl\Option
  *
- * @property-read      int             $optionID               unique id of the acl option
- * @property-read      int             $packageID              id of the package which delivers the acl option
- * @property-read      int             $objectTypeID           id of the `com.woltlab.wcf.acl` object type
- * @property-read      string          $optionName             name and textual identifier of the acl option
- * @property-read      string          $categoryName           name of the acl option category the option belongs to
+ * @author  Marcel Werk
+ * @copyright   2001-2019 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\Data\Acl\Option
+ *
+ * @property-read   int $optionID       unique id of the acl option
+ * @property-read   int $packageID      id of the package which delivers the acl option
+ * @property-read   int $objectTypeID       id of the `com.woltlab.wcf.acl` object type
+ * @property-read   string $optionName     name and textual identifier of the acl option
+ * @property-read   string $categoryName       name of the acl option category the option belongs to
  */
-class ACLOption extends DatabaseObject {
-       /**
-        * Returns a list of options by object type id.
-        * 
-        * @param       int             $objectTypeID
-        * @return      ACLOptionList
-        */
-       public static function getOptions($objectTypeID) {
-               $optionList = new ACLOptionList();
-               $optionList->getConditionBuilder()->add("acl_option.objectTypeID = ?", [$objectTypeID]);
-               $optionList->readObjects();
-               
-               return $optionList;
-       }
+class ACLOption extends DatabaseObject
+{
+    /**
+     * Returns a list of options by object type id.
+     *
+     * @param int $objectTypeID
+     * @return  ACLOptionList
+     */
+    public static function getOptions($objectTypeID)
+    {
+        $optionList = new ACLOptionList();
+        $optionList->getConditionBuilder()->add("acl_option.objectTypeID = ?", [$objectTypeID]);
+        $optionList->readObjects();
+
+        return $optionList;
+    }
 }