From: Tim Düsterhus Date: Fri, 24 Jul 2020 09:22:25 +0000 (+0200) Subject: Add missing PHPDoc tags to StyleAddForm / Style X-Git-Tag: 5.3.0_Alpha_1~100^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c8807aa7cea39f5a7bc062d8fcf600ec41c723b;p=GitHub%2FWoltLab%2FWCF.git Add missing PHPDoc tags to StyleAddForm / Style --- 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);