From c8b292331646eb85d9b168f4c6a0a22c1838fd72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Aug 2020 12:35:02 +0200 Subject: [PATCH] Add `since` PHPDoc for cleaned package update server management Co-authored-by: Matthias Schmidt --- .../files/lib/acp/form/PackageUpdateServerAddForm.class.php | 4 ++++ .../files/lib/acp/form/PackageUpdateServerEditForm.class.php | 2 ++ .../data/package/update/server/PackageUpdateServer.class.php | 1 + 3 files changed, 7 insertions(+) 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(); -- 2.20.1