Add missing PHPDoc tags to StyleAddForm / Style
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 24 Jul 2020 09:22:25 +0000 (11:22 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 24 Jul 2020 09:23:15 +0000 (11:23 +0200)
wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php
wcfsetup/install/files/lib/data/style/Style.class.php

index b810e77ade95c0259c5abccd3b1f311a376a03e4..87ef89fc5b09f97d89d54d8626352382f2d80191 100644 (file)
@@ -207,6 +207,7 @@ class StyleAddForm extends AbstractForm {
        
        /**
         * @var mixed[]
+        * @since 5.3
         */
        public $uploads = [];
        
@@ -236,6 +237,9 @@ class StyleAddForm extends AbstractForm {
                }
        }
        
+       /**
+        * @since       5.3
+        */
        protected function getUploadFields() {
                return [
                        'image' => [],
@@ -247,6 +251,9 @@ class StyleAddForm extends AbstractForm {
                ];
        }
        
+       /**
+        * @since       5.3
+        */
        protected function rebuildUploadFields() {
                $handler = UploadHandler::getInstance();
                foreach ($this->getUploadFields() as $name => $options) {
@@ -442,6 +449,9 @@ class StyleAddForm extends AbstractForm {
                }
        }
        
+       /**
+        * @since       5.3
+        */
        protected function validateUploads() {
                // Preview image.
                $field = 'image';
index 32842dece85d1f1ae78b39fdf661830f3109a68f..2c3b6c0c1058e653af85c97053d62ed6c2344968 100644 (file)
@@ -69,6 +69,9 @@ class Style extends DatabaseObject {
        
        /**
         * Returns the absolute path to the style's asset folder.
+        * 
+        * @return      string
+        * @since       5.3
         */
        public function getAssetPath() {
                return FileUtil::addTrailingSlash(static::BASE_ASSET_PATH . 'style-' . $this->styleID);