From 2c8807aa7cea39f5a7bc062d8fcf600ec41c723b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 24 Jul 2020 11:22:25 +0200 Subject: [PATCH] Add missing PHPDoc tags to StyleAddForm / Style --- .../install/files/lib/acp/form/StyleAddForm.class.php | 10 ++++++++++ wcfsetup/install/files/lib/data/style/Style.class.php | 3 +++ 2 files changed, 13 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index b810e77ade..87ef89fc5b 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -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'; diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 32842dece8..2c3b6c0c10 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -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); -- 2.20.1