From: Tim Düsterhus Date: Thu, 20 Aug 2020 10:35:02 +0000 (+0200) Subject: Add `since` PHPDoc for cleaned package update server management X-Git-Tag: 5.3.0_Alpha_1~22^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8b292331646eb85d9b168f4c6a0a22c1838fd72;p=GitHub%2FWoltLab%2FWCF.git Add `since` PHPDoc for cleaned package update server management Co-authored-by: Matthias Schmidt --- diff --git a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php index a4d5b5c87e..c3ab55c868 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php @@ -70,6 +70,8 @@ class PackageUpdateServerAddForm extends AbstractForm { /** * Validates the server URL. + * + * @since 5.3 */ protected function validateServerURL() { if (empty($this->serverURL)) { @@ -93,6 +95,8 @@ class PackageUpdateServerAddForm extends AbstractForm { /** * Returns the first package update server with a matching serverURL. + * + * @since 5.3 */ protected function findDuplicateServer() { $packageServerList = new PackageUpdateServerList(); diff --git a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php index b9f94889ac..2af28a4159 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php @@ -47,6 +47,8 @@ class PackageUpdateServerEditForm extends PackageUpdateServerAddForm { /** * Does nothing. + * + * @since 5.3 */ public function validateServerURL() { // The server URL cannot be modified, thus we do not need to validate it. diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index 251e909882..9b7941bc57 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -249,6 +249,7 @@ class PackageUpdateServer extends DatabaseObject { * Returns whether the current user may delete this update server. * * @return boolean + * @since 5.3 */ public final function canDelete() { return !$this->isWoltLabUpdateServer() && !$this->isWoltLabStoreServer();