diff --git a/phpstan.neon b/phpstan.neon index 8518de62028..b81e4549194 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -19,3 +19,4 @@ parameters: - identifier: method.unused - identifier: new.static - identifier: trait.unused + checkMissingOverrideMethodAttribute: true diff --git a/wcfsetup/install.php b/wcfsetup/install.php index cae78780667..c9df0868b48 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -886,9 +886,7 @@ public function close() } } - /** - * @inheritDoc - */ + #[\Override] public function getContentList() { if (!$this->read) { @@ -898,9 +896,7 @@ public function getContentList() return $this->contentList; } - /** - * @inheritDoc - */ + #[\Override] public function getFileInfo($fileIndex) { if (!is_int($fileIndex)) { @@ -913,9 +909,7 @@ public function getFileInfo($fileIndex) return $this->contentList[$fileIndex]; } - /** - * @inheritDoc - */ + #[\Override] public function getIndexByFilename($filename) { foreach ($this->contentList as $index => $file) { @@ -926,9 +920,7 @@ public function getIndexByFilename($filename) return false; } - /** - * @inheritDoc - */ + #[\Override] public function extractToString($index) { if (!$this->read) { @@ -955,9 +947,7 @@ public function extractToString($index) return $content; } - /** - * @inheritDoc - */ + #[\Override] public function extract($index, $destination) { if (!$this->read) { diff --git a/wcfsetup/install/files/lib/acp/action/ArticleCategoryAction.class.php b/wcfsetup/install/files/lib/acp/action/ArticleCategoryAction.class.php index 24ed7d13efb..2fed7338b0f 100644 --- a/wcfsetup/install/files/lib/acp/action/ArticleCategoryAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/ArticleCategoryAction.class.php @@ -27,6 +27,7 @@ */ final class ArticleCategoryAction implements RequestHandlerInterface { + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (!WCF::getSession()->getPermission("admin.content.article.canManageArticle")) { diff --git a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php index 0866f2c6a7b..29194e0edc3 100644 --- a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php @@ -20,9 +20,7 @@ */ final class CacheClearAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (!WCF::getSession()->getPermission('admin.management.canRebuildData')) { diff --git a/wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php b/wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php index 135c67a5235..c4269149057 100644 --- a/wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php @@ -41,9 +41,7 @@ public function __construct() $this->userConfiguration = $this->dashboard->getUserConfiguration(); } - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (!WCF::getSession()->getPermission('admin.general.canUseAcp')) { diff --git a/wcfsetup/install/files/lib/acp/action/DevtoolsInstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/DevtoolsInstallPackageAction.class.php index 23e3baaf1c4..406be3c6632 100644 --- a/wcfsetup/install/files/lib/acp/action/DevtoolsInstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/DevtoolsInstallPackageAction.class.php @@ -25,18 +25,16 @@ final class DevtoolsInstallPackageAction extends InstallPackageAction */ public DevtoolsProject $project; - /** - * @inheritDoc - */ + #[\Override] protected function getRedirectLink(): string { return LinkHandler::getInstance()->getLink('DevtoolsProjectList'); } /** - * @inheritDoc * @throws IllegalLinkException */ + #[\Override] public function readParameters() { AbstractSecureAction::readParameters(); diff --git a/wcfsetup/install/files/lib/acp/action/FirstTimeSetupAction.class.php b/wcfsetup/install/files/lib/acp/action/FirstTimeSetupAction.class.php index 3c8dccddedd..55045e7a65c 100644 --- a/wcfsetup/install/files/lib/acp/action/FirstTimeSetupAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/FirstTimeSetupAction.class.php @@ -23,6 +23,7 @@ */ final class FirstTimeSetupAction implements RequestHandlerInterface { + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { WCF::getSession()->checkPermissions([ diff --git a/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php b/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php index 4ade49dd611..9e5bd0da77b 100644 --- a/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/FullLogoutAction.class.php @@ -16,9 +16,7 @@ */ final class FullLogoutAction extends LogoutAction { - /** - * @inheritDoc - */ + #[\Override] public function execute(): RedirectResponse { AbstractSecureAction::execute(); diff --git a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php index cbd67a89eab..4989669580d 100755 --- a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php @@ -31,9 +31,7 @@ class InstallPackageAction extends AbstractSecureAction private string $redirectLocation = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -72,6 +70,7 @@ public function readParameters() $this->installation = new PackageInstallationDispatcher($this->queue); } + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php b/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php index ad31345fbb7..b06757694b4 100755 --- a/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php @@ -21,9 +21,7 @@ class LogoutAction extends AbstractSecureAction */ public $loginRequired = true; - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/acp/action/StyleAddDarkModeAction.class.php b/wcfsetup/install/files/lib/acp/action/StyleAddDarkModeAction.class.php index b4402c7f82c..55b6e48cce7 100644 --- a/wcfsetup/install/files/lib/acp/action/StyleAddDarkModeAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/StyleAddDarkModeAction.class.php @@ -24,9 +24,7 @@ */ final class StyleAddDarkModeAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $parameters = Helper::mapQueryParameters( diff --git a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php index 132a7999d12..aa4c435bb91 100644 --- a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php @@ -36,9 +36,7 @@ final class UninstallPackageAction extends AbstractSecureAction protected int $packageID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -76,6 +74,7 @@ public function readParameters() } } + #[\Override] public function execute(): ResponseInterface { parent::execute(); @@ -174,9 +173,6 @@ public function stepUninstall(): ResponseInterface ]); } - /** - * @inheritDoc - */ protected function getCurrentAction(?int $queueID, PackageInstallationQueue $queue): string { if ($queueID === null) { diff --git a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php index 41943ca66dc..1b7889dce15 100644 --- a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php @@ -126,9 +126,7 @@ final class UserExportGdprAction extends AbstractAction */ public $userID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -147,9 +145,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute(): ResponseInterface { // you MUST NOT use the `execute` event to provide data, use `export` (see below) instead! diff --git a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php index 32aad6143bf..750d3a72e7a 100644 --- a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php @@ -69,9 +69,7 @@ final class UserQuickSearchAction extends AbstractAction */ public $maxResults = 2000; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -81,9 +79,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute(): RedirectResponse { ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.user.search'); diff --git a/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php b/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php index 860835dd16c..d778703cc47 100644 --- a/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php @@ -46,9 +46,7 @@ final class WorkerProxyAction extends AJAXInvokeAction */ public static $allowInvoke = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { AbstractSecureAction::readParameters(); @@ -82,9 +80,7 @@ protected function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { AbstractSecureAction::execute(); @@ -120,6 +116,7 @@ public function execute() * @param string $proceedURL * @return void */ + #[\Override] protected function sendResponse($progress = 0, ?array $parameters = null, $proceedURL = '') { if ($parameters === null) { diff --git a/wcfsetup/install/files/lib/acp/form/AbstractAcpForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractAcpForm.class.php index d55d2e54876..b50588e88eb 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractAcpForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractAcpForm.class.php @@ -63,9 +63,7 @@ public function getI18nValue($fieldName) return $this->i18nValues[$fieldName] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -81,9 +79,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -212,9 +208,7 @@ public function reset() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php index 93d88428d73..fbd9a386752 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php @@ -63,9 +63,7 @@ abstract class AbstractBulkProcessingForm extends AbstractForm */ public $templateName = 'bulkProcessing'; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -82,9 +80,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { // read bulk processable object type @@ -146,9 +142,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -164,9 +158,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { $action = $this->actions[$this->action]->getProcessor(); @@ -241,9 +233,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index e66f0a4a581..f557cc68da2 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -117,9 +117,7 @@ abstract class AbstractCategoryAddForm extends AbstractForm */ public $templateName = 'categoryAdd'; - /** - * @inheritDoc - */ + #[\Override] public function __run() { $classNameParts = \explode('\\', static::class); @@ -139,9 +137,7 @@ public function __run() return parent::__run(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -193,9 +189,7 @@ protected function readCategories() $this->categoryNodeTree = new UncachedCategoryNodeTree($this->objectType->objectType, 0, true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->objectType = CategoryHandler::getInstance()->getObjectTypeByName($this->objectTypeName); @@ -227,9 +221,7 @@ public function readData() $this->readCategories(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -253,9 +245,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -331,9 +321,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php index 661280c198f..0ea371af0ec 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php @@ -43,9 +43,7 @@ abstract class AbstractCategoryEditForm extends AbstractCategoryAddForm */ public $pageTitle = 'wcf.category.edit'; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -60,9 +58,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] protected function checkCategoryPermissions() { if ($this->category->objectTypeID != $this->objectType->objectTypeID) { @@ -74,9 +70,7 @@ protected function checkCategoryPermissions() } } - /** - * @inheritDoc - */ + #[\Override] protected function readCategories() { $this->categoryNodeTree = new CategoryNodeTree( @@ -87,9 +81,7 @@ protected function readCategories() ); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -103,9 +95,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -134,9 +124,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -204,9 +192,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] protected function validateParentCategory() { parent::validateParentCategory(); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php index 5d263bdba15..4400c4e5208 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php @@ -133,9 +133,7 @@ abstract class AbstractCustomOptionForm extends AbstractAcpForm 'select', ]; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -161,9 +159,7 @@ public function readParameters() $this->registerI18nValue($optionDescription); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -202,9 +198,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -220,9 +214,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if ($this->action === 'edit' && empty($_POST)) { @@ -271,9 +263,7 @@ protected function getActionParameters(): array return []; } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -303,9 +293,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { parent::reset(); @@ -316,9 +304,7 @@ public function reset() $this->required = $this->showOrder = $this->isDisabled = 0; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php index 632738bc82d..49366cb403b 100755 --- a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php @@ -60,9 +60,7 @@ abstract class AbstractOptionListForm extends AbstractForm */ public $supportI18n = true; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -85,9 +83,7 @@ protected function initOptionHandler() $this->optionHandler->init(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -95,9 +91,7 @@ public function readFormParameters() $this->optionHandler->readUserInput($_POST); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $this->errorType = \array_merge($this->optionHandler->validate(), $this->errorType); @@ -109,9 +103,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); diff --git a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php index b611467fd0e..2be5be56e63 100644 --- a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php @@ -86,9 +86,7 @@ class AdAddForm extends AbstractForm */ public $showOrder = 0; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -117,9 +115,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.condition.ad'); @@ -151,9 +147,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -187,9 +181,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -241,9 +233,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php b/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php index a1c4cafde33..dc97d425d49 100644 --- a/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php @@ -39,9 +39,7 @@ class AdEditForm extends AdAddForm */ public $adObject; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -57,9 +55,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -99,9 +95,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -115,9 +109,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php b/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php index 56ffbb43080..fbd2a23a445 100644 --- a/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ApplicationManagementForm.class.php @@ -66,9 +66,7 @@ final class ApplicationManagementForm extends AbstractForm */ public $pageNodeList; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -76,9 +74,7 @@ public function readParameters() $this->pageNodeList = (new PageNodeTree())->getNodeList(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -97,6 +93,7 @@ public function readFormParameters() } } + #[\Override] public function validate() { parent::validate(); @@ -142,9 +139,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -157,6 +152,7 @@ public function readData() $this->cookieDomain = $core->cookieDomain; } + #[\Override] public function save() { parent::save(); @@ -201,9 +197,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 86b794ba293..6fadad7c029 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -231,9 +231,7 @@ class ArticleAddForm extends AbstractForm protected CategoryNodeTree $categoryNodeTree; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -292,9 +290,7 @@ protected function readMultilingualSetting() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -396,9 +392,7 @@ protected function readImages() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -520,9 +514,7 @@ protected function validateLabelIDs() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -619,9 +611,7 @@ public function save() $this->setDefaultValues(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->attachmentHandler = new AttachmentHandler( @@ -675,9 +665,7 @@ protected function setDefaultValues() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php index 1419751aa97..3845c762838 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleCategoryAddForm.class.php @@ -39,9 +39,7 @@ class ArticleCategoryAddForm extends CategoryAddFormBuilderForm */ public $objectEditLinkController = ArticleCategoryEditForm::class; - /** - * @inheritDoc - */ + #[\Override] protected function getGeneralFormFields(): array { $formFields = parent::getGeneralFormFields(); @@ -62,9 +60,7 @@ protected function getGeneralFormFields(): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function finalizeForm() { $this->form->getDataHandler()->addProcessor( diff --git a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php index cb8fefcbec7..e4b881fb156 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php @@ -50,9 +50,7 @@ class ArticleEditForm extends ArticleAddForm */ public $article; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -75,17 +73,13 @@ public function readParameters() $this->attachmentObjectID = $this->article->articleID; } - /** - * @inheritDoc - */ + #[\Override] protected function readMultilingualSetting() { // not required for editing } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -162,9 +156,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (!empty($_POST) && !WCF::getSession()->getPermission('admin.content.cms.canUseMedia')) { @@ -226,9 +218,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php index 3d547ccac4d..dcb3d05c9b0 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php @@ -98,9 +98,7 @@ class BBCodeAddForm extends AbstractForm */ public $wysiwygIcon = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -108,9 +106,7 @@ public function readParameters() I18nHandler::getInstance()->register('buttonLabel'); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -167,9 +163,7 @@ protected function readButtonLabelFormParameter() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -239,9 +233,7 @@ protected function validateBBCodeTagUsage() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -306,9 +298,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php index 46957132e18..d1c860f736b 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php @@ -64,9 +64,7 @@ class BBCodeEditForm extends BBCodeAddForm 'table', ]; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { AbstractForm::readParameters(); @@ -84,9 +82,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function readButtonLabelFormParameter() { if (!\in_array($this->bbcode->bbcodeTag, self::$nativeBBCodes)) { @@ -94,9 +90,7 @@ protected function readButtonLabelFormParameter() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateBBCodeTagUsage() { if ($this->bbcodeTag != $this->bbcode->bbcodeTag) { @@ -104,9 +98,7 @@ protected function validateBBCodeTagUsage() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -163,9 +155,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -191,9 +181,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index 2605b968fb2..9e2fe5f43d6 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -230,9 +230,7 @@ class BoxAddForm extends AbstractForm */ public $groupedConditionObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -323,9 +321,7 @@ protected function readBoxType() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -438,9 +434,7 @@ protected function readBoxImages() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -595,9 +589,7 @@ protected function validateBoxPosition() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -703,9 +695,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes(Box::VISIBILITY_CONDITIONS_OBJECT_TYPE_NAME); @@ -819,9 +809,7 @@ protected function toFlatList(array $array): array return $returnList; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php index 7112f1f27aa..1bc66f0d686 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php @@ -41,9 +41,7 @@ class BoxEditForm extends BoxAddForm */ public $box; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -64,17 +62,13 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function readBoxType() { // not required for editing } - /** - * @inheritDoc - */ + #[\Override] protected function validateName() { if (\mb_strtolower($this->name) != \mb_strtolower($this->box->name)) { @@ -82,9 +76,7 @@ protected function validateName() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -198,9 +190,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (!empty($_POST) && !WCF::getSession()->getPermission('admin.content.cms.canUseMedia')) { @@ -279,9 +269,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php b/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php index 62f0286edc1..8f0c89f33e0 100644 --- a/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php @@ -104,9 +104,7 @@ abstract class CategoryAddFormBuilderForm extends AbstractFormBuilderForm 'title' => '', ]; - /** - * @inheritDoc - */ + #[\Override] public function __run() { $this->autosetControllers(); @@ -148,9 +146,7 @@ private function loadObjectType(): void } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -162,9 +158,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -384,9 +378,7 @@ protected function getObjectTypeProcessor(): ICategoryType return $this->objectType->getProcessor(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -415,9 +407,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] protected function finalizeForm() { parent::finalizeForm(); @@ -458,9 +448,7 @@ protected function readFormObject(): void } } - /** - * @inheritDoc - */ + #[\Override] public function saved() { $processor = $this->getObjectTypeProcessor(); @@ -525,9 +513,7 @@ public function saved() parent::saved(); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { AbstractForm::checkPermissions(); diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index ff1a9c17bb8..0f63adae10d 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -125,9 +125,7 @@ class DataImportForm extends AbstractForm */ public $userMergeMode = UserImporter::MERGE_MODE_EMAIL; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -177,9 +175,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -214,9 +210,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function submit() { if (!isset($_POST['sourceSelection'])) { @@ -224,9 +218,7 @@ public function submit() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -281,9 +273,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -310,9 +300,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -335,9 +323,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php index c7363e5f0d8..a44cea5d8ff 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectAddForm.class.php @@ -85,9 +85,7 @@ class DevtoolsProjectAddForm extends AbstractFormBuilderForm */ public $projectFields = ['name', 'path']; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -964,9 +962,7 @@ protected function getInstructionValuesValidator() }); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectEditForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectEditForm.class.php index 81cba14701f..5f4eda918f0 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectEditForm.class.php @@ -47,9 +47,7 @@ class DevtoolsProjectEditForm extends DevtoolsProjectAddForm */ public $missingElements = []; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -60,9 +58,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function buildForm() { parent::buildForm(); @@ -74,9 +70,7 @@ public function buildForm() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -94,9 +88,9 @@ public function readParameters() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function saved() { parent::saved(); @@ -109,9 +103,9 @@ public function saved() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function setFormObjectData() { parent::setFormObjectData(); @@ -357,9 +351,7 @@ protected function tooglePackageXmlFieldAvailabilty($available) } } - /** - * @inheritDoc - */ + #[\Override] protected function writePackageXml(DevtoolsProject $project, array $data) { if (!$this->hasBrokenPath) { diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php index cf8040254d3..a61f63d4504 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php @@ -71,9 +71,7 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm */ public $pipObject; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -122,9 +120,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function createForm() { parent::createForm(); @@ -151,9 +147,7 @@ protected function addPipFormFields() EventHandler::getInstance()->fireAction($this, 'addPipFormFields'); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -167,9 +161,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function setFormAction() { $this->form->action(LinkHandler::getInstance()->getLink('DevtoolsProjectPipEntryAdd', [ @@ -179,9 +171,7 @@ public function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php index 31bf69c94d8..349bd565645 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryEditForm.class.php @@ -27,9 +27,7 @@ class DevtoolsProjectPipEntryEditForm extends DevtoolsProjectPipEntryAddForm */ public $identifier = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -39,9 +37,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $pip = $this->pipObject->getPip(); @@ -60,9 +56,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] protected function addPipFormFields() { $this->form->formMode(IFormDocument::FORM_MODE_UPDATE); @@ -70,9 +64,7 @@ protected function addPipFormFields() parent::addPipFormFields(); } - /** - * @inheritDoc - */ + #[\Override] public function setFormAction() { $this->form->action(LinkHandler::getInstance()->getLink('DevtoolsProjectPipEntryEdit', [ @@ -83,9 +75,7 @@ public function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -114,9 +104,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function saved() { AbstractForm::saved(); @@ -124,9 +112,7 @@ public function saved() $this->form->showSuccessMessage(true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupLicenseForm.class.php b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupLicenseForm.class.php index ac666615008..ffa43bb213b 100644 --- a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupLicenseForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupLicenseForm.class.php @@ -45,9 +45,7 @@ final class FirstTimeSetupLicenseForm extends AbstractFormBuilderForm private LicenseData $licenseData; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -57,9 +55,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -120,9 +116,7 @@ protected function createForm() ); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsEmailForm.class.php b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsEmailForm.class.php index 1ac27258b78..7881870f559 100644 --- a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsEmailForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsEmailForm.class.php @@ -45,9 +45,7 @@ final class FirstTimeSetupOptionsEmailForm extends AbstractOptionListForm 'module_contact_form', ]; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -57,9 +55,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { parent::initOptionHandler(); @@ -67,9 +63,7 @@ protected function initOptionHandler() $this->optionHandler->filterOptions($this->optionNames); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -79,9 +73,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -100,9 +92,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsForm.class.php b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsForm.class.php index 3a54606bf59..2d5e81c29f3 100644 --- a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupOptionsForm.class.php @@ -44,9 +44,7 @@ final class FirstTimeSetupOptionsForm extends AbstractOptionListForm 'timezone', ]; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -56,9 +54,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { parent::initOptionHandler(); @@ -66,9 +62,7 @@ protected function initOptionHandler() $this->optionHandler->filterOptions($this->optionNames); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -78,9 +72,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -99,9 +91,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php index 96881585ede..dca6e64a9f4 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php @@ -52,9 +52,7 @@ class LanguageAddForm extends AbstractFormBuilderForm */ public array $locales; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -73,9 +71,7 @@ public function readParameters() $collator->asort($this->locales, \Collator::SORT_STRING); } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -164,9 +160,7 @@ static function (SingleSelectionFormField $formField) { ]); } - /** - * @inheritDoc - */ + #[\Override] public function buildForm() { parent::buildForm(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php index 1c3318722ee..82975f637cb 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php @@ -60,9 +60,7 @@ class LanguageExportForm extends AbstractForm */ public $packageNameLength = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -72,9 +70,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -91,9 +87,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -109,9 +103,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -125,9 +117,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -145,9 +135,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index 9326ea28909..bff3f1950d9 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -70,9 +70,7 @@ class LanguageImportForm extends AbstractForm */ public $packageID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -80,9 +78,7 @@ public function readParameters() $this->languages = LanguageFactory::getInstance()->getLanguages(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -98,9 +94,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -144,9 +138,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -166,9 +158,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageItemAddForm.class.php index e3d379490ae..380baaa4b3f 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageItemAddForm.class.php @@ -57,9 +57,7 @@ class LanguageItemAddForm extends AbstractFormBuilderForm */ public $objectActionName = 'createLanguageItems'; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -224,9 +222,7 @@ static function (IFormDocument $document, array $parameters) { ); } - /** - * @inheritDoc - */ + #[\Override] public function saved() { parent::saved(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php index 3cc52c05dfd..f8772505b85 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php @@ -53,9 +53,7 @@ class LanguageMultilingualismForm extends AbstractForm */ const BLACKLISTED_IN_ENTERPRISE_MODE = true; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -63,9 +61,7 @@ public function readParameters() $this->languages = LanguageFactory::getInstance()->getLanguages(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -78,9 +74,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -105,9 +99,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -123,9 +115,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -151,9 +141,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php b/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php index 55999a30506..5ad667e6509 100644 --- a/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LicenseEditForm.class.php @@ -59,9 +59,7 @@ final class LicenseEditForm extends AbstractFormBuilderForm private bool $failedValidation = false; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -76,9 +74,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -165,9 +161,7 @@ protected function createForm() } } - /** - * @inheritDoc - */ + #[\Override] protected function setFormAction() { if (!isset($this->url)) { @@ -182,9 +176,7 @@ protected function setFormAction() ); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationForm.class.php b/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationForm.class.php index 45af618abc4..7b264caff7a 100644 --- a/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationForm.class.php @@ -14,9 +14,7 @@ */ class MultifactorAuthenticationForm extends \wcf\form\MultifactorAuthenticationForm { - /** - * @inheritDoc - */ + #[\Override] public function saved() { WCF::getSession()->registerReauthentication(); diff --git a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php index 241a6de6804..735e32302c5 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php @@ -83,9 +83,7 @@ class NoticeAddForm extends AbstractForm */ public $showOrder = 0; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -106,9 +104,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.condition.notice'); @@ -135,9 +131,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -179,9 +173,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -189,9 +181,7 @@ public function readParameters() I18nHandler::getInstance()->register('notice'); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -263,9 +253,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php index 06fbead5e83..cfb7d6f9d56 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php @@ -47,9 +47,7 @@ class NoticeEditForm extends NoticeAddForm */ public $resetIsDismissed = 0; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -68,9 +66,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -112,9 +108,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -124,9 +118,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -140,9 +132,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php index 8b6707740d9..71416c29ee5 100644 --- a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php @@ -55,9 +55,7 @@ class NotificationPresetSettingsForm extends AbstractForm */ protected static $validMailNotificationTypes = ['none', 'instant', 'daily']; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -65,9 +63,7 @@ public function readParameters() $this->events = UserNotificationHandler::getInstance()->getAvailableEvents(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -80,9 +76,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -123,9 +117,7 @@ public function validate() unset($settings); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -143,9 +135,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -176,9 +166,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/acp/form/OptionForm.class.php b/wcfsetup/install/files/lib/acp/form/OptionForm.class.php index a1edfbb192e..162ce12f87d 100644 --- a/wcfsetup/install/files/lib/acp/form/OptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/OptionForm.class.php @@ -46,9 +46,7 @@ class OptionForm extends AbstractOptionListForm */ protected $languageItemPattern = 'wcf.acp.option.option\d+'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (isset($_REQUEST['id'])) { @@ -63,9 +61,7 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -85,9 +81,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -103,9 +97,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -117,9 +109,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active menu item diff --git a/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php index bdf77fbd093..3e9920dc7f4 100644 --- a/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php @@ -43,9 +43,7 @@ final class PackageEnableUpgradeOverrideForm extends AbstractFormBuilderForm private bool $isEnabled; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -56,9 +54,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -282,9 +278,7 @@ private function checkForTls(): ?array } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -316,9 +310,7 @@ public function save() $this->saved(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php index c80119760e0..64791f87792 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php @@ -62,9 +62,7 @@ class PackageStartInstallForm extends AbstractForm */ public $stylePackageImportLocation = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -75,9 +73,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -89,9 +85,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -190,9 +184,7 @@ protected function validateUploadPackage($filename = '') $this->package = PackageValidationManager::getInstance()->getPackageValidationArchive()->getPackage(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -235,9 +227,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -251,9 +241,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (!WCF::getSession()->getPermission('admin.configuration.package.canInstallPackage') && !WCF::getSession()->getPermission('admin.configuration.package.canUpdatePackage')) { diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index 4f76a2d6b57..89dd9353d0a 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -208,9 +208,7 @@ class PageAddForm extends AbstractForm */ public $invertPermissions = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -278,9 +276,7 @@ protected function readPageType() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -351,9 +347,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -610,9 +604,7 @@ protected function getBoxToPage() return $boxToPage; } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -738,9 +730,7 @@ public function save() $this->boxIDs = $this->getDefaultBoxIDs(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -817,9 +807,7 @@ protected function getDefaultBoxIDs() return $boxIDs; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php index 4ac94efb777..18c0bb73910 100644 --- a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php @@ -56,11 +56,7 @@ class PageEditForm extends PageAddForm */ public bool $supportsCustomUrl = true; - /** - * @inheritDoc - * - * @throws IllegalLinkException - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -77,17 +73,13 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function readPageType() { // not required for editing } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -108,9 +100,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -133,9 +123,7 @@ protected function validateOverrideApplicationPackageID() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateName() { if (\mb_strtolower($this->name) != \mb_strtolower($this->page->name)) { @@ -143,17 +131,13 @@ protected function validateName() } } - /** - * @inheritDoc - */ + #[\Override] protected function validatePageType() { // type is immutable } - /** - * @inheritDoc - */ + #[\Override] protected function validateParentPageID() { if ($this->page->hasFixedParent) { @@ -179,9 +163,7 @@ protected function validateParentPageID() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateCustomUrl($languageID, $customURL) { if (!$this->supportsCustomUrl) { @@ -199,9 +181,7 @@ protected function validateCustomUrl($languageID, $customURL) } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -299,9 +279,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -354,9 +332,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index cd66976f3f3..c7d02094a34 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -136,9 +136,7 @@ class PaidSubscriptionAddForm extends AbstractForm */ public $availableSubscriptions = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -183,9 +181,7 @@ protected function getAvailableSubscriptions() $this->availableSubscriptions = $subscriptionList->getObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -235,9 +231,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -294,9 +288,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -366,9 +358,7 @@ public function saveI18nValue(PaidSubscription $subscription, $columnName) } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php index 83a482ca74f..dd9dd2760fc 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php @@ -41,9 +41,7 @@ class PaidSubscriptionEditForm extends PaidSubscriptionAddForm */ public $subscription; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (isset($_REQUEST['id'])) { @@ -57,9 +55,7 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -79,6 +75,7 @@ public function readFormParameters() /** * @return void */ + #[\Override] protected function getAvailableSubscriptions() { $subscriptionList = new PaidSubscriptionList(); @@ -88,9 +85,7 @@ protected function getAvailableSubscriptions() $this->availableSubscriptions = $subscriptionList->getObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -121,9 +116,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -169,9 +162,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php index cb37cb5ad87..da92a53b3eb 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php @@ -74,9 +74,7 @@ class PaidSubscriptionUserAddForm extends AbstractForm */ public $endDateTime; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -90,9 +88,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -105,9 +101,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -149,9 +143,7 @@ protected function validateEndDate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -185,9 +177,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -211,9 +201,7 @@ protected function setDefaultEndDate() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php index e48bdf99e22..b436a87d82d 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php @@ -43,9 +43,7 @@ class PaidSubscriptionUserEditForm extends PaidSubscriptionUserAddForm */ public $endDateTime; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { AbstractForm::readParameters(); @@ -60,16 +58,12 @@ public function readParameters() $this->subscription = $this->subscriptionUser->getSubscription(); } - /** - * @inheritDoc - */ + #[\Override] protected function validateUsername() { } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -87,9 +81,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { AbstractForm::readData(); @@ -100,9 +92,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php index 89139f07913..295a2286a95 100644 --- a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php @@ -54,9 +54,7 @@ class ReactionTypeAddForm extends AbstractFormBuilderForm */ public $objectEditLinkController = ReactionTypeEditForm::class; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); diff --git a/wcfsetup/install/files/lib/acp/form/ReactionTypeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ReactionTypeEditForm.class.php index 9866d401093..22edaadf3f4 100644 --- a/wcfsetup/install/files/lib/acp/form/ReactionTypeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ReactionTypeEditForm.class.php @@ -62,6 +62,7 @@ public function assignVariables() /** * @return array */ + #[\Override] protected function getReactionTypes(): array { return \array_filter( diff --git a/wcfsetup/install/files/lib/acp/form/ReauthenticationForm.class.php b/wcfsetup/install/files/lib/acp/form/ReauthenticationForm.class.php index df1a2162b77..69befe18c51 100644 --- a/wcfsetup/install/files/lib/acp/form/ReauthenticationForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ReauthenticationForm.class.php @@ -14,6 +14,7 @@ */ class ReauthenticationForm extends \wcf\form\ReauthenticationForm { + #[\Override] public function __run() { WCF::getTPL()->assign([ diff --git a/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php b/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php index 9d09a82dda8..a0b6935c0e2 100644 --- a/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php @@ -75,9 +75,9 @@ final class RescueModeForm extends AbstractForm private const ALLOWED_ATTEMPTS_PER_1D_GLOBAL = 30; /** - * @inheritDoc * @phpstan-ignore return.unusedType */ + #[\Override] public function __run() { if (!WCFACP::inRescueMode()) { @@ -94,9 +94,7 @@ public function __run() return parent::__run(); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -146,9 +144,7 @@ public function readParameters() $this->applications = $applicationList->getObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -251,9 +247,7 @@ protected function validateApplications() } } - /** - * @inheritDoc - */ + #[\Override] public function submit() { parent::submit(); @@ -285,17 +279,13 @@ public function submit() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateSecurityToken() { // The XSRF validation is not functional in this very slimmed down template. } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -314,9 +304,7 @@ public function validate() $this->validateApplications(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -345,9 +333,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -361,9 +347,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php index ded2b151965..0c7fbf81dd5 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php @@ -126,9 +126,7 @@ class SmileyAddForm extends AbstractForm */ public $uploadedFilename2x = ''; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -150,9 +148,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -160,9 +156,7 @@ public function readData() $this->categoryNodeTree = new CategoryNodeTree('com.woltlab.wcf.bbcode.smiley', 0, true); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -170,9 +164,7 @@ public function readParameters() I18nHandler::getInstance()->register('smileyTitle'); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -215,9 +207,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -272,9 +262,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php index c853b962e7a..a5fbc8276c6 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php @@ -44,9 +44,7 @@ class SmileyEditForm extends SmileyAddForm */ public $smiley; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -60,9 +58,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -99,9 +95,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -119,9 +113,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 0b4b9ca014e..23079b4b93f 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -205,9 +205,7 @@ class StyleAddForm extends AbstractForm */ public $customAssets = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -311,9 +309,7 @@ protected function rebuildUploadFields() $handler->registerUploadField($field); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -442,9 +438,7 @@ protected function downloadGoogleFont() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -700,9 +694,7 @@ protected function parseOverrides($variableName = 'overrideScss') } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -842,9 +834,7 @@ protected function readStyleVariables() $this->variables = $statement->fetchMap('variableName', 'defaultValue'); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -928,9 +918,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php index 939066ac3bf..169ae10c234 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php @@ -47,9 +47,7 @@ class StyleEditForm extends StyleAddForm public bool $isDarkMode = false; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (isset($_REQUEST['id'])) { @@ -67,9 +65,7 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -79,9 +75,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function validateIndividualScss() { // If the style has a dark mode then `$variables` contains either the @@ -154,9 +148,7 @@ public function validateIndividualScss() } } - /** - * @inheritDoc - */ + #[\Override] protected function enforcePackageNameRestriction() { if ($this->style->isTainted) { @@ -164,9 +156,7 @@ protected function enforcePackageNameRestriction() } } - /** - * @inheritDoc - */ + #[\Override] protected function readStyleVariables() { $this->variables = $this->style->getVariables(); @@ -230,9 +220,7 @@ protected function readStyleVariables() } } - /** - * @inheritDoc - */ + #[\Override] protected function setVariables() { parent::setVariables(); @@ -244,9 +232,7 @@ protected function setVariables() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -331,9 +317,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -438,9 +422,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php index a074b09994a..2506134b7c4 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php @@ -63,9 +63,7 @@ class StyleExportForm extends AbstractForm */ public $styleID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -87,9 +85,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -103,9 +99,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -136,9 +130,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php index 5e0b2210cc7..f452cea9d09 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php @@ -42,9 +42,7 @@ class StyleGlobalValuesForm extends AbstractForm */ public $styleTestFileDir; - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -57,9 +55,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -72,9 +68,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -111,9 +105,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -167,9 +159,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php index 77e67d43e73..00aade4cf98 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php @@ -44,9 +44,7 @@ class StyleImportForm extends AbstractForm */ public $style; - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -56,9 +54,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -131,9 +127,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php index 3f2b05a2e49..ee387a7daef 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php @@ -32,9 +32,7 @@ class TemplateEditForm extends TemplateAddForm */ public $formAction = 'edit'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { AbstractFormBuilderForm::readParameters(); diff --git a/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php index 6a06cafbf33..fd218a91784 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php @@ -32,9 +32,7 @@ class TemplateGroupEditForm extends TemplateGroupAddForm */ public $formAction = 'edit'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php index 5ba22be8b67..b13506258f3 100644 --- a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php @@ -147,9 +147,7 @@ class TrophyAddForm extends AbstractAcpForm */ public $showOrder = 0; - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->conditions = TrophyConditionHandler::getInstance()->getGroupedObjectTypes(); @@ -157,9 +155,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -182,9 +178,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -237,9 +231,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -316,9 +308,7 @@ protected function validateType() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -372,9 +362,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function reset() { parent::reset(); @@ -394,9 +382,7 @@ public function reset() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/TrophyEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TrophyEditForm.class.php index 21652cd93c0..621458c8364 100644 --- a/wcfsetup/install/files/lib/acp/form/TrophyEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TrophyEditForm.class.php @@ -50,9 +50,7 @@ class TrophyEditForm extends TrophyAddForm */ public $trophy; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (!empty($_REQUEST['id'])) { @@ -67,9 +65,7 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -117,9 +113,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateType() { switch ($this->type) { @@ -145,9 +139,7 @@ protected function validateType() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractAcpForm::save(); @@ -248,9 +240,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php index 16460676542..75d45aa2d66 100644 --- a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php @@ -41,9 +41,7 @@ class UserActivityPointOptionForm extends AbstractForm */ public $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -53,9 +51,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -67,9 +63,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.activityPointEvent'); @@ -82,9 +76,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -106,9 +98,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php index 75f70bcf1a3..8def9370b46 100644 --- a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php @@ -156,9 +156,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -204,9 +202,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // validate static user options @@ -295,9 +291,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -417,9 +411,7 @@ protected function validatePassword( } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->attachmentHandler = new AttachmentHandler( @@ -454,9 +446,7 @@ protected function readOptionTree() $this->optionTree = $this->optionHandler->getOptionTree(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -488,9 +478,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // get the default language id diff --git a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php index b2d6ef9a397..75a9689474b 100755 --- a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php @@ -65,9 +65,7 @@ class UserAssignToGroupForm extends AbstractForm */ protected $objectTypeID; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -88,9 +86,7 @@ public function readParameters() $this->userIDs = \array_keys($this->users); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -100,9 +96,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -123,9 +117,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -169,9 +161,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -179,9 +169,7 @@ public function readData() $this->readGroups(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php index ba52190b7d4..4525608e7b2 100644 --- a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php @@ -58,9 +58,7 @@ class UserContentRevertChangesForm extends AbstractForm */ protected $objectTypeID; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -76,9 +74,7 @@ public function readParameters() $this->userIDs = \array_keys($this->users); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -88,9 +84,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -100,9 +94,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -120,9 +112,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index a93542ea619..86aa0689488 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -164,9 +164,7 @@ class UserEditForm extends UserAddForm */ public string $colorScheme = 'system'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (isset($_REQUEST['id'])) { @@ -186,17 +184,13 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { $this->optionHandler->setUser($this->user->getDecoratedObject()); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -271,9 +265,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (empty($_POST)) { @@ -359,9 +351,7 @@ protected function readDefaultValues() $this->colorScheme = $this->user->getUserOption('colorScheme'); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -396,9 +386,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -527,9 +515,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] protected function validateUsername($username) { try { @@ -566,9 +552,7 @@ protected function validatePassword( } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->user->userID == WCF::getUser()->userID && WCF::getUser()->hasOwnerAccess()) { diff --git a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php index 1a98f90eedf..241f2c32252 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php @@ -66,9 +66,7 @@ class UserEmailAddressExportForm extends AbstractForm */ protected $objectTypeID; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -91,9 +89,7 @@ public function readParameters() $this->users = $users; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -109,9 +105,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -165,9 +159,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php index 553d7b31bdf..52cca7c239a 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php @@ -94,9 +94,7 @@ class UserGroupAddForm extends AbstractOptionListForm */ protected $requireMultifactor = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -105,9 +103,7 @@ public function readParameters() I18nHandler::getInstance()->register('groupDescription'); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -138,9 +134,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // validate dynamic options @@ -167,9 +161,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -236,9 +228,7 @@ public function save() I18nHandler::getInstance()->reset(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -249,9 +239,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index 8e037a1cb61..1aedeb4baf7 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -62,9 +62,7 @@ class UserGroupAssignmentAddForm extends AbstractForm */ public $userGroups = []; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -79,9 +77,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->userGroups = UserGroup::getSortedGroupsByType([], [ @@ -101,9 +97,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -126,9 +120,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -172,9 +164,7 @@ public function save() ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php index d72cd9794ef..5e1a64a2e6a 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php @@ -39,9 +39,7 @@ class UserGroupAssignmentEditForm extends UserGroupAssignmentAddForm */ public $assignmentID = 0; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -57,9 +55,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -75,9 +71,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -91,9 +85,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php index 825af9d86ce..7978856c556 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php @@ -51,9 +51,7 @@ class UserGroupEditForm extends UserGroupAddForm */ public $isUnmentionableGroup = false; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -78,18 +76,14 @@ public function readParameters() $this->isUnmentionableGroup = $this->group->isUnmentionableGroup(); } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { // does nothing, we call OptionHandler::init() after we set the // user group } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -99,9 +93,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (empty($_POST)) { @@ -124,9 +116,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -164,9 +154,7 @@ public function assignVariables() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php index 0493a7e10fb..1a92389aaa2 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php @@ -78,9 +78,7 @@ class UserGroupOptionForm extends AbstractForm */ public $userGroupOptionID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -138,9 +136,7 @@ public function readParameters() $this->optionType = new $className(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -150,9 +146,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -216,9 +210,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -251,9 +243,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -271,9 +261,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php index c817d8accf5..3fb2a88077e 100644 --- a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php @@ -63,9 +63,7 @@ class UserMergeForm extends AbstractForm */ protected $objectTypeID; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -87,9 +85,7 @@ public function readParameters() $this->userIDs = \array_keys($this->users); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -99,9 +95,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -111,9 +105,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { foreach ($this->userIDs as $userID) { @@ -317,9 +309,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php index 14c07f77e9b..2328da972a9 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php @@ -38,9 +38,7 @@ class UserOptionSetDefaultsForm extends AbstractForm */ public $applyChangesToExistingUsers = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -49,9 +47,7 @@ public function readParameters() $this->optionHandler->init(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -63,9 +59,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -73,9 +67,7 @@ public function validate() $this->optionHandler->validate(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -125,9 +117,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -137,9 +127,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index a48913eb9b9..9747321de14 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -91,9 +91,7 @@ class UserSearchForm extends UserOptionListForm */ public $groupID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -131,9 +129,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -162,9 +158,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.condition.userSearch'); @@ -188,9 +182,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -205,9 +197,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -238,9 +228,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { AbstractForm::validate(); diff --git a/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php index ee6d0f6738c..c6ace6b0c61 100644 --- a/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php @@ -81,9 +81,7 @@ class UserTrophyAddForm extends AbstractAcpForm */ public $trophy; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -98,9 +96,7 @@ public function readParameters() $this->registerI18nValue($descriptionI18n); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -152,9 +148,7 @@ protected function validateUser() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -180,9 +174,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -205,9 +197,7 @@ public function save() $this->reset(); } - /** - * @inheritDoc - */ + #[\Override] public function reset() { parent::reset(); @@ -218,9 +208,7 @@ public function reset() $this->useCustomDescription = $this->trophyUseHtml = 0; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/form/UserTrophyEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserTrophyEditForm.class.php index 430a7fa8088..e1353ae9264 100644 --- a/wcfsetup/install/files/lib/acp/form/UserTrophyEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserTrophyEditForm.class.php @@ -44,9 +44,7 @@ class UserTrophyEditForm extends UserTrophyAddForm */ public $userTrophy; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { if (!empty($_REQUEST['id'])) { @@ -65,9 +63,7 @@ public function readParameters() parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { // the user can't change these values @@ -86,9 +82,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractAcpForm::save(); @@ -110,9 +104,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php index 55700b116a4..405ccff0e1a 100644 --- a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php @@ -61,9 +61,7 @@ abstract class AbstractCategoryListPage extends AbstractPage */ public $templateName = 'categoryList'; - /** - * @inheritDoc - */ + #[\Override] public function __run() { $classNameParts = \explode('\\', static::class); @@ -80,9 +78,7 @@ public function __run() return parent::__run(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -121,9 +117,7 @@ protected function readCategories() $this->categoryNodeTree = new CategoryNodeTree($this->objectType->objectType, 0, true); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->objectType = CategoryHandler::getInstance()->getObjectTypeByName($this->objectTypeName); diff --git a/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php b/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php index cb84071f2d1..47d3e06f85d 100644 --- a/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php @@ -44,9 +44,7 @@ final class ArticleListPage extends AbstractGridViewPage */ public $showArticleAddDialog = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -56,9 +54,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/AttachmentPage.class.php b/wcfsetup/install/files/lib/acp/page/AttachmentPage.class.php index 00181d02d5a..e17286108d4 100644 --- a/wcfsetup/install/files/lib/acp/page/AttachmentPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AttachmentPage.class.php @@ -22,9 +22,7 @@ class AttachmentPage extends \wcf\page\AttachmentPage */ public $neededPermissions = ['admin.attachment.canManageAttachment']; - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { AbstractPage::checkPermissions(); diff --git a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php index ba9611735da..24e97be2a54 100755 --- a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php @@ -56,17 +56,13 @@ class CacheListPage extends AbstractPage */ public $cacheData = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -162,9 +158,7 @@ protected function readCacheFiles($cacheType, $cacheDir, ?Regex $ignore = null, $this->caches[$cacheType][$cacheDir] = $data; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php index 86031511e32..d56638308bc 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsNotificationTestPage.class.php @@ -34,9 +34,7 @@ class DevtoolsNotificationTestPage extends AbstractPage */ public $neededPermissions = ['admin.configuration.package.canInstallPackage']; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -78,9 +76,7 @@ public function readData() $this->events = $groupedEvents; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php index 20800513699..2007da0549a 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php @@ -126,10 +126,7 @@ class DevtoolsProjectPipEntryListPage extends AbstractPage */ public $startIndex = 0; - /** - * @inheritDoc - * @throws IllegalLinkException - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -203,9 +200,7 @@ public function readParameters() ], $this->linkParameters); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -238,9 +233,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php index d0ee6346fb2..587be6fe0c5 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php @@ -44,9 +44,7 @@ class DevtoolsProjectPipListPage extends AbstractPage */ public $projectID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -60,9 +58,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php index a5e38466432..9b8470ae34d 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php @@ -44,9 +44,7 @@ class DevtoolsProjectSyncPage extends AbstractPage */ public $object; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -60,9 +58,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/FirstTimeSetupCompletedPage.class.php b/wcfsetup/install/files/lib/acp/page/FirstTimeSetupCompletedPage.class.php index 83f1ed0e649..01167f7c003 100644 --- a/wcfsetup/install/files/lib/acp/page/FirstTimeSetupCompletedPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/FirstTimeSetupCompletedPage.class.php @@ -21,9 +21,7 @@ final class FirstTimeSetupCompletedPage extends AbstractPage */ public $neededPermissions = ['admin.general.canUseAcp']; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); diff --git a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php index 5f74b3765d9..704e209b151 100755 --- a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php @@ -25,17 +25,13 @@ class IndexPage extends AbstractPage */ public $neededPermissions = ['admin.general.canUseAcp']; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -46,9 +42,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // check package installation queue diff --git a/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php b/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php index 8e26e6505d2..6b2b60bb7bb 100644 --- a/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php @@ -90,9 +90,7 @@ class MediaListPage extends SortablePage 'lastDownloadTime', ]; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -106,9 +104,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -135,9 +131,7 @@ protected function initObjectList() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -146,9 +140,7 @@ public function readData() $this->categoryList->setMaxDepth(0); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -183,9 +175,7 @@ public function readParameters() $this->canonicalURL = LinkHandler::getInstance()->getLink('MediaList', $parameters); } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { if ($this->sqlOrderBy && $this->sortField == 'mediaID') { diff --git a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php index 616cde67c5e..c98944c6584 100644 --- a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php @@ -46,9 +46,7 @@ class MenuItemListPage extends AbstractPage */ public $menu; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -62,9 +60,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -72,9 +68,7 @@ public function readData() $this->menuItems = new MenuItemNodeTree($this->menuID, null, false); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php b/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php index 56a86e767e7..1f15e26738a 100644 --- a/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PHPInfoPage.class.php @@ -32,9 +32,7 @@ class PHPInfoPage extends AbstractPage */ const BLACKLISTED_IN_ENTERPRISE_MODE = true; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php index 0a5240c3c7a..cd6e91f9b68 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php @@ -54,9 +54,7 @@ class PackageInstallationConfirmPage extends AbstractPage */ public $installingImportedStyle = false; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -81,9 +79,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -94,9 +90,7 @@ public function readData() $this->validationPassed = PackageValidationManager::getInstance()->validate($this->queue->archive, true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/PackageUpdatePage.class.php b/wcfsetup/install/files/lib/acp/page/PackageUpdatePage.class.php index c196d58e943..858f4ccbcfd 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageUpdatePage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageUpdatePage.class.php @@ -32,9 +32,7 @@ class PackageUpdatePage extends AbstractPage */ public $neededPermissions = ['admin.configuration.package.canUpdatePackage']; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -49,9 +47,7 @@ public function readData() unset($update); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php b/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php index fa4abb88b9f..518439fd448 100644 --- a/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php @@ -48,9 +48,7 @@ class PageBoxOrderPage extends AbstractPage */ public $pageID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -65,9 +63,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -75,9 +71,7 @@ public function readData() $this->boxes = BoxHandler::loadBoxes($this->pageID, false); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php index c694a9cbb5e..26b3ba6d5cf 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php @@ -43,9 +43,7 @@ class PaidSubscriptionTransactionLogPage extends AbstractPage */ public $log; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -59,9 +57,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php index 8ac7cb77cca..c064ffec635 100644 --- a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php @@ -32,9 +32,7 @@ final class RebuildDataPage extends AbstractPage */ private iterable $workers; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -46,9 +44,7 @@ public function readData() $this->workers = $event->getWorkers(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/SitemapListPage.class.php b/wcfsetup/install/files/lib/acp/page/SitemapListPage.class.php index 07248de221e..c25e591050c 100755 --- a/wcfsetup/install/files/lib/acp/page/SitemapListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SitemapListPage.class.php @@ -39,9 +39,7 @@ class SitemapListPage extends AbstractPage */ private $sitemapData = []; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -72,9 +70,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/StatPage.class.php b/wcfsetup/install/files/lib/acp/page/StatPage.class.php index d491b673a9a..bf704e9c9a2 100644 --- a/wcfsetup/install/files/lib/acp/page/StatPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/StatPage.class.php @@ -45,9 +45,7 @@ class StatPage extends AbstractPage */ public $availableObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -70,9 +68,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 149716592d1..f3a36a06a4d 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -200,9 +200,7 @@ class SystemCheckPage extends AbstractPage */ const BLACKLISTED_IN_ENTERPRISE_MODE = true; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -237,9 +235,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php index 1b2cd66edc9..3afcd096fd9 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php @@ -62,9 +62,7 @@ class TemplateDiffPage extends AbstractPage */ public $templateGroupHierarchy = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -87,9 +85,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -140,9 +136,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php index 7388d670889..d44a1bfdf00 100755 --- a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php @@ -137,9 +137,7 @@ class UserListPage extends SortablePage 'likesReceived', ]; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -161,9 +159,7 @@ public function readParameters() $this->readUserOptions(); } - /** - * @inheritDoc - */ + #[\Override] public function validateSortField() { // add options to valid sort fields @@ -177,9 +173,7 @@ public function validateSortField() parent::validateSortField(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -209,9 +203,7 @@ public function readData() ); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -227,9 +219,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { $this->activeMenuItem = 'wcf.acp.menu.link.user.' . ($this->searchID ? 'search' : 'list'); @@ -237,9 +227,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function countItems() { // call countItems event @@ -438,17 +426,13 @@ protected function readColumnsHeads() } } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { // does nothing diff --git a/wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php index b60940d9ebf..14916016222 100644 --- a/wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserOptionCategoryListPage.class.php @@ -41,9 +41,7 @@ class UserOptionCategoryListPage extends SortablePage */ public $validSortFields = ['categoryID', 'categoryName', 'showOrder', 'userOptions']; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); diff --git a/wcfsetup/install/files/lib/acp/page/UserProfileMenuPage.class.php b/wcfsetup/install/files/lib/acp/page/UserProfileMenuPage.class.php index 0364fa78961..6e1070fe397 100644 --- a/wcfsetup/install/files/lib/acp/page/UserProfileMenuPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserProfileMenuPage.class.php @@ -31,9 +31,7 @@ class UserProfileMenuPage extends AbstractPage */ public $userProfileMenuItemList; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -43,9 +41,7 @@ public function readData() $this->userProfileMenuItemList->readObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php b/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php index 376dc3f394f..5c66d7eaf9e 100644 --- a/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php @@ -97,9 +97,7 @@ class VersionTrackerListPage extends AbstractPage */ public $property = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -164,9 +162,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -260,9 +256,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php b/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php index 951132bbe85..c6a085ef2d9 100644 --- a/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php @@ -36,9 +36,7 @@ class AJAXFileDeleteAction extends AbstractSecureAction */ public $uploadedFiles = []; - /** - * @inheritDoc - */ + #[\Override] public function __run() { try { @@ -52,9 +50,7 @@ public function __run() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -72,9 +68,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php b/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php index e78bd26b51a..99690dbee9e 100644 --- a/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php @@ -33,9 +33,7 @@ class AJAXFileUploadAction extends AbstractSecureAction */ public $uploadedFiles = []; - /** - * @inheritDoc - */ + #[\Override] public function __run() { try { @@ -49,9 +47,7 @@ public function __run() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -73,9 +69,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index 0dfd78dae29..b00cc503099 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -54,9 +54,7 @@ class AJAXInvokeAction extends AbstractSecureAction */ protected $response; - /** - * @inheritDoc - */ + #[\Override] public function __run() { try { @@ -70,9 +68,7 @@ public function __run() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -97,9 +93,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php index b4cd65b139e..1cac6e0d699 100644 --- a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php @@ -45,9 +45,7 @@ class AJAXProxyAction extends AJAXInvokeAction */ protected $parameters = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -63,9 +61,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function invoke() { try { @@ -92,9 +88,7 @@ protected function invoke() $this->response = $this->objectAction->executeAction(); } - /** - * @inheritDoc - */ + #[\Override] protected function sendResponse() { // add benchmark and debug data diff --git a/wcfsetup/install/files/lib/action/AJAXUploadAction.class.php b/wcfsetup/install/files/lib/action/AJAXUploadAction.class.php index e0e2d18c61a..af840976156 100644 --- a/wcfsetup/install/files/lib/action/AJAXUploadAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXUploadAction.class.php @@ -14,9 +14,7 @@ */ class AJAXUploadAction extends AJAXProxyAction { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -27,6 +25,7 @@ public function readParameters() /** * @return mixed */ + #[\Override] protected function sendResponse() { if (!isset($_POST['isFallback'])) { diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index e43f1fadf76..961c0e2699a 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -36,14 +36,9 @@ abstract class AbstractAction implements IAction */ public $neededPermissions = []; - /** - * @inheritDoc - */ final public function __construct() {} - /** - * @inheritDoc - */ + #[\Override] public function __run() { $result = $this->readParameters(); @@ -57,18 +52,14 @@ public function __run() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { // call readParameters event EventHandler::getInstance()->fireAction($this, 'readParameters'); } - /** - * @inheritDoc - */ + #[\Override] public function checkModules() { // call checkModules event @@ -82,9 +73,7 @@ public function checkModules() } } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { // call checkPermissions event @@ -96,9 +85,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { // check if active user is logged in diff --git a/wcfsetup/install/files/lib/action/AbstractDialogAction.class.php b/wcfsetup/install/files/lib/action/AbstractDialogAction.class.php index 0cc02bd85bd..aa5febccd6c 100644 --- a/wcfsetup/install/files/lib/action/AbstractDialogAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractDialogAction.class.php @@ -31,9 +31,7 @@ abstract class AbstractDialogAction extends AbstractSecureAction */ public $data = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -52,9 +50,7 @@ public function readParameters() $this->validateStep(); } - /** - * @inheritDoc - */ + #[\Override] final public function execute(): ResponseInterface { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php b/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php index 35651a6e108..e1da2a2b6d1 100644 --- a/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php +++ b/wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php @@ -35,9 +35,7 @@ abstract class AbstractOauth2Action extends AbstractAction private ClientInterface $httpClient; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -244,9 +242,7 @@ protected function initiate(): ResponseInterface return new RedirectResponse($url); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/AbstractSecureAction.class.php b/wcfsetup/install/files/lib/action/AbstractSecureAction.class.php index 938339c9855..d8b927281a9 100644 --- a/wcfsetup/install/files/lib/action/AbstractSecureAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractSecureAction.class.php @@ -15,9 +15,7 @@ */ abstract class AbstractSecureAction extends AbstractAction { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php b/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php index 30cf9f8cc11..d7c674cdb68 100644 --- a/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php +++ b/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php @@ -21,9 +21,7 @@ final class BackgroundQueuePerformAction extends AbstractAction */ public static int $jobsPerRun = 10; - /** - * @inheritDoc - */ + #[\Override] public function execute(): JsonResponse { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php b/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php index 1a7935b0992..fe8d6a51ded 100644 --- a/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php +++ b/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php @@ -18,9 +18,7 @@ final class CoreRewriteTestAction extends AbstractAction { const AVAILABLE_DURING_OFFLINE_MODE = true; - /** - * @inheritDoc - */ + #[\Override] public function execute(): ResponseInterface { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/CronjobPerformAction.class.php b/wcfsetup/install/files/lib/action/CronjobPerformAction.class.php index 058df950ded..37a5bbdce9a 100644 --- a/wcfsetup/install/files/lib/action/CronjobPerformAction.class.php +++ b/wcfsetup/install/files/lib/action/CronjobPerformAction.class.php @@ -18,6 +18,7 @@ */ final class CronjobPerformAction implements RequestHandlerInterface { + #[\Override] public function handle(ServerRequestInterface $request): EmptyResponse { CronjobScheduler::getInstance()->executeCronjobs(); diff --git a/wcfsetup/install/files/lib/action/EmailValidationAction.class.php b/wcfsetup/install/files/lib/action/EmailValidationAction.class.php index dbeddcc1329..16f75f5cc9a 100644 --- a/wcfsetup/install/files/lib/action/EmailValidationAction.class.php +++ b/wcfsetup/install/files/lib/action/EmailValidationAction.class.php @@ -21,9 +21,7 @@ */ final class EmailValidationAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if ($request->getMethod() === 'GET') { diff --git a/wcfsetup/install/files/lib/action/FileDownloadAction.class.php b/wcfsetup/install/files/lib/action/FileDownloadAction.class.php index a7100b1a33b..7d422a09531 100644 --- a/wcfsetup/install/files/lib/action/FileDownloadAction.class.php +++ b/wcfsetup/install/files/lib/action/FileDownloadAction.class.php @@ -30,6 +30,7 @@ */ final class FileDownloadAction implements RequestHandlerInterface { + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $parameters = Helper::mapQueryParameters( diff --git a/wcfsetup/install/files/lib/action/GuestTokenDialogAction.class.php b/wcfsetup/install/files/lib/action/GuestTokenDialogAction.class.php index 872089a7953..3b5b0799e11 100644 --- a/wcfsetup/install/files/lib/action/GuestTokenDialogAction.class.php +++ b/wcfsetup/install/files/lib/action/GuestTokenDialogAction.class.php @@ -23,9 +23,7 @@ */ final class GuestTokenDialogAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php index 8f86868f537..e9cd11818bc 100644 --- a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php @@ -45,9 +45,7 @@ final class ImageProxyAction extends AbstractAction */ const MAX_SIZE = (10 * (1 << 20)); - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -75,9 +73,7 @@ private function getHttpClient(): ClientInterface ]); } - /** - * @inheritDoc - */ + #[\Override] public function execute(): RedirectResponse { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/LogoutAction.class.php b/wcfsetup/install/files/lib/action/LogoutAction.class.php index d953fd54ed8..166e151f782 100644 --- a/wcfsetup/install/files/lib/action/LogoutAction.class.php +++ b/wcfsetup/install/files/lib/action/LogoutAction.class.php @@ -17,9 +17,7 @@ class LogoutAction extends \wcf\acp\action\LogoutAction { const AVAILABLE_DURING_OFFLINE_MODE = true; - /** - * @inheritDoc - */ + #[\Override] public function execute() { AbstractSecureAction::execute(); diff --git a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php index 648fee18249..3eba1b59fd8 100644 --- a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php @@ -40,9 +40,7 @@ final class NotificationConfirmAction extends AbstractAction */ public $notificationID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -61,9 +59,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function execute(): RedirectResponse { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php b/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php index 438ef55bb95..d7756dde2aa 100644 --- a/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php @@ -35,9 +35,7 @@ final class NotificationDisableAction extends AbstractAction */ public $token = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters(): RedirectResponse { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php index 0e5b470d551..d4af2aa4dd8 100644 --- a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php +++ b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php @@ -20,9 +20,7 @@ */ final class PaypalCallbackAction extends AbstractAction { - /** - * @inheritDoc - */ + #[\Override] public function execute(): ResponseInterface { parent::execute(); diff --git a/wcfsetup/install/files/lib/action/UserFollowAction.class.php b/wcfsetup/install/files/lib/action/UserFollowAction.class.php index 085aa077dc5..fc28a57fd7d 100644 --- a/wcfsetup/install/files/lib/action/UserFollowAction.class.php +++ b/wcfsetup/install/files/lib/action/UserFollowAction.class.php @@ -25,9 +25,7 @@ */ final class UserFollowAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $parameters = Helper::mapQueryParameters( diff --git a/wcfsetup/install/files/lib/action/UserIgnoreAction.class.php b/wcfsetup/install/files/lib/action/UserIgnoreAction.class.php index c3b8a3fe56b..1fe7ddc3031 100644 --- a/wcfsetup/install/files/lib/action/UserIgnoreAction.class.php +++ b/wcfsetup/install/files/lib/action/UserIgnoreAction.class.php @@ -31,9 +31,7 @@ */ final class UserIgnoreAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $parameters = Helper::mapQueryParameters( diff --git a/wcfsetup/install/files/lib/action/UserPopoverAction.class.php b/wcfsetup/install/files/lib/action/UserPopoverAction.class.php index ca4b8f03d6e..6afd17aacbd 100644 --- a/wcfsetup/install/files/lib/action/UserPopoverAction.class.php +++ b/wcfsetup/install/files/lib/action/UserPopoverAction.class.php @@ -25,6 +25,7 @@ */ final class UserPopoverAction implements RequestHandlerInterface { + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/action/UsernameValidationAction.class.php b/wcfsetup/install/files/lib/action/UsernameValidationAction.class.php index 13d70cc50a0..23918f80609 100644 --- a/wcfsetup/install/files/lib/action/UsernameValidationAction.class.php +++ b/wcfsetup/install/files/lib/action/UsernameValidationAction.class.php @@ -21,9 +21,7 @@ */ final class UsernameValidationAction implements RequestHandlerInterface { - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if ($request->getMethod() === 'GET') { diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index ab232707553..8afe9155338 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -169,9 +169,7 @@ protected function __init($baseClass, $indexName) // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function validateAction() { // validate if user is logged in @@ -204,9 +202,7 @@ public function validateAction() EventHandler::getInstance()->fireAction($this, 'validateAction'); } - /** - * @inheritDoc - */ + #[\Override] public function executeAction() { // execute action @@ -239,17 +235,13 @@ protected function resetCache() } } - /** - * @inheritDoc - */ + #[\Override] public function getActionName() { return $this->action; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectIDs() { return $this->objectIDs; @@ -272,17 +264,13 @@ public function setObjects(array $objects) } } - /** - * @inheritDoc - */ + #[\Override] public function getParameters() { return $this->parameters; } - /** - * @inheritDoc - */ + #[\Override] public function getReturnValues() { return [ @@ -307,9 +295,7 @@ public function validateCreate() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { // validate permissions @@ -363,9 +349,7 @@ public function create() return \call_user_func([$this->className, 'create'], $this->parameters['data']); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/data/DatabaseObject.class.php b/wcfsetup/install/files/lib/data/DatabaseObject.class.php index 587b25f39fd..a17e0af6536 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObject.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObject.class.php @@ -93,9 +93,7 @@ protected function handleData($data) $this->data = $data; } - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { return $this->data[$name] ?? null; @@ -106,30 +104,25 @@ public function __get(string $name) * * @return int */ + #[\Override] public function getObjectID() { return $this->data[static::getDatabaseTableIndexName()]; } - /** - * @inheritDoc - */ + #[\Override] public function __isset(string $name) { return isset($this->data[$name]); } - /** - * @inheritDoc - */ + #[\Override] public function getData() { return $this->data; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableName() { $className = static::class; @@ -155,9 +148,7 @@ public static function getDatabaseTableName() return $databaseTableNames[$className]; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { if (static::$databaseTableName !== '') { @@ -182,17 +173,13 @@ public static function getDatabaseTableAlias() return $databaseTableAliases[$className]; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableIndexIsIdentity() { return static::$databaseTableIndexIsIdentity; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableIndexName() { if (static::$databaseTableIndexName !== '') { diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php index 97d179cde9b..e8ea98e7ea6 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php @@ -44,33 +44,25 @@ public function __construct(DatabaseObject $object) $this->object = $object; } - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { return $this->object->__get($name); } - /** - * @inheritDoc - */ + #[\Override] public function __isset(string $name) { return $this->object->__isset($name); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectID() { return $this->object->getObjectID(); } - /** - * @inheritDoc - */ + #[\Override] public function getData() { return $this->object->getData(); @@ -93,33 +85,25 @@ public function __call($name, $arguments) return \call_user_func_array([$this->object, $name], $arguments); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { return \call_user_func([static::$baseClass, 'getDatabaseTableAlias']); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableName() { return \call_user_func([static::$baseClass, 'getDatabaseTableName']); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableIndexIsIdentity() { return \call_user_func([static::$baseClass, 'getDatabaseTableIndexIsIdentity']); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableIndexName() { return \call_user_func([static::$baseClass, 'getDatabaseTableIndexName']); diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php index 768eb481887..f9911c6b7a3 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php @@ -19,17 +19,13 @@ */ abstract class DatabaseObjectEditor extends DatabaseObjectDecorator implements IEditableObject { - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { return new static::$baseClass(static::fastCreate($parameters)); } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { if (empty($parameters)) { @@ -54,9 +50,7 @@ public function update(array $parameters = []) $statement->execute($statementParameters); } - /** - * @inheritDoc - */ + #[\Override] public function updateCounters(array $counters = []) { if (empty($counters)) { @@ -81,17 +75,13 @@ public function updateCounters(array $counters = []) $statement->execute($statementParameters); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { static::deleteAll([$this->getObjectID()]); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $affectedCount = 0; diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php index 79ca3c9a302..27b57421d51 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php @@ -333,17 +333,13 @@ public function getDatabaseTableAlias() return \call_user_func([$this->className, 'getDatabaseTableAlias']); } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->objects); } - /** - * @inheritDoc - */ + #[\Override] #[\ReturnTypeWillChange] public function current() { @@ -358,39 +354,32 @@ public function current() * * @see \Iterator::key() */ + #[\Override] #[\ReturnTypeWillChange] public function key() { return $this->indexToObject[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->indexToObject[$this->index]); } - /** - * @inheritDoc - */ + #[\Override] public function seek($offset): void { $this->index = $offset; @@ -400,9 +389,7 @@ public function seek($offset): void } } - /** - * @inheritDoc - */ + #[\Override] public function seekTo(int $objectID) { $this->index = \array_search($objectID, $this->indexToObject); @@ -412,9 +399,7 @@ public function seekTo(int $objectID) } } - /** - * @inheritDoc - */ + #[\Override] public function search(int $objectID) { try { diff --git a/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php index 6ade701f7fc..ccfac2d03d6 100644 --- a/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php @@ -31,7 +31,6 @@ abstract class I18nDatabaseObjectList extends DatabaseObjectList public $i18nFields = []; /** - * @inheritDoc * @param ?int $languageID id of the language that should be used * @throws \DomainException */ diff --git a/wcfsetup/install/files/lib/data/IMessage.class.php b/wcfsetup/install/files/lib/data/IMessage.class.php index fca6ced16f4..67d86d3af4d 100644 --- a/wcfsetup/install/files/lib/data/IMessage.class.php +++ b/wcfsetup/install/files/lib/data/IMessage.class.php @@ -44,5 +44,6 @@ public function isVisible(); * * @see \wcf\data\IMessage::getFormattedMessage() */ + #[\Override] public function __toString(); } diff --git a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php index d1190d12a76..78d0230fb4e 100644 --- a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php @@ -51,9 +51,7 @@ class ACPMenuItem extends DatabaseObject implements ITreeMenuItem */ protected $controller; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { // external link @@ -111,6 +109,7 @@ protected function parseController() /** * Returns the menu item name. */ + #[\Override] public function __toString(): string { return WCF::getLanguage()->get($this->menuItem); diff --git a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php index 10d83127573..478d3f54c65 100644 --- a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php @@ -24,9 +24,7 @@ class ACPMenuItemEditor extends DatabaseObjectEditor implements IEditableCachedO */ protected static $baseClass = ACPMenuItem::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { ACPMenuCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderAction.class.php b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderAction.class.php index f900356fd3d..6ca35d46669 100644 --- a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderAction.class.php +++ b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderAction.class.php @@ -22,17 +22,13 @@ class ACPSearchProviderAction extends AbstractDatabaseObjectAction implements IS */ protected $requireACP = ['getSearchResultList']; - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { $this->readString('searchString', false, 'data'); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $data = []; diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php index 0999773fd3e..a6a9c6f50f6 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php @@ -25,9 +25,7 @@ class ACPSessionEditor extends DatabaseObjectEditor */ protected static $baseClass = ACPSession::class; - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { if (isset($parameters['userID']) && !$parameters['userID']) { @@ -37,9 +35,7 @@ public static function create(array $parameters = []) return parent::create($parameters); } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { if (isset($parameters['userID']) && !$parameters['userID']) { diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php index 5aed9f21380..efc83972e5c 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php @@ -29,9 +29,6 @@ class ACPSessionLog extends DatabaseObject */ protected static $databaseTableIndexName = 'sessionLogID'; - /** - * @inheritDoc - */ public function __construct($id, ?array $row = null, ?DatabaseObject $object = null) { if ($id !== null) { diff --git a/wcfsetup/install/files/lib/data/ad/Ad.class.php b/wcfsetup/install/files/lib/data/ad/Ad.class.php index bde22df25e1..ac9ce391d2e 100644 --- a/wcfsetup/install/files/lib/data/ad/Ad.class.php +++ b/wcfsetup/install/files/lib/data/ad/Ad.class.php @@ -54,9 +54,7 @@ public function getLocation() return $location; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->adName; diff --git a/wcfsetup/install/files/lib/data/ad/AdAction.class.php b/wcfsetup/install/files/lib/data/ad/AdAction.class.php index d531d627b28..2a06a6d3be6 100644 --- a/wcfsetup/install/files/lib/data/ad/AdAction.class.php +++ b/wcfsetup/install/files/lib/data/ad/AdAction.class.php @@ -34,10 +34,7 @@ class AdAction extends AbstractDatabaseObjectAction implements IToggleAction */ protected $requireACP = ['create', 'delete', 'toggle', 'update', 'updatePosition']; - /** - * @inheritDoc - * @return Ad - */ + #[\Override] public function create() { $showOrder = 0; @@ -54,9 +51,7 @@ public function create() return new Ad($ad->adID); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { ConditionHandler::getInstance()->deleteConditions('com.woltlab.wcf.condition.ad', $this->objectIDs); @@ -67,6 +62,7 @@ public function delete() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -75,6 +71,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableAd` or `DisableAd` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $adEditor) { diff --git a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php index 8c07c5d4ee7..5e600a58fb6 100644 --- a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php +++ b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php @@ -69,9 +69,7 @@ public function setShowOrder($showOrder = 0) ]); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { AdCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/application/Application.class.php b/wcfsetup/install/files/lib/data/application/Application.class.php index 24a498564ac..e54b2f5ee12 100644 --- a/wcfsetup/install/files/lib/data/application/Application.class.php +++ b/wcfsetup/install/files/lib/data/application/Application.class.php @@ -55,9 +55,7 @@ class Application extends DatabaseObject */ protected static $directories; - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { if (isset($data['domainPath'])) { @@ -69,9 +67,7 @@ protected function handleData($data) parent::handleData($data); } - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { if (ENABLE_ENTERPRISE_MODE && \defined('ENTERPRISE_MODE_DOMAIN_OVERRIDE') && \PHP_SAPI !== 'cli') { @@ -123,9 +119,6 @@ public function getPageURL() return $this->pageURL; } - /** - * @inheritDoc - */ public function __wakeup() { if (ENABLE_ENTERPRISE_MODE && \defined('ENTERPRISE_MODE_DOMAIN_OVERRIDE') && ENTERPRISE_MODE_DOMAIN_OVERRIDE === $_SERVER['HTTP_HOST']) { diff --git a/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php b/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php index 8f59cf61dc2..c21d48f58a3 100644 --- a/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php +++ b/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php @@ -24,9 +24,7 @@ class ApplicationEditor extends DatabaseObjectEditor implements IEditableCachedO */ protected static $baseClass = Application::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { (new ApplicationCache())->rebuild(); diff --git a/wcfsetup/install/files/lib/data/article/Article.class.php b/wcfsetup/install/files/lib/data/article/Article.class.php index e1ae19dd722..d062ed8a638 100644 --- a/wcfsetup/install/files/lib/data/article/Article.class.php +++ b/wcfsetup/install/files/lib/data/article/Article.class.php @@ -191,9 +191,7 @@ public function canPublish() return false; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { if ($this->getArticleContent() !== null) { @@ -203,9 +201,7 @@ public function getLink(): string return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { if ($this->getArticleContent() !== null) { @@ -407,27 +403,27 @@ public static function getAllDiscussionProviders() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTime() { return $this->time; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getUserID() { return $this->userID; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getUsername() { return $this->username; diff --git a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php index a1d9a8e59da..adecc8634ab 100644 --- a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php +++ b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php @@ -89,9 +89,7 @@ class ArticleAction extends AbstractDatabaseObjectAction */ protected $allowGuestAccess = ['markAllAsRead']; - /** - * @inheritDoc - */ + #[\Override] public function create() { if (!empty($this->parameters['attachmentHandler'])) { @@ -183,9 +181,7 @@ public function create() return $article; } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (!empty($this->parameters['attachmentHandler'])) { @@ -378,6 +374,7 @@ public function update() * @throws PermissionDeniedException * @throws UserInputException */ + #[\Override] public function validateDelete() { if (empty($this->objects)) { @@ -399,9 +396,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/data/article/ArticleVersionTracker.class.php b/wcfsetup/install/files/lib/data/article/ArticleVersionTracker.class.php index 33af55af36b..3c734f095db 100644 --- a/wcfsetup/install/files/lib/data/article/ArticleVersionTracker.class.php +++ b/wcfsetup/install/files/lib/data/article/ArticleVersionTracker.class.php @@ -31,9 +31,7 @@ class ArticleVersionTracker extends DatabaseObjectDecorator implements IVersionT */ protected $content = []; - /** - * @inheritDoc - */ + #[\Override] public function getObjectID() { return $this->getDecoratedObject()->articleID; @@ -71,49 +69,37 @@ public function getContent() return $this->content; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUsername() { return $this->getDecoratedObject()->username; } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return $this->getDecoratedObject()->userID; } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return $this->getDecoratedObject()->time; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getEditLink() { return LinkHandler::getInstance()->getLink( diff --git a/wcfsetup/install/files/lib/data/article/FeedArticle.class.php b/wcfsetup/install/files/lib/data/article/FeedArticle.class.php index bdccc0f407f..802d99eb1b3 100644 --- a/wcfsetup/install/files/lib/data/article/FeedArticle.class.php +++ b/wcfsetup/install/files/lib/data/article/FeedArticle.class.php @@ -25,65 +25,49 @@ class FeedArticle extends ViewableArticle implements IFeedEntryWithEnclosure */ protected $enclosure; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { return $this->getDecoratedObject()->getFormattedContent(); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->getDecoratedObject()->getTeaser(); } - /** - * @inheritDoc - */ + #[\Override] public function getExcerpt(int $maxLength = 255) { return StringUtil::truncateHTML($this->getDecoratedObject()->getFormattedTeaser(), $maxLength); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getMessage(); } - /** - * @inheritDoc - */ + #[\Override] public function getComments() { return $this->getArticleContent()->comments; } - /** - * @inheritDoc - */ + #[\Override] public function getCategories() { $categories = []; @@ -98,17 +82,13 @@ public function getCategories() return $categories; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { return $this->canRead(); } - /** - * @inheritDoc - */ + #[\Override] public function getEnclosure() { if ($this->enclosure === null) { diff --git a/wcfsetup/install/files/lib/data/article/LikeableArticle.class.php b/wcfsetup/install/files/lib/data/article/LikeableArticle.class.php index 09a13a44529..9814d9730a6 100644 --- a/wcfsetup/install/files/lib/data/article/LikeableArticle.class.php +++ b/wcfsetup/install/files/lib/data/article/LikeableArticle.class.php @@ -27,41 +27,31 @@ class LikeableArticle extends AbstractLikeObject implements IReactionObject */ protected static $baseClass = Article::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return $this->userID; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectID() { return $this->articleID; } - /** - * @inheritDoc - */ + #[\Override] public function updateLikeCounter(int $cumulativeLikes) { // update cumulative likes @@ -69,17 +59,13 @@ public function updateLikeCounter(int $cumulativeLikes) $editor->update(['cumulativeLikes' => $cumulativeLikes]); } - /** - * @inheritDoc - */ + #[\Override] public function getLanguageID() { return null; } - /** - * @inheritDoc - */ + #[\Override] public function sendNotification(Like $like) { if ($this->getDecoratedObject()->userID != WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php index def06a981bf..1f91e7d26e4 100644 --- a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php @@ -39,9 +39,6 @@ class ViewableArticleList extends ArticleList */ protected $embeddedObjectLoading = true; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); @@ -69,9 +66,7 @@ public function __construct() AND like_object.objectID = article.articleID"; } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php index 66d2ffc9d88..3c93aed7536 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php @@ -49,9 +49,7 @@ class ArticleCategory extends AbstractDecoratedCategory implements IAccessibleOb */ protected static $subscribedCategories; - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(?User $user = null) { if ($this->getObjectType()->objectType != self::OBJECT_TYPE_NAME) { @@ -100,9 +98,7 @@ public function getPermission($permission, ?User $user = null) } } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('CategoryArticleList', [ @@ -111,9 +107,7 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php index 9a7bd1a49fa..181f727d0c8 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php @@ -28,6 +28,7 @@ class ArticleCategoryNode extends CategoryNode */ protected $articles; + #[\Override] public function getItems(): int { if ($this->articles === null) { diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNodeTree.class.php index 5a5de07e701..a929a04858a 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNodeTree.class.php @@ -21,9 +21,7 @@ class ArticleCategoryNodeTree extends CategoryNodeTree */ protected $nodeClassName = ArticleCategoryNode::class; - /** - * @inheritDoc - */ + #[\Override] public function isIncluded(CategoryNode $categoryNode): bool { \assert($categoryNode instanceof ArticleCategoryNode); diff --git a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php index fd9f5b49191..9d128694494 100644 --- a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php @@ -49,9 +49,7 @@ class ArticleContent extends DatabaseObject implements ILinkableObject, IRouteCo */ protected $article; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('Article', [ @@ -60,9 +58,7 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->title; diff --git a/wcfsetup/install/files/lib/data/article/content/ArticleContentAction.class.php b/wcfsetup/install/files/lib/data/article/content/ArticleContentAction.class.php index cfc90b8875b..f1048bddc4f 100644 --- a/wcfsetup/install/files/lib/data/article/content/ArticleContentAction.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ArticleContentAction.class.php @@ -24,9 +24,7 @@ class ArticleContentAction extends AbstractDatabaseObjectAction */ protected $className = ArticleContentEditor::class; - /** - * @inheritDoc - */ + #[\Override] public function delete() { $articleContentIDs = []; diff --git a/wcfsetup/install/files/lib/data/article/content/SearchResultArticleContent.class.php b/wcfsetup/install/files/lib/data/article/content/SearchResultArticleContent.class.php index 6cb3123097f..fcef38bc7db 100644 --- a/wcfsetup/install/files/lib/data/article/content/SearchResultArticleContent.class.php +++ b/wcfsetup/install/files/lib/data/article/content/SearchResultArticleContent.class.php @@ -17,33 +17,25 @@ */ class SearchResultArticleContent extends ViewableArticleContent implements ISearchResultObject { - /** - * @inheritDoc - */ + #[\Override] public function getUserProfile() { return $this->getArticle()->getUserProfile(); } - /** - * @inheritDoc - */ + #[\Override] public function getSubject() { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return $this->getArticle()->time; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(string $query = ''): string { $parameters = [ @@ -58,17 +50,13 @@ public function getLink(string $query = ''): string return LinkHandler::getInstance()->getLink('Article', $parameters); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeName() { return 'com.woltlab.wcf.article'; } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { $processor = new HtmlOutputProcessor(); @@ -89,17 +77,13 @@ public function getFormattedMessage() return $message; } - /** - * @inheritDoc - */ + #[\Override] public function getContainerTitle() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getContainerLink() { return ''; diff --git a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php index 4e010acc846..603fbcc4b12 100644 --- a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php @@ -36,9 +36,7 @@ class ViewableArticleContentList extends ArticleContentList */ protected bool $articleLoading = true; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php index 47162945b61..637741e1ee9 100644 --- a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php @@ -38,9 +38,7 @@ public function __construct() $this->sqlConditionJoins = $join; } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index e7fb77d54f1..7252c8ea648 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -67,9 +67,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro protected File $file; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { $file = $this->getFile(); @@ -160,9 +158,9 @@ public function setPermissions(array $permissions) } /** - * @inheritDoc * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ + #[\Override] public function getLocation() { return $this->getLocationHelper(self::getStorage() . \substr( @@ -184,9 +182,9 @@ public function getTinyThumbnailLocation() } /** - * @inheritDoc * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ + #[\Override] public function getThumbnailLocation(string $size = '') { if ($size == 'tiny') { @@ -252,9 +250,7 @@ final protected function getLocationHelper($location) return $location . '.bin'; } - /** - * @inheritDoc - */ + #[\Override] public function getThumbnailLink(string $size = '') { $file = $this->getFile(); @@ -274,9 +270,7 @@ public function getThumbnailLink(string $size = '') return $thumbnail->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->filename; @@ -476,9 +470,7 @@ public static function getStorage(): string return WCF_DIR . 'attachments/'; } - /** - * @inheritDoc - */ + #[\Override] public static function getThumbnailSizes() { return [ diff --git a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php index cafe8f8b726..9f71b2f23a2 100644 --- a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php @@ -37,9 +37,7 @@ class AttachmentAction extends AbstractDatabaseObjectAction */ public $eventData = []; - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { WCF::getSession()->checkPermissions(['admin.attachment.canManageAttachment']); diff --git a/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php b/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php index 69946645af5..fa6fadb158f 100644 --- a/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php @@ -25,9 +25,7 @@ class AttachmentEditor extends DatabaseObjectEditor */ public static $baseClass = Attachment::class; - /** - * @inheritDoc - */ + #[\Override] public function delete() { $sql = "DELETE FROM wcf1_attachment @@ -38,9 +36,7 @@ public function delete() $this->deleteFiles(); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { // delete files first diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php index fd296c007a7..3ac5f060e68 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php @@ -76,9 +76,7 @@ public function setAttributes(array $attributes) $this->attributes = $attributes; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->bbcodeTag; diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php index e5b120d2978..2c5ae8ffda8 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php @@ -40,10 +40,7 @@ class BBCodeAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['delete', 'update']; - /** - * @inheritDoc - * @return BBCode - */ + #[\Override] public function create() { /** @var BBCode $bbCode */ @@ -98,9 +95,7 @@ public function create() return $bbCode; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php index 64558b05b06..da547e2bf7b 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php @@ -21,9 +21,7 @@ class BBCodeCache extends SingletonFactory */ protected $cachedBBCodes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cachedBBCodes = BBCodeCacheBuilder::getInstance()->getData([], 'bbcodes'); diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php index cdf5bd0386d..b1fa157cf07 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php @@ -24,9 +24,7 @@ class BBCodeEditor extends DatabaseObjectEditor implements IEditableCachedObject */ public static $baseClass = BBCode::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { BBCodeCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php index f35cd637dea..ac70b1a5392 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php @@ -127,9 +127,7 @@ public function getOutput($url) return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->title; diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderAction.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderAction.class.php index 11e9794a583..43357b5e5a8 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderAction.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderAction.class.php @@ -41,6 +41,7 @@ class BBCodeMediaProviderAction extends AbstractDatabaseObjectAction implements /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -49,6 +50,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableBBCodeMediaProvider` or `DisableBBCodeMediaProvider` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php index 1d928649ed7..39ebb53d394 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php @@ -24,9 +24,7 @@ class BBCodeMediaProviderEditor extends DatabaseObjectEditor implements IEditabl */ public static $baseClass = BBCodeMediaProvider::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { BBCodeMediaProviderCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index ce7aa264a9d..ef46542a5ac 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -150,9 +150,7 @@ class Box extends DatabaseObject 'footer', ]; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -164,9 +162,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); diff --git a/wcfsetup/install/files/lib/data/box/BoxAction.class.php b/wcfsetup/install/files/lib/data/box/BoxAction.class.php index 7cebe65121e..917ccc5d233 100644 --- a/wcfsetup/install/files/lib/data/box/BoxAction.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxAction.class.php @@ -61,10 +61,7 @@ class BoxAction extends AbstractDatabaseObjectAction implements IToggleAction */ public $boxController; - /** - * @inheritDoc - * @return Box - */ + #[\Override] public function create() { /** @var Box $box */ @@ -138,9 +135,7 @@ public function create() return $box; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -246,9 +241,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -260,9 +253,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $boxContentIDs = []; @@ -319,6 +310,7 @@ public function getBoxConditionsTemplate() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -327,6 +319,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableBox` or `DisableBox` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/box/BoxList.class.php b/wcfsetup/install/files/lib/data/box/BoxList.class.php index dc92e80a365..c6dc65af01e 100644 --- a/wcfsetup/install/files/lib/data/box/BoxList.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxList.class.php @@ -29,9 +29,7 @@ class BoxList extends DatabaseObjectList */ protected $contentLoading = false; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/box/BoxVersionTracker.class.php b/wcfsetup/install/files/lib/data/box/BoxVersionTracker.class.php index 4fcadc16cb1..f78740cb596 100644 --- a/wcfsetup/install/files/lib/data/box/BoxVersionTracker.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxVersionTracker.class.php @@ -31,9 +31,7 @@ class BoxVersionTracker extends DatabaseObjectDecorator implements IVersionTrack */ protected $content = []; - /** - * @inheritDoc - */ + #[\Override] public function getObjectID() { return $this->getDecoratedObject()->boxID; @@ -71,49 +69,37 @@ public function getContent() return $this->content; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUsername() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getEditLink() { return LinkHandler::getInstance()->getLink( diff --git a/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php b/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php index 3162cd04639..a0c77687240 100644 --- a/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php +++ b/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php @@ -35,9 +35,7 @@ class BoxContentList extends DatabaseObjectList */ protected $embeddedObjectLoading = false; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php index 79f72ce61df..c2e1c931ee3 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php @@ -91,6 +91,7 @@ public function delete() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -99,6 +100,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableCaptchaQuestion` or `DisableCaptchaQuestion` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php index 839dea59661..efb0c63a5b2 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php @@ -24,9 +24,7 @@ class CaptchaQuestionEditor extends DatabaseObjectEditor implements IEditableCac */ protected static $baseClass = CaptchaQuestion::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { CaptchaQuestionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 9849049c5dd..1105145cb84 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -75,9 +75,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I */ protected static $processorInterface = ICategoryType::class; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { // forward 'className' property requests to object type @@ -97,17 +95,13 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] public function __isset(string $name) { return parent::__isset($name) || isset($this->data['additionalData'][$name]); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions(array $permissions) { foreach ($permissions as $permission) { @@ -206,9 +200,7 @@ public function isParentCategory(self $category) return \in_array($category, $this->getParentCategories()); } - /** - * @inheritDoc - */ + #[\Override] public function getPermission(string $permission, ?User $user = null) { if ($user === null) { @@ -235,9 +227,7 @@ public function getPermission(string $permission, ?User $user = null) return $this->defaultPermission; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); @@ -257,9 +247,7 @@ public function getDescription() return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { // handle additional data @@ -275,9 +263,7 @@ protected function handleData($data) parent::handleData($data); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/data/category/CategoryAction.class.php b/wcfsetup/install/files/lib/data/category/CategoryAction.class.php index 123544014d0..6d357a90edb 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryAction.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryAction.class.php @@ -40,9 +40,7 @@ class CategoryAction extends AbstractDatabaseObjectAction implements */ protected $requireACP = ['create', 'delete', 'toggle', 'update', 'updatePosition']; - /** - * @inheritDoc - */ + #[\Override] public function delete() { // call category types @@ -101,9 +99,7 @@ public function delete() return $returnValue; } - /** - * @inheritDoc - */ + #[\Override] public function update() { // check if showOrder needs to be recalculated @@ -142,9 +138,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $objectType = null; @@ -179,9 +173,7 @@ public function updatePosition() } } - /** - * @inheritDoc - */ + #[\Override] public function validateCreate() { $this->readInteger('objectTypeID', false, 'data'); @@ -195,9 +187,7 @@ public function validateCreate() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { // read objects @@ -216,9 +206,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdate() { // read objects @@ -237,9 +225,7 @@ public function validateUpdate() } } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { // validate 'structure' parameter diff --git a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php index 8a3dede63e3..1d4e634f919 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php @@ -107,9 +107,7 @@ public function updateShowOrder($parentCategoryID, $showOrder) } } - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { // default values @@ -132,9 +130,7 @@ public static function create(array $parameters = []) return parent::create($parameters); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { // update positions diff --git a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php index ffa8a6d92f0..1677999db26 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php @@ -147,9 +147,9 @@ protected function getChildCategories(CategoryNode $parentNode) } /** - * @inheritDoc * @return \RecursiveIteratorIterator */ + #[\Override] public function getIterator(): \Traversable { if ($this->parentNode === null) { diff --git a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php index 14a81ed484d..4723136e1f2 100644 --- a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php @@ -25,9 +25,7 @@ class UncachedCategoryNodeTree extends CategoryNodeTree */ protected $categoryStructureCache = []; - /** - * @inheritDoc - */ + #[\Override] protected function buildTree() { $categoryList = new CategoryList(); @@ -49,17 +47,13 @@ protected function buildTree() parent::buildTree(); } - /** - * @inheritDoc - */ + #[\Override] protected function getCategory(int $categoryID) { return $this->categoryCache[$categoryID]; } - /** - * @inheritDoc - */ + #[\Override] protected function getChildCategories(CategoryNode $parentNode) { $categories = []; diff --git a/wcfsetup/install/files/lib/data/comment/Comment.class.php b/wcfsetup/install/files/lib/data/comment/Comment.class.php index be42a3fa060..f5c8aaf5bac 100644 --- a/wcfsetup/install/files/lib/data/comment/Comment.class.php +++ b/wcfsetup/install/files/lib/data/comment/Comment.class.php @@ -75,9 +75,7 @@ public function getUnfilteredResponseIDs() return $responseIDs; } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { $processor = new HtmlOutputProcessor(); @@ -137,25 +135,19 @@ public function getMailText($mimeType = 'text/plain') throw new \LogicException('Unreachable'); } - /** - * @inheritDoc - */ + #[\Override] public function getExcerpt(int $maxLength = 255) { return StringUtil::truncateHTML($this->getSimplifiedFormattedMessage(), $maxLength); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->message; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { /** @var ICommentManager $processor */ @@ -164,9 +156,7 @@ public function getLink(): string return $processor->getCommentLink($this); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return CommentHandler::getInstance()->getObjectType($this->objectTypeID)->getProcessor()->getTitle( @@ -175,17 +165,13 @@ public function getTitle(): string ); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getFormattedMessage(); diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index 826bbabbcac..e2fd8e00802 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -818,9 +818,9 @@ public function enableResponse() } /** - * @inheritDoc * @deprecated 6.1 see https://docs.woltlab.com/6.1/migration/wsc60/php/#comment-backend */ + #[\Override] public function validateBeginEdit() { $this->comment = $this->getSingleObject()->getDecoratedObject(); @@ -835,9 +835,9 @@ public function validateBeginEdit() } /** - * @inheritDoc * @deprecated 6.1 see https://docs.woltlab.com/6.1/migration/wsc60/php/#comment-backend */ + #[\Override] public function beginEdit() { $upcastProcessor = new HtmlUpcastProcessor(); @@ -854,9 +854,9 @@ public function beginEdit() } /** - * @inheritDoc * @deprecated 6.1 see https://docs.woltlab.com/6.1/migration/wsc60/php/#comment-backend */ + #[\Override] public function validateSave() { $this->validateBeginEdit(); @@ -865,9 +865,9 @@ public function validateSave() } /** - * @inheritDoc * @deprecated 6.1 see https://docs.woltlab.com/6.1/migration/wsc60/php/#comment-backend */ + #[\Override] public function save() { /** @var HtmlInputProcessor $htmlInputProcessor */ diff --git a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php index 8308ca0aa25..6af2f8e8527 100644 --- a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php @@ -27,33 +27,25 @@ class LikeableComment extends AbstractLikeObject implements IReactionObject */ protected static $baseClass = Comment::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->message; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return $this->userID; } - /** - * @inheritDoc - */ + #[\Override] public function sendNotification(Like $like) { $objectType = CommentHandler::getInstance()->getObjectType($this->getDecoratedObject()->objectTypeID); diff --git a/wcfsetup/install/files/lib/data/comment/LikeableCommentProvider.class.php b/wcfsetup/install/files/lib/data/comment/LikeableCommentProvider.class.php index 9e6c88b939c..cb1d223a2d9 100644 --- a/wcfsetup/install/files/lib/data/comment/LikeableCommentProvider.class.php +++ b/wcfsetup/install/files/lib/data/comment/LikeableCommentProvider.class.php @@ -39,9 +39,7 @@ class LikeableCommentProvider extends AbstractObjectTypeProvider implements */ public $listClassName = CommentList::class; - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions(ILikeObject $object) { \assert($object instanceof LikeableComment); @@ -55,9 +53,7 @@ public function checkPermissions(ILikeObject $object) return CommentHandler::getInstance()->getCommentManager($objectType->objectType)->isAccessible($object->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $likes) { $commentIDs = []; diff --git a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php index fcbc35ffc9d..d1a3ac7b201 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php @@ -169,49 +169,37 @@ public function isEditable(): bool return $this->editable; } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->responses); } - /** - * @inheritDoc - */ + #[\Override] public function current(): StructuredCommentResponse { return $this->responses[$this->position]; } - /** - * @inheritDoc - */ + #[\Override] public function key(): int { return $this->position; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->position++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->position = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->responses[$this->position]); diff --git a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php index 08437b04192..a6e9f0e7639 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php @@ -98,9 +98,7 @@ public function __construct(ICommentManager $commentManager, $objectTypeID, $obj } } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/comment/ViewableCommentList.class.php b/wcfsetup/install/files/lib/data/comment/ViewableCommentList.class.php index 60026766ec3..be73417b86e 100644 --- a/wcfsetup/install/files/lib/data/comment/ViewableCommentList.class.php +++ b/wcfsetup/install/files/lib/data/comment/ViewableCommentList.class.php @@ -25,9 +25,7 @@ class ViewableCommentList extends CommentList */ public $decoratorClassName = ViewableComment::class; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php index 6823ab3f38c..b6764ed6314 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php @@ -39,9 +39,7 @@ class CommentResponse extends DatabaseObject implements IMessage */ protected $comment; - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { $processor = new HtmlOutputProcessor(); @@ -101,17 +99,13 @@ public function getMailText($mimeType = 'text/plain') throw new \LogicException('Unreachable'); } - /** - * @inheritDoc - */ + #[\Override] public function getExcerpt(int $maxLength = 255) { return StringUtil::truncateHTML($this->getSimplifiedFormattedMessage(), $maxLength); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->message; @@ -143,9 +137,7 @@ public function setComment(Comment $comment) } } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { /** @var ICommentManager $processor */ @@ -154,9 +146,7 @@ public function getLink(): string return $processor->getResponseLink($this); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return CommentHandler::getInstance()->getObjectType($this->getComment()->objectTypeID)->getProcessor()->getTitle( @@ -166,17 +156,13 @@ public function getTitle(): string ); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getFormattedMessage(); diff --git a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php index 9e9598dfa1f..f99042e0b14 100644 --- a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponse.class.php @@ -28,33 +28,25 @@ class LikeableCommentResponse extends AbstractLikeObject implements IReactionObj */ protected static $baseClass = CommentResponse::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->message; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return $this->userID; } - /** - * @inheritDoc - */ + #[\Override] public function sendNotification(Like $like) { $comment = new Comment($this->getDecoratedObject()->commentID); diff --git a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponseProvider.class.php b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponseProvider.class.php index 02e5f9c3706..f7505ddd3ac 100644 --- a/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponseProvider.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/LikeableCommentResponseProvider.class.php @@ -41,9 +41,7 @@ class LikeableCommentResponseProvider extends AbstractObjectTypeProvider impleme */ public $listClassName = CommentResponseList::class; - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions(ILikeObject $object) { \assert($object instanceof LikeableCommentResponse); @@ -61,9 +59,7 @@ public function checkPermissions(ILikeObject $object) return CommentHandler::getInstance()->getCommentManager($objectType->objectType)->isAccessible($comment->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $likes) { $responseIDs = []; diff --git a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php index be72992e4dd..ff8c47844be 100644 --- a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php @@ -68,9 +68,7 @@ public function __construct(ICommentManager $commentManager, Comment $comment) $this->getConditionBuilder()->add("comment_response.commentID = ?", [$this->comment->commentID]); } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponseList.class.php b/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponseList.class.php index daf3c56f70f..3b713f26744 100644 --- a/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponseList.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponseList.class.php @@ -25,9 +25,7 @@ class ViewableCommentResponseList extends CommentResponseList */ public $decoratorClassName = ViewableCommentResponse::class; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/condition/Condition.class.php b/wcfsetup/install/files/lib/data/condition/Condition.class.php index 08636c781bf..e552230164b 100644 --- a/wcfsetup/install/files/lib/data/condition/Condition.class.php +++ b/wcfsetup/install/files/lib/data/condition/Condition.class.php @@ -19,9 +19,7 @@ */ class Condition extends DatabaseObject { - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -44,9 +42,7 @@ public function getObjectType() return ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID); } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); @@ -58,9 +54,7 @@ protected function handleData($data) } } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { return 'condition_table'; diff --git a/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php b/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php index e48bfa35d36..99d4c257b8e 100644 --- a/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php +++ b/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php @@ -24,9 +24,7 @@ class ConditionEditor extends DatabaseObjectEditor implements IEditableCachedObj */ protected static $baseClass = Condition::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { ConditionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/contact/attachment/ContactAttachment.class.php b/wcfsetup/install/files/lib/data/contact/attachment/ContactAttachment.class.php index 2520fbf4f14..66ed23b436a 100644 --- a/wcfsetup/install/files/lib/data/contact/attachment/ContactAttachment.class.php +++ b/wcfsetup/install/files/lib/data/contact/attachment/ContactAttachment.class.php @@ -57,17 +57,13 @@ public static function generateKey() return StringUtil::getRandomID(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getAttachment()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('ContactAttachment', [ @@ -76,9 +72,7 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php b/wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php index 401e4e5b7d5..e8cb6570b50 100644 --- a/wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php +++ b/wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php @@ -50,9 +50,7 @@ class ContactOptionAction extends AbstractDatabaseObjectAction implements ISorta */ protected $requireACP = ['create', 'delete', 'update', 'updatePosition', 'toggle']; - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { WCF::getSession()->checkPermissions($this->permissionsUpdate); @@ -68,9 +66,7 @@ public function validateUpdatePosition() } } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $sql = "UPDATE wcf1_contact_option @@ -146,6 +142,7 @@ public function getPackageID(): int /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -154,6 +151,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableContactOption` or `DisableContactOption` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/contact/option/ContactOptionEditor.class.php b/wcfsetup/install/files/lib/data/contact/option/ContactOptionEditor.class.php index 70276260def..cf37b8887d0 100644 --- a/wcfsetup/install/files/lib/data/contact/option/ContactOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/contact/option/ContactOptionEditor.class.php @@ -25,9 +25,7 @@ class ContactOptionEditor extends DatabaseObjectEditor implements IEditableCache */ protected static $baseClass = ContactOption::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { ContactOptionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php index 992484b9a46..5e6eb96007a 100644 --- a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php +++ b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php @@ -25,9 +25,7 @@ */ class ContactRecipient extends DatabaseObject implements ITitledObject { - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { // dynamically set email address for the administrator @@ -38,17 +36,12 @@ protected function handleData($data) parent::handleData($data); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getName(); } - /** - * @inheritDoc - */ public function __wakeup() { // update the administrator's email address on de-serialization, avoids outdated caches diff --git a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipientAction.class.php b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipientAction.class.php index 09c9bf20f08..2fab0687519 100644 --- a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipientAction.class.php +++ b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipientAction.class.php @@ -48,9 +48,7 @@ class ContactRecipientAction extends AbstractDatabaseObjectAction implements ITo */ protected $requireACP = ['create', 'delete', 'toggle', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -63,9 +61,9 @@ public function validateDelete() } /** - * @inheritDoc * @deprecated 6.3 */ + #[\Override] public function validateToggle() { parent::validateUpdate(); @@ -136,6 +134,7 @@ public function getPackageID(): int /** * @deprecated 6.3 use the `EnableContactRecipient` or `DisableContactRecipient` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php index 2a66017f849..f48adbb18a7 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php @@ -55,9 +55,7 @@ class CronjobAction extends AbstractDatabaseObjectAction implements IToggleActio */ protected $requireACP = ['create', 'delete', 'update', 'toggle', 'execute']; - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -69,9 +67,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdate() { parent::validateUpdate(); @@ -84,10 +80,9 @@ public function validateUpdate() } /** - * @inheritDoc - * * @deprecated 6.3 */ + #[\Override] public function validateToggle() { parent::validateUpdate(); @@ -247,6 +242,7 @@ public function executeCronjobs() /** * @deprecated 6.3 use the `EnableCronjob` or `DisableCronjob` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php index 9d17111d049..bdcace5d9f1 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php @@ -28,9 +28,7 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec */ protected static $baseClass = Cronjob::class; - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { $descriptions = []; @@ -120,9 +118,7 @@ protected function saveDescriptions(array $descriptions) $this->update(['description' => 'wcf.acp.cronjob.description.cronjob' . $this->cronjobID]); } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { $descriptions = []; @@ -143,9 +139,7 @@ public function update(array $parameters = []) } } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { // delete language items @@ -164,9 +158,7 @@ public static function deleteAll(array $objectIDs = []) return parent::deleteAll($objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { CronjobCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php index 7d9b2bce57c..2e1f6e39095 100644 --- a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php +++ b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php @@ -41,9 +41,7 @@ abstract class CustomOption extends Option implements ITitledObject */ protected $optionValue = ''; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { // Some options support empty values, such as "select", but the code checks for the @@ -56,9 +54,9 @@ public function __get(string $name) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->optionTitle); @@ -80,14 +78,13 @@ public function getDescription() * * @return bool */ + #[\Override] public function isVisible() { return !$this->isDisabled; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { throw new NotImplementedException(); diff --git a/wcfsetup/install/files/lib/data/custom/option/CustomOptionList.class.php b/wcfsetup/install/files/lib/data/custom/option/CustomOptionList.class.php index 97aa57cf00b..ad64785eafb 100644 --- a/wcfsetup/install/files/lib/data/custom/option/CustomOptionList.class.php +++ b/wcfsetup/install/files/lib/data/custom/option/CustomOptionList.class.php @@ -27,9 +27,6 @@ abstract class CustomOptionList extends DatabaseObjectList */ public $sqlOrderBy = 'showOrder'; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItemAction.class.php b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItemAction.class.php index 68173109515..ef1eed69313 100644 --- a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItemAction.class.php +++ b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItemAction.class.php @@ -88,9 +88,7 @@ public function logLanguageItem() ]); } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { if (!ENABLE_DEVELOPER_TOOLS) { diff --git a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProjectAction.class.php b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProjectAction.class.php index c5b5716be31..9b7db7c58ae 100644 --- a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProjectAction.class.php +++ b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProjectAction.class.php @@ -54,9 +54,9 @@ class DevtoolsProjectAction extends AbstractDatabaseObjectAction protected $pip; /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function create() { $this->parameters['data']['path'] = FileUtil::addTrailingSlash($this->parameters['data']['path']); @@ -69,9 +69,7 @@ public function create() return $project; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { if (!ENABLE_DEVELOPER_TOOLS) { diff --git a/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php b/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php index 996075d264b..a093bb054c6 100644 --- a/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php +++ b/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php @@ -25,9 +25,9 @@ class EventListenerEditor extends DatabaseObjectEditor implements IEditableCache protected static $baseClass = EventListener::class; /** - * @inheritDoc * @since 5.2 */ + #[\Override] public static function resetCache() { EventListenerCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/file/FileEditor.class.php b/wcfsetup/install/files/lib/data/file/FileEditor.class.php index cdc5087971f..8a14dbaabdf 100644 --- a/wcfsetup/install/files/lib/data/file/FileEditor.class.php +++ b/wcfsetup/install/files/lib/data/file/FileEditor.class.php @@ -38,6 +38,7 @@ public function deleteFiles(): void } } + #[\Override] public static function deleteAll(array $objectIDs = []) { $fileList = new FileList(); diff --git a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php index 5d56146600d..b341a76306a 100644 --- a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php +++ b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnail.class.php @@ -44,6 +44,7 @@ public function getPathname(): string return $this->getPath() . $this->getSourceFilename(); } + #[\Override] public function getLink(): string { return \sprintf( diff --git a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnailEditor.class.php b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnailEditor.class.php index 187c1575755..cd812853b21 100644 --- a/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnailEditor.class.php +++ b/wcfsetup/install/files/lib/data/file/thumbnail/FileThumbnailEditor.class.php @@ -27,6 +27,7 @@ public function deleteFiles(): void @\unlink($this->getPath() . $this->getSourceFilename()); } + #[\Override] public static function deleteAll(array $objectIDs = []) { $thumbnailList = new FileThumbnailList(); diff --git a/wcfsetup/install/files/lib/data/label/Label.class.php b/wcfsetup/install/files/lib/data/label/Label.class.php index 27afb9b98f3..24abe8fb5a1 100644 --- a/wcfsetup/install/files/lib/data/label/Label.class.php +++ b/wcfsetup/install/files/lib/data/label/Label.class.php @@ -26,14 +26,13 @@ class Label extends DatabaseObject implements IRouteController * Returns the label's textual representation if a label is treated as a * string. */ + #[\Override] public function __toString(): string { return $this->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->label); diff --git a/wcfsetup/install/files/lib/data/label/LabelAction.class.php b/wcfsetup/install/files/lib/data/label/LabelAction.class.php index c635cf23ef8..f31cfc56128 100644 --- a/wcfsetup/install/files/lib/data/label/LabelAction.class.php +++ b/wcfsetup/install/files/lib/data/label/LabelAction.class.php @@ -48,9 +48,9 @@ class LabelAction extends AbstractDatabaseObjectAction implements ISortableActio protected $requireACP = ['create', 'delete', 'update', 'updatePosition']; /** - * @inheritDoc * @return Label */ + #[\Override] public function create() { $showOrder = 0; @@ -71,9 +71,7 @@ public function create() return $label; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -98,9 +96,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $count = parent::delete(); @@ -110,9 +106,7 @@ public function delete() return $count; } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { WCF::getSession()->checkPermissions(['admin.content.label.canManageLabel']); @@ -140,9 +134,7 @@ public function validateUpdatePosition() $this->readInteger('offset', true, 'data'); } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $sql = "UPDATE wcf1_label diff --git a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php index 17eb8cf50fb..5a868c6a6bf 100644 --- a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php +++ b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php @@ -25,9 +25,7 @@ class LabelEditor extends DatabaseObjectEditor implements IEditableCachedObject */ protected static $baseClass = Label::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { LabelCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php index 676c40ce443..545f3bae7c3 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php @@ -22,9 +22,7 @@ */ class LabelGroup extends DatabaseObject implements IRouteController { - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->groupName); @@ -33,6 +31,7 @@ public function getTitle(): string /** * Returns label group title. */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroupAction.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroupAction.class.php index a0fbadd459a..ad9ca265628 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroupAction.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroupAction.class.php @@ -45,9 +45,7 @@ class LabelGroupAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['create', 'delete', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function delete() { // remove labels and their potential language variables diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php index f90f1499be4..957d47fea94 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php @@ -25,9 +25,7 @@ class LabelGroupEditor extends DatabaseObjectEditor implements IEditableCachedOb */ protected static $baseClass = LabelGroup::class; - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $count = parent::deleteAll($objectIDs); @@ -39,9 +37,7 @@ public static function deleteAll(array $objectIDs = []) return $count; } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { LabelCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php index 21ec00c6f8d..2060f97398d 100644 --- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php @@ -170,17 +170,13 @@ public function getLabel($labelID) return $this->labels[$labelID] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->labels); } - /** - * @inheritDoc - */ + #[\Override] #[\ReturnTypeWillChange] public function current() { @@ -192,42 +188,33 @@ public function current() /** * CAUTION: This methods does not return the current iterator index, * rather than the object key which maps to that index. - * - * @inheritDoc */ + #[\Override] #[\ReturnTypeWillChange] public function key() { return $this->indexToObject[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->indexToObject[$this->index]); } - /** - * @inheritDoc - */ + #[\Override] public function seek($offset): void { $this->index = $offset; @@ -237,9 +224,7 @@ public function seek($offset): void } } - /** - * @inheritDoc - */ + #[\Override] public function seekTo(int $objectID) { $this->index = \array_search($objectID, $this->indexToObject); @@ -249,9 +234,7 @@ public function seekTo(int $objectID) } } - /** - * @inheritDoc - */ + #[\Override] public function search(int $objectID) { try { diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index 31471436021..7fdc1ee3fdc 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -59,6 +59,7 @@ class Language extends DatabaseObject /** * Returns the name of this language. */ + #[\Override] public function __toString(): string { return $this->languageName; diff --git a/wcfsetup/install/files/lib/data/language/LanguageAction.class.php b/wcfsetup/install/files/lib/data/language/LanguageAction.class.php index f13f78a3244..d75b5ac8df3 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageAction.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageAction.class.php @@ -53,9 +53,7 @@ class LanguageAction extends AbstractDatabaseObjectAction implements IToggleActi */ protected $requireACP = ['create', 'delete', 'setAsDefault', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function create() { $object = parent::create(); @@ -101,10 +99,9 @@ public function setAsDefault() } /** - * @inheritDoc - * * @deprecated 6.3 */ + #[\Override] public function validateToggle() { parent::validateUpdate(); @@ -119,6 +116,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableLanguage` or `DisableLanguage` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { @@ -130,9 +128,7 @@ public function toggle() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index d036b1aed3c..8ee5ee554d1 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -41,9 +41,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje */ protected static $baseClass = Language::class; - /** - * @inheritDoc - */ + #[\Override] public function delete() { parent::delete(); @@ -980,9 +978,7 @@ public static function enableMultilingualism(array $languageIDs = []) } } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { LanguageFactory::getInstance()->clearCache(); diff --git a/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php b/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php index 17a3c3e09ea..9da12c4fc0b 100644 --- a/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php +++ b/wcfsetup/install/files/lib/data/language/SetupLanguage.class.php @@ -15,9 +15,6 @@ */ final class SetupLanguage extends Language { - /** - * @inheritDoc - */ public function __construct(string $languageCode) { parent::__construct(null, ['languageCode' => $languageCode], null); @@ -36,9 +33,7 @@ private function getXmlFilename(): string return TMP_DIR . 'setup/lang/setup_' . $this->languageCode . '.xml'; } - /** - * @inheritDoc - */ + #[\Override] protected function loadCategory(string $category): bool { if ($category !== 'wcf.global') { diff --git a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php index ee008ca4aca..2a50c12ea86 100644 --- a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php +++ b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php @@ -22,9 +22,7 @@ class LanguageCategory extends DatabaseObject implements ITitledObject */ protected static $databaseTableIndexName = 'languageCategoryID'; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->languageCategory; diff --git a/wcfsetup/install/files/lib/data/like/Like.class.php b/wcfsetup/install/files/lib/data/like/Like.class.php index 32656e2eb66..0c781ee859a 100644 --- a/wcfsetup/install/files/lib/data/like/Like.class.php +++ b/wcfsetup/install/files/lib/data/like/Like.class.php @@ -43,6 +43,7 @@ class Like extends DatabaseObject * * @since 5.3 */ + #[\Override] public function __toString(): string { return $this->getReactionType()->getTitle(); @@ -90,9 +91,7 @@ public static function getLike($objectTypeID, $objectID, $userID) return new self(null, $row); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { return 'like_table'; diff --git a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php index f6985efffc0..71afeee2ab3 100644 --- a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php +++ b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php @@ -41,9 +41,7 @@ class ViewableLikeList extends LikeList */ public $sqlOrderBy = 'like_table.time DESC'; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/like/object/AbstractLikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/AbstractLikeObject.class.php index 9041a70f392..d41f8a9bbff 100644 --- a/wcfsetup/install/files/lib/data/like/object/AbstractLikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/AbstractLikeObject.class.php @@ -31,41 +31,31 @@ abstract class AbstractLikeObject extends DatabaseObjectDecorator implements ILi */ protected $objectType; - /** - * @inheritDoc - */ + #[\Override] public function updateLikeCounter(int $cumulativeLikes) { // individual implementations can override this method to update like counter } - /** - * @inheritDoc - */ + #[\Override] public function getObjectType() { return $this->objectType; } - /** - * @inheritDoc - */ + #[\Override] public function setObjectType(ObjectType $objectType) { $this->objectType = $objectType; } - /** - * @inheritDoc - */ + #[\Override] public function sendNotification(Like $like) { // individual implementations can override this method to provide notifications } - /** - * @inheritDoc - */ + #[\Override] public function getLanguageID() { return null; diff --git a/wcfsetup/install/files/lib/data/media/Media.class.php b/wcfsetup/install/files/lib/data/media/Media.class.php index 44ed566086a..649f8bfa7e2 100644 --- a/wcfsetup/install/files/lib/data/media/Media.class.php +++ b/wcfsetup/install/files/lib/data/media/Media.class.php @@ -94,9 +94,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, ], ]; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('Media', [ @@ -105,17 +103,13 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getLocation() { return self::getStorage() . \substr($this->fileHash, 0, 2) . '/' . $this->mediaID . '-' . $this->fileHash; } - /** - * @inheritDoc - */ + #[\Override] public function getThumbnailLink(string $size) { if (!isset(self::$thumbnailSizes[$size])) { @@ -173,9 +167,7 @@ public function getThumbnailHeight($size) return $this->height; } - /** - * @inheritDoc - */ + #[\Override] public function getThumbnailLocation(string $size) { if (!isset(self::$thumbnailSizes[$size])) { @@ -189,9 +181,7 @@ public function getThumbnailLocation(string $size) ) . '/' . $this->mediaID . '-' . $size . '-' . $this->fileHash; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->filename; @@ -309,9 +299,7 @@ public static function getStorage() return WCF_DIR . 'media_files/'; } - /** - * @inheritDoc - */ + #[\Override] public static function getThumbnailSizes() { return static::$thumbnailSizes; diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index 4b1b52776a4..aade4de3979 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -40,9 +40,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, */ const ITEMS_PER_MANAGER_DIALOG_PAGE = 50; - /** - * @inheritDoc - */ + #[\Override] public function validateUpload() { WCF::getSession()->checkPermissions(['admin.content.cms.canManageMedia']); @@ -60,9 +58,7 @@ public function validateUpload() } } - /** - * @inheritDoc - */ + #[\Override] public function upload() { $additionalData = ['username' => WCF::getUser()->username]; @@ -356,9 +352,7 @@ public function getEditorDialog() ]; } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdate() { WCF::getSession()->checkPermissions(['admin.content.cms.canManageMedia']); @@ -416,9 +410,7 @@ public function validateUpdate() } } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (isset($this->parameters['data']['categoryID']) && $this->parameters['data']['categoryID'] === 0) { @@ -505,9 +497,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { if (!WCF::getSession()->getPermission('admin.content.cms.canManageMedia') && !WCF::getSession()->getPermission('admin.content.cms.canUseMedia')) { @@ -533,9 +523,7 @@ public function validateGetSearchResultList() } } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $mediaList = new MediaList(); @@ -589,9 +577,7 @@ public function getSearchResultList() ]; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { WCF::getSession()->checkPermissions(['admin.content.cms.canManageMedia']); @@ -613,9 +599,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php b/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php index 9ce1d5a9b8f..789a368154c 100644 --- a/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php +++ b/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php @@ -89,9 +89,7 @@ protected function forceLanguageID($languageID) $this->forceLanguageID = $languageID; } - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { if ($this->forceLanguageID !== null && isset($this->localizedContent[$this->forceLanguageID][$name])) { @@ -116,6 +114,7 @@ public function getTitle() /** * Returns a textual representation of the media file to be used in templates. */ + #[\Override] public function __toString(): string { if ($this->isImage) { diff --git a/wcfsetup/install/files/lib/data/menu/Menu.class.php b/wcfsetup/install/files/lib/data/menu/Menu.class.php index 6ef794eaab6..ae66bb49f26 100644 --- a/wcfsetup/install/files/lib/data/menu/Menu.class.php +++ b/wcfsetup/install/files/lib/data/menu/Menu.class.php @@ -72,9 +72,9 @@ public function hasContent() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/menu/MenuAction.class.php b/wcfsetup/install/files/lib/data/menu/MenuAction.class.php index 062339b7504..1acef59470e 100644 --- a/wcfsetup/install/files/lib/data/menu/MenuAction.class.php +++ b/wcfsetup/install/files/lib/data/menu/MenuAction.class.php @@ -48,10 +48,7 @@ class MenuAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['create', 'delete', 'update']; - /** - * @inheritDoc - * @return Menu - */ + #[\Override] public function create() { // `title` column doesn't have a default value @@ -93,9 +90,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); diff --git a/wcfsetup/install/files/lib/data/menu/MenuCache.class.php b/wcfsetup/install/files/lib/data/menu/MenuCache.class.php index 096ce062133..24524adc532 100644 --- a/wcfsetup/install/files/lib/data/menu/MenuCache.class.php +++ b/wcfsetup/install/files/lib/data/menu/MenuCache.class.php @@ -26,9 +26,7 @@ class MenuCache extends SingletonFactory */ protected $cachedMenuItems; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cachedMenus = MenuCacheBuilder::getInstance()->getData([], 'menus'); diff --git a/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php b/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php index c4b2e6abb95..d99c3483a08 100644 --- a/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php @@ -27,10 +27,7 @@ class MenuEditor extends DatabaseObjectEditor implements IEditableCachedObject */ protected static $baseClass = Menu::class; - /** - * @inheritDoc - * @return Menu - */ + #[\Override] public static function create(array $parameters = []) { $title = ''; @@ -82,9 +79,7 @@ public static function create(array $parameters = []) return $menu; } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { if (!empty($objectIDs)) { @@ -109,9 +104,7 @@ public static function deleteAll(array $objectIDs = []) return parent::deleteAll($objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { MenuCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php index fb86d45dd1d..30cabf974f2 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php @@ -49,9 +49,9 @@ class MenuItem extends DatabaseObject implements ITitledObject protected $page; /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemAction.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemAction.class.php index e44373ddd1a..956d1843f13 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemAction.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemAction.class.php @@ -53,6 +53,7 @@ class MenuItemAction extends AbstractDatabaseObjectAction implements ISortableAc */ protected $requireACP = ['create', 'delete', 'toggle', 'update']; + #[\Override] public function create() { // `title` column doesn't have a default value @@ -84,9 +85,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function validateToggle() { parent::validateUpdate(); @@ -98,9 +97,7 @@ public function validateToggle() } } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { WCF::getSession()->checkPermissions(['admin.content.cms.canManageMenu']); @@ -143,9 +140,7 @@ public function validateUpdatePosition() } } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $sql = "UPDATE wcf1_menu_item diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php index 1a95c414162..9111f318a1c 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php @@ -27,10 +27,7 @@ class MenuItemEditor extends DatabaseObjectEditor implements IEditableCachedObje */ protected static $baseClass = MenuItem::class; - /** - * @inheritDoc - * @return MenuItem - */ + #[\Override] public static function create(array $parameters = []) { $title = ''; @@ -82,9 +79,7 @@ public static function create(array $parameters = []) return $menuItem; } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { if (!empty($objectIDs)) { @@ -109,9 +104,7 @@ public static function deleteAll(array $objectIDs = []) return parent::deleteAll($objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { MenuCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php index abc9f02d945..3106770cd3e 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php @@ -90,6 +90,7 @@ public function isActiveNode(): bool /** * Returns node depth. */ + #[\Override] public function getDepth(): int { return $this->depth; diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php index a6fed0036a6..76bcc52c3db 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php @@ -41,9 +41,7 @@ class ModerationQueue extends DatabaseObject const STATUS_CONFIRMED = 4; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -58,9 +56,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 9c01f4c0f4c..5e8a8f70eb0 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -46,9 +46,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction */ public $user; - /** - * @inheritDoc - */ + #[\Override] public function create() { if (!isset($this->parameters['data']['lastChangeTime'])) { @@ -58,9 +56,7 @@ public function create() return parent::create(); } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (!isset($this->parameters['data']['lastChangeTime'])) { diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index d2d2ac66fbe..04bdf06c9ce 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -64,17 +64,13 @@ public function setAffectedObject(IUserContent $object) $this->affectedObject = $object; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ModerationQueueManager::getInstance()->getLink($this->objectTypeID, $this->queueID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->affectedObject === null ? '' : $this->affectedObject->getTitle(); @@ -155,9 +151,7 @@ public function setIsOrphaned() $this->isOrphaned = true; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php index a1d8db55bff..49e3559b073 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php @@ -32,9 +32,6 @@ class ViewableModerationQueueList extends ModerationQueueList */ public $useQualifiedShorthand = false; - /** - * @inheritDoc - */ public function __construct(?User $target = null) { parent::__construct(); @@ -56,9 +53,7 @@ public function __construct(?User $target = null) $this->getConditionBuilder()->add("moderation_queue_to_user.isAffected = ?", [1]); } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); @@ -110,6 +105,7 @@ public function readObjects() * * @return string */ + #[\Override] public function getDatabaseTableName() { return parent::getDatabaseTableName() . '_to_user'; @@ -120,6 +116,7 @@ public function getDatabaseTableName() * * @return string */ + #[\Override] public function getDatabaseTableAlias() { return parent::getDatabaseTableAlias() . '_to_user'; diff --git a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php index 332a34c1ca6..ae92aeb03cd 100644 --- a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php +++ b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php @@ -24,9 +24,7 @@ */ class ModificationLog extends DatabaseObject { - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -41,9 +39,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index 36fec748be5..9e52f84330b 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -46,6 +46,7 @@ class Notice extends DatabaseObject implements IRouteController * * @since 3.0 */ + #[\Override] public function __toString(): string { // replace `{$username}` with the active user's name and `{$email}` @@ -72,9 +73,7 @@ public function getConditions() return ConditionHandler::getInstance()->getConditions('com.woltlab.wcf.condition.notice', $this->noticeID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->noticeName; diff --git a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php index 637dd86c5cc..197deb8f09e 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php @@ -40,10 +40,7 @@ class NoticeAction extends AbstractDatabaseObjectAction implements IToggleAction */ protected $requireACP = ['create', 'delete', 'toggle', 'update', 'updatePosition']; - /** - * @inheritDoc - * @return Notice - */ + #[\Override] public function create() { $showOrder = 0; @@ -60,9 +57,7 @@ public function create() return new Notice($notice->noticeID); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { ConditionHandler::getInstance()->deleteConditions('com.woltlab.wcf.condition.notice', $this->objectIDs); @@ -100,9 +95,7 @@ public function validateDismiss() $this->getSingleObject(); } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -119,6 +112,7 @@ public function update() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -127,6 +121,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableNotice` or `DisableNotice` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php index c1baac8bf72..bac8ed2686a 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php @@ -62,9 +62,7 @@ public function setShowOrder($showOrder = 0) $this->update(['showOrder' => $newShowOrder]); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { NoticeCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/object/type/AbstractObjectTypeProvider.class.php b/wcfsetup/install/files/lib/data/object/type/AbstractObjectTypeProvider.class.php index 5e4129f5a41..06c262a634d 100644 --- a/wcfsetup/install/files/lib/data/object/type/AbstractObjectTypeProvider.class.php +++ b/wcfsetup/install/files/lib/data/object/type/AbstractObjectTypeProvider.class.php @@ -36,9 +36,7 @@ abstract class AbstractObjectTypeProvider implements IObjectTypeProvider */ public $listClassName = ''; - /** - * @inheritDoc - */ + #[\Override] public function getObjectByID(int $objectID) { $object = new $this->className($objectID); @@ -49,9 +47,7 @@ public function getObjectByID(int $objectID) return $object; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectsByIDs(array $objectIDs) { $tableAlias = \call_user_func([$this->className, 'getDatabaseTableAlias']); diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php index 1b6655fed74..6d43a5e18cb 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -37,9 +37,7 @@ class ObjectType extends ProcessibleDatabaseObject */ protected static $databaseTableIndexName = 'objectTypeID'; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -66,9 +64,7 @@ final public function __sleep() return ['data']; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); @@ -79,9 +75,7 @@ protected function handleData($data) } } - /** - * @inheritDoc - */ + #[\Override] public function getProcessor() { if ($this->processor === null) { diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php index 1e3913b47fa..e58b6f14a97 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php @@ -45,9 +45,7 @@ class ObjectTypeCache extends SingletonFactory */ protected $groupedObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get definition cache diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php index 81c49c6c964..9f785e9d41e 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php @@ -23,9 +23,7 @@ class ObjectTypeEditor extends DatabaseObjectEditor implements IEditableCachedOb */ protected static $baseClass = ObjectType::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { ObjectTypeCache::getInstance()->resetCache(); diff --git a/wcfsetup/install/files/lib/data/object/type/SitemapObjectTypeAction.class.php b/wcfsetup/install/files/lib/data/object/type/SitemapObjectTypeAction.class.php index 272bfcb8a90..c815c0654c1 100644 --- a/wcfsetup/install/files/lib/data/object/type/SitemapObjectTypeAction.class.php +++ b/wcfsetup/install/files/lib/data/object/type/SitemapObjectTypeAction.class.php @@ -32,9 +32,7 @@ class SitemapObjectTypeAction extends ObjectTypeAction implements IToggleAction */ protected $requireACP = ['toggle']; - /** - * @inheritDoc - */ + #[\Override] public function toggle() { foreach ($this->getObjects() as $objectEditor) { @@ -63,9 +61,7 @@ public function toggle() } } - /** - * @inheritDoc - */ + #[\Override] public function validateToggle() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/data/option/Option.class.php b/wcfsetup/install/files/lib/data/option/Option.class.php index 69e0c9e04fa..5e407d3eba0 100644 --- a/wcfsetup/install/files/lib/data/option/Option.class.php +++ b/wcfsetup/install/files/lib/data/option/Option.class.php @@ -38,9 +38,7 @@ class Option extends DatabaseObject use TDatabaseObjectOptions; use TDatabaseObjectPermissions; - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = $this->data[$name] ?? null; @@ -55,9 +53,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); @@ -196,9 +192,7 @@ public function isVisible() return !$this->hidden; } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { return 'option_table'; diff --git a/wcfsetup/install/files/lib/data/option/OptionEditor.class.php b/wcfsetup/install/files/lib/data/option/OptionEditor.class.php index 8b48d8c182d..78dca5b61b9 100644 --- a/wcfsetup/install/files/lib/data/option/OptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/option/OptionEditor.class.php @@ -125,9 +125,7 @@ public static function updateAll(array $options) } } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { // reset cache diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index 7bb87ef98e0..d7fc9597868 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -78,9 +78,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle */ protected static $requirements; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getControllerLink(PackagePage::class, [ @@ -88,9 +86,7 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getName(); @@ -132,9 +128,7 @@ public function getName() return WCF::getLanguage()->get($this->packageName); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getName(); diff --git a/wcfsetup/install/files/lib/data/package/PackageCache.class.php b/wcfsetup/install/files/lib/data/package/PackageCache.class.php index 58cb870f462..37c39ca0500 100644 --- a/wcfsetup/install/files/lib/data/package/PackageCache.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageCache.class.php @@ -20,9 +20,7 @@ class PackageCache extends SingletonFactory */ protected array $packages; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->packages = PackageCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/data/package/PackageEditor.class.php b/wcfsetup/install/files/lib/data/package/PackageEditor.class.php index db9c6fb0871..ce0e06bd2e7 100644 --- a/wcfsetup/install/files/lib/data/package/PackageEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageEditor.class.php @@ -24,9 +24,7 @@ class PackageEditor extends DatabaseObjectEditor implements IEditableCachedObjec */ protected static $baseClass = Package::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { PackageCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdateList.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdateList.class.php index 1addc389c1f..073d5d056c1 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdateList.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdateList.class.php @@ -22,7 +22,6 @@ class PackageUpdateList extends DatabaseObjectList public $className = PackageUpdate::class; /** - * @inheritDoc * @param bool $useSqlOr */ public function __construct($useSqlOr = false) 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 7a85e7ccb38..45c3935b32f 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 @@ -52,9 +52,7 @@ class PackageUpdateServer extends DatabaseObject implements ITitledObject */ private static $secureMode = false; - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { if (!empty($data['metaData'])) { diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php index 2c606c9c468..2fb285aa540 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerAction.class.php @@ -44,9 +44,7 @@ class PackageUpdateServerAction extends AbstractDatabaseObjectAction implements */ protected $requireACP = ['create', 'delete', 'toggle', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -60,10 +58,9 @@ public function validateDelete() } /** - * @inheritDoc - * * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -79,6 +76,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnablePackageUpdateServer` or `DisablePackageUpdateServer` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php index 62e62fd8c57..b377c96ca34 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php @@ -24,9 +24,7 @@ class PackageUpdateServerEditor extends DatabaseObjectEditor implements IEditabl */ protected static $baseClass = PackageUpdateServer::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { PackageUpdateCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerList.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerList.class.php index 00249eeb2b6..fc4377a3f86 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerList.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerList.class.php @@ -20,9 +20,7 @@ class PackageUpdateServerList extends DatabaseObjectList */ public $className = PackageUpdateServer::class; - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { if (!empty($this->sqlSelects)) { diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index a6375db1e0f..f88b0ca6591 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -169,9 +169,7 @@ public function getPageContentByLanguage($languageID = null) return null; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { if ($this->controller) { @@ -196,9 +194,7 @@ public function getLink(): string return LinkHandler::getInstance()->getCmsLink($this->pageID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return PageCache::getInstance()->getPageTitle($this->pageID); @@ -304,6 +300,7 @@ public function setAsLandingPage() /** * Returns the page's internal name. */ + #[\Override] public function __toString(): string { return $this->name; diff --git a/wcfsetup/install/files/lib/data/page/PageAction.class.php b/wcfsetup/install/files/lib/data/page/PageAction.class.php index f81220ba1be..252eeb422dc 100644 --- a/wcfsetup/install/files/lib/data/page/PageAction.class.php +++ b/wcfsetup/install/files/lib/data/page/PageAction.class.php @@ -72,10 +72,7 @@ class PageAction extends AbstractDatabaseObjectAction implements ISearchAction, 'updatePosition', ]; - /** - * @inheritDoc - * @return Page - */ + #[\Override] public function create() { /** @var Page $page */ @@ -158,9 +155,7 @@ public function create() return $page; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -284,9 +279,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -299,10 +292,10 @@ public function validateDelete() } /** - * @inheritDoc * * @deprecated 6.3 */ + #[\Override] public function validateToggle() { parent::validateUpdate(); @@ -314,9 +307,7 @@ public function validateToggle() } } - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { $this->pageEditor = $this->getSingleObject(); @@ -327,9 +318,7 @@ public function validateGetSearchResultList() $this->readString('searchString', false, 'data'); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $pageHandler = $this->pageEditor->getHandler(); @@ -384,9 +373,7 @@ public function search() return $pages; } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $pageContentIDs = []; @@ -422,9 +409,7 @@ public function delete() return $count; } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { WCF::getSession()->checkPermissions(['admin.content.cms.canManagePage']); @@ -473,9 +458,7 @@ public function validateUpdatePosition() } } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $pageID = $this->pageEditor->getDecoratedObject()->pageID; @@ -531,6 +514,7 @@ public function resetPosition() /** * @deprecated 6.3 use the `EnablePage` or `DisablePage` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/page/PageCache.class.php b/wcfsetup/install/files/lib/data/page/PageCache.class.php index f2c891b668a..f020db54e01 100644 --- a/wcfsetup/install/files/lib/data/page/PageCache.class.php +++ b/wcfsetup/install/files/lib/data/page/PageCache.class.php @@ -28,9 +28,7 @@ class PageCache extends SingletonFactory */ protected $cache; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = PageCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/data/page/PageEditor.class.php b/wcfsetup/install/files/lib/data/page/PageEditor.class.php index 96f763a47dd..b78c50b7fbe 100644 --- a/wcfsetup/install/files/lib/data/page/PageEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/PageEditor.class.php @@ -49,9 +49,7 @@ public function updateTemplate($languageID, $content) WCF::resetZendOpcache($filename); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { RoutingCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/page/PageVersionTracker.class.php b/wcfsetup/install/files/lib/data/page/PageVersionTracker.class.php index 63702c2f7ca..f66db380c32 100644 --- a/wcfsetup/install/files/lib/data/page/PageVersionTracker.class.php +++ b/wcfsetup/install/files/lib/data/page/PageVersionTracker.class.php @@ -31,9 +31,7 @@ class PageVersionTracker extends DatabaseObjectDecorator implements IVersionTrac */ protected $content = []; - /** - * @inheritDoc - */ + #[\Override] public function getObjectID() { return $this->getDecoratedObject()->pageID; @@ -71,49 +69,37 @@ public function getContent() return $this->content; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getUsername() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getEditLink() { return LinkHandler::getInstance()->getLink( diff --git a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php index 54ce364600c..0105e3349f6 100644 --- a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php +++ b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php @@ -132,17 +132,13 @@ public static function getPageContent($pageID, $languageID) return null; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getCmsLink($this->pageID, $this->languageID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->title; diff --git a/wcfsetup/install/files/lib/data/page/content/SearchResultPageContent.class.php b/wcfsetup/install/files/lib/data/page/content/SearchResultPageContent.class.php index f3251ca9a50..29a4ec1c2d0 100644 --- a/wcfsetup/install/files/lib/data/page/content/SearchResultPageContent.class.php +++ b/wcfsetup/install/files/lib/data/page/content/SearchResultPageContent.class.php @@ -26,33 +26,25 @@ class SearchResultPageContent extends DatabaseObjectDecorator implements ISearch */ protected static $baseClass = PageContent::class; - /** - * @inheritDoc - */ + #[\Override] public function getUserProfile() { return null; } - /** - * @inheritDoc - */ + #[\Override] public function getSubject() { return $this->getDecoratedObject()->title; } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(string $query = '') { return LinkHandler::getInstance()->getCmsLink( @@ -61,17 +53,13 @@ public function getLink(string $query = '') ); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeName() { return 'com.woltlab.wcf.page'; } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { $page = new Page($this->pageID); @@ -84,17 +72,13 @@ public function getFormattedMessage() return $message; } - /** - * @inheritDoc - */ + #[\Override] public function getContainerTitle() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getContainerLink() { return ''; diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php index 290c29c7659..b2bce9dc3c9 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php @@ -118,6 +118,7 @@ protected function getDescription() * @see ITitledObject::getTitle() * @since 3.1 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php index 9822a2aec8a..31a5d07eb82 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionAction.class.php @@ -33,10 +33,7 @@ class PaidSubscriptionAction extends AbstractDatabaseObjectAction implements ITo */ protected $requireACP = ['create', 'delete', 'toggle', 'update']; - /** - * @inheritDoc - * @return PaidSubscription - */ + #[\Override] public function create() { $showOrder = 0; @@ -53,9 +50,7 @@ public function create() return new PaidSubscription($subscription->subscriptionID); } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -72,6 +67,7 @@ public function update() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -80,6 +76,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnablePaidSubscription` or `DisablePaidSubscription` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php index 4b38b549bb3..434a9d93e10 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php @@ -60,9 +60,7 @@ public function setShowOrder($showOrder = 0) $this->update(['showOrder' => $newShowOrder]); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { PaidSubscriptionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php index b30f6591380..8d07d234748 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserAction.class.php @@ -39,9 +39,7 @@ class PaidSubscriptionUserAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['create', 'delete', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function create() { $this->parameters['data']['subscriptionID'] = $this->parameters['subscription']->subscriptionID; @@ -72,9 +70,7 @@ public function create() return $subscriptionUser; } - /** - * @inheritDoc - */ + #[\Override] public function validateCreate() { parent::validateCreate(); @@ -115,9 +111,7 @@ public function extend() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $this->revoke(); diff --git a/wcfsetup/install/files/lib/data/poll/PollAction.class.php b/wcfsetup/install/files/lib/data/poll/PollAction.class.php index 36bf34d8365..0644aa8deb7 100644 --- a/wcfsetup/install/files/lib/data/poll/PollAction.class.php +++ b/wcfsetup/install/files/lib/data/poll/PollAction.class.php @@ -40,10 +40,7 @@ class PollAction extends AbstractDatabaseObjectAction implements IGroupedUserLis */ protected $poll; - /** - * @inheritDoc - * @return Poll - */ + #[\Override] public function create() { if (!isset($this->parameters['data']['time'])) { @@ -72,9 +69,7 @@ public function create() return $poll; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -304,9 +299,7 @@ public function vote() ]; } - /** - * @inheritDoc - */ + #[\Override] public function validateGetGroupedUserList() { $this->readInteger('pollID'); @@ -393,9 +386,7 @@ private function loadRelatedObject(): void $this->poll->setRelatedObject($relatedObject); } - /** - * @inheritDoc - */ + #[\Override] public function getGroupedUserList() { // get options diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php index dbacd4dc19a..5873921c955 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php @@ -33,9 +33,7 @@ class ReactionType extends DatabaseObject implements ITitledObject */ private array $renderedIcons = []; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeAction.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeAction.class.php index f535580f3a6..ff1ee8035d0 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeAction.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeAction.class.php @@ -37,9 +37,7 @@ class ReactionTypeAction extends AbstractDatabaseObjectAction implements IToggle */ protected $requireACP = ['delete', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function create() { if (isset($this->parameters['data']['showOrder'])) { @@ -100,9 +98,7 @@ public function create() return $reactionType; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -175,9 +171,7 @@ public function update() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $returnValues = parent::delete(); @@ -203,16 +197,16 @@ public function delete() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); } /** - * @inheritDoc - * * @deprecated 6.3 use the `DisableReactionType` or `EnableReactionType` command instead. */ + #[\Override] public function toggle() { foreach ($this->getObjects() as $editor) { diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php index 8df74969f9d..257840007a3 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php @@ -21,9 +21,7 @@ class ReactionTypeCache extends SingletonFactory */ protected $reactionTypes; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->reactionTypes = ReactionTypeCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeEditor.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeEditor.class.php index 1c067097b48..114ae6e45b1 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeEditor.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeEditor.class.php @@ -24,9 +24,7 @@ class ReactionTypeEditor extends DatabaseObjectEditor implements IEditableCached */ protected static $baseClass = ReactionType::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { ReactionTypeCache::getInstance()->clearCache(); diff --git a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php index 4b57236f281..48a8f26b911 100644 --- a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php +++ b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordAction.class.php @@ -28,9 +28,7 @@ class SearchKeywordAction extends AbstractDatabaseObjectAction implements ISearc */ protected $allowGuestAccess = ['getSearchResultList']; - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { if (FORCE_LOGIN && !WCF::getUser()->userID) { @@ -40,9 +38,7 @@ public function validateGetSearchResultList() $this->readString('searchString', false, 'data'); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $list = []; diff --git a/wcfsetup/install/files/lib/data/session/Session.class.php b/wcfsetup/install/files/lib/data/session/Session.class.php index e39679fca90..d56faea8fd0 100644 --- a/wcfsetup/install/files/lib/data/session/Session.class.php +++ b/wcfsetup/install/files/lib/data/session/Session.class.php @@ -19,9 +19,7 @@ */ class Session extends ACPSession { - /** - * @inheritDoc - */ + #[\Override] public static function supportsPersistentLogins() { return true; diff --git a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php index b38022563c0..8aecb6ff559 100644 --- a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php +++ b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php @@ -42,9 +42,9 @@ class Smiley extends DatabaseObject implements ITitledObject public $smileyCodes; /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->smileyTitle); diff --git a/wcfsetup/install/files/lib/data/smiley/SmileyAction.class.php b/wcfsetup/install/files/lib/data/smiley/SmileyAction.class.php index bc8cadeec11..21d796b17d3 100644 --- a/wcfsetup/install/files/lib/data/smiley/SmileyAction.class.php +++ b/wcfsetup/install/files/lib/data/smiley/SmileyAction.class.php @@ -39,10 +39,7 @@ class SmileyAction extends AbstractDatabaseObjectAction implements ISortableActi */ protected $requireACP = ['delete', 'update', 'updatePosition']; - /** - * @inheritDoc - * @return Smiley - */ + #[\Override] public function create() { /** @var Smiley $smiley */ @@ -78,9 +75,7 @@ public function create() return $smiley; } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (empty($this->objects)) { @@ -113,9 +108,7 @@ public function update() parent::update(); } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { // validate permissions @@ -132,9 +125,7 @@ public function validateUpdatePosition() $this->readInteger('offset', true, 'data'); } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $smileyList = new SmileyList(); diff --git a/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php b/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php index 5d968630aff..e9fb40ec9ce 100644 --- a/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php +++ b/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php @@ -24,9 +24,7 @@ class SmileyEditor extends DatabaseObjectEditor implements IEditableCachedObject */ public static $baseClass = Smiley::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { SmileyCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php b/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php index f9919cc6251..dfebc8b7f5f 100644 --- a/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php +++ b/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php @@ -51,18 +51,16 @@ public function loadSmilies() } } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->smilies); } /** - * @inheritDoc * @return Smiley */ + #[\Override] #[\ReturnTypeWillChange] public function current() { @@ -77,39 +75,32 @@ public function current() * * @see \Iterator::key() */ + #[\Override] #[\ReturnTypeWillChange] public function key() { return $this->indexToObject[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->indexToObject[$this->index]); } - /** - * @inheritDoc - */ + #[\Override] public function seek($offset): void { $this->index = $offset; @@ -119,9 +110,7 @@ public function seek($offset): void } } - /** - * @inheritDoc - */ + #[\Override] public function seekTo(int $objectID) { $this->index = \array_search($objectID, $this->indexToObject); @@ -132,9 +121,9 @@ public function seekTo(int $objectID) } /** - * @inheritDoc * @return Smiley|null */ + #[\Override] public function search(int $objectID) { try { @@ -149,6 +138,7 @@ public function search(int $objectID) /** * Returns the category's name. */ + #[\Override] public function __toString(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index f9a444c0eda..b83fd83fe4d 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -88,6 +88,7 @@ class Style extends DatabaseObject implements ITitledObject /** * Returns the name of this style. */ + #[\Override] public function __toString(): string { return $this->styleName; diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 748f8bdf18b..0da0847f766 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -66,9 +66,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction */ public $styleEditor; - /** - * @inheritDoc - */ + #[\Override] public function create() { $style = parent::create(); @@ -91,9 +89,7 @@ public function create() return $style; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -633,6 +629,7 @@ public function markAsTainted(): void /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -641,6 +638,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableStyle` or `DisableStyle` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 42fc8bc3dac..641c492224b 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -57,9 +57,7 @@ final class StyleEditor extends DatabaseObjectEditor implements IEditableCachedO */ protected static $baseClass = Style::class; - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { if (isset($parameters['variablesDarkMode'])) { @@ -93,9 +91,7 @@ public function update(array $parameters = []) } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $sql = "DELETE FROM wcf1_style @@ -123,9 +119,7 @@ public function delete() $statement->execute(['wcf.style.styleDescription' . $this->styleID]); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $styleList = new StyleList(); @@ -1302,9 +1296,7 @@ public function writeStyleFile() StyleCompiler::getInstance()->compile($this->getDecoratedObject()); } - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { $variables = []; @@ -1363,9 +1355,7 @@ public static function create(array $parameters = []) return $style; } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { StyleCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/tag/Tag.class.php b/wcfsetup/install/files/lib/data/tag/Tag.class.php index 4efdd5df232..82e3047aaf1 100644 --- a/wcfsetup/install/files/lib/data/tag/Tag.class.php +++ b/wcfsetup/install/files/lib/data/tag/Tag.class.php @@ -64,9 +64,7 @@ public static function buildString(array $tags, $separator = ', ') return \implode($separator, $tags); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->name; @@ -75,6 +73,7 @@ public function getTitle(): string /** * Returns the name of this tag. */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/data/tag/TagAction.class.php b/wcfsetup/install/files/lib/data/tag/TagAction.class.php index d0b76458c60..ab569213ec9 100644 --- a/wcfsetup/install/files/lib/data/tag/TagAction.class.php +++ b/wcfsetup/install/files/lib/data/tag/TagAction.class.php @@ -44,9 +44,7 @@ class TagAction extends AbstractDatabaseObjectAction implements ISearchAction */ protected $requireACP = ['delete', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { $this->readString('searchString', false, 'data'); @@ -117,9 +115,7 @@ private function saveSynonyms(TagEditor $tagEditor): void } } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $excludedSearchValues = []; diff --git a/wcfsetup/install/files/lib/data/template/Template.class.php b/wcfsetup/install/files/lib/data/template/Template.class.php index 20f7fd14a2b..3ecab78859c 100644 --- a/wcfsetup/install/files/lib/data/template/Template.class.php +++ b/wcfsetup/install/files/lib/data/template/Template.class.php @@ -30,9 +30,6 @@ class Template extends DatabaseObject */ protected static $systemCriticalTemplates = ['headIncludeJavaScript', 'shared_wysiwyg', 'wysiwygToolbar']; - /** - * @inheritDoc - */ public function __construct($id, $row = null, ?DatabaseObject $object = null) { if ($id !== null) { diff --git a/wcfsetup/install/files/lib/data/template/TemplateAction.class.php b/wcfsetup/install/files/lib/data/template/TemplateAction.class.php index cb56c709560..14772ea1649 100644 --- a/wcfsetup/install/files/lib/data/template/TemplateAction.class.php +++ b/wcfsetup/install/files/lib/data/template/TemplateAction.class.php @@ -41,10 +41,7 @@ class TemplateAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['create', 'delete', 'update']; - /** - * @inheritDoc - * @return Template - */ + #[\Override] public function create() { /** @var Template $template */ @@ -58,9 +55,7 @@ public function create() return $template; } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $count = parent::delete(); @@ -70,9 +65,7 @@ public function delete() return $count; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); diff --git a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php index 52a5a72f008..7db1d7403ff 100644 --- a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php @@ -25,9 +25,7 @@ class TemplateEditor extends DatabaseObjectEditor */ protected static $baseClass = Template::class; - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { // obtain default values @@ -97,6 +95,7 @@ public function rename($name, $templateGroupID = 0) * * @return void */ + #[\Override] public function delete() { $this->deleteFile(); @@ -121,9 +120,7 @@ public function deleteFile() $this->deleteCompiledFiles(); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $list = new TemplateList(); diff --git a/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php b/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php index 04d37ad01b0..4ba886ed4ad 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php @@ -28,9 +28,7 @@ class TemplateGroupEditor extends DatabaseObjectEditor implements IEditableCache */ protected static $baseClass = TemplateGroup::class; - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { parent::update($parameters); @@ -60,9 +58,7 @@ public function update(array $parameters = []) } } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $list = new TemplateGroupList(); @@ -104,9 +100,7 @@ public function deleteFolder() } } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { TemplateGroupCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php b/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php index 86d8eb1f8f1..90477e825ef 100644 --- a/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php @@ -26,9 +26,9 @@ class TemplateListenerEditor extends DatabaseObjectEditor implements IEditableCa protected static $baseClass = TemplateListener::class; /** - * @inheritDoc * @since 5.2 */ + #[\Override] public static function resetCache() { TemplateListenerCodeCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php index ad04484c13e..0c5a28a4fc3 100644 --- a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php +++ b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php @@ -62,22 +62,19 @@ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteControll * * @since 5.3 */ + #[\Override] public function __toString(): string { return $this->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('Trophy', [ diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php index c262bfb93ca..3ae3bd8be2a 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php @@ -44,9 +44,7 @@ class TrophyAction extends AbstractDatabaseObjectAction implements IToggleAction */ protected $requireACP = ['toggle', 'delete']; - /** - * @inheritDoc - */ + #[\Override] public function create() { $showOrder = 0; @@ -67,9 +65,7 @@ public function create() return new Trophy($trophy->trophyID); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { // update trophy points @@ -104,9 +100,7 @@ public function delete() return $returnValues; } - /** - * @inheritDoc - */ + #[\Override] public function update() { parent::update(); @@ -127,15 +121,16 @@ public function update() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); } /** - * @inheritDoc * @deprecated 6.3 use the `EnableTrophy` or `DisableTrophy` commands instead. */ + #[\Override] public function toggle() { foreach ($this->getObjects() as $editor) { @@ -147,9 +142,7 @@ public function toggle() } } - /** - * @inheritDoc - */ + #[\Override] public function validateUpload() { WCF::getSession()->checkPermissions(['admin.trophy.canManageTrophy']); @@ -182,9 +175,7 @@ public function validateUpload() } } - /** - * @inheritDoc - */ + #[\Override] public function upload() { $fileName = WCF_DIR . 'images/trophy/tmp_' . $this->parameters['tmpHash'] . '.' . $this->parameters['file']->getFileExtension(); diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php index 23f96d7b9a5..6b052e16701 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php @@ -33,9 +33,7 @@ class TrophyCache extends SingletonFactory */ protected $categorySortedTrophies; - /** - * @inheritDoc - */ + #[\Override] public function init() { $this->trophies = TrophyCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php index c31bde5f260..988934cd174 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php @@ -62,9 +62,7 @@ public function setShowOrder($showOrder = 0) ]); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { TrophyCache::getInstance()->clearCache(); diff --git a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php index e565680a45e..5147610e3e5 100644 --- a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php +++ b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php @@ -42,9 +42,7 @@ public function isAccessible(?User $user = null) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('CategoryTrophyList', [ @@ -53,9 +51,7 @@ public function getLink(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->title); diff --git a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php index eedf086940d..0fedc985152 100644 --- a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php +++ b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php @@ -27,9 +27,7 @@ class TrophyCategoryCache extends SingletonFactory */ protected $enabledCategories = []; - /** - * @inheritDoc - */ + #[\Override] public function init() { $categoryData = CategoryCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php index 9dde307239a..7c9362ce8e4 100644 --- a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php +++ b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php @@ -56,9 +56,6 @@ class UnfurlUrl extends DatabaseObject public const THUMBNAIL_WIDTH = 800; public const THUMBNAIL_HEIGHT = 400; - /** - * @inheritDoc - */ public function __construct($id, $row = null, ?DatabaseObject $object = null) { if ($id !== null) { diff --git a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlAction.class.php b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlAction.class.php index 7c47dd54eb4..b425601e34a 100644 --- a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlAction.class.php +++ b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlAction.class.php @@ -20,9 +20,7 @@ */ class UnfurlUrlAction extends AbstractDatabaseObjectAction { - /** - * @inheritDoc - */ + #[\Override] public function create() { if (isset($this->parameters['imageData']) && !empty($this->parameters['imageData'])) { @@ -41,9 +39,7 @@ public function create() return $object; } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (isset($this->parameters['imageData']) && !empty($this->parameters['imageData'])) { diff --git a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlList.class.php b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlList.class.php index bc7e595be4b..f50ee5edb64 100644 --- a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlList.class.php +++ b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrlList.class.php @@ -17,9 +17,6 @@ */ class UnfurlUrlList extends DatabaseObjectList { - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/TeamList.class.php b/wcfsetup/install/files/lib/data/user/TeamList.class.php index 501db7f2bfe..b75da16d1a6 100644 --- a/wcfsetup/install/files/lib/data/user/TeamList.class.php +++ b/wcfsetup/install/files/lib/data/user/TeamList.class.php @@ -22,9 +22,7 @@ class TeamList extends UserProfileList */ protected $teams = []; - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { $sql = "SELECT COUNT(*) @@ -38,9 +36,7 @@ public function countObjects() return $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] public function readObjectIDs() { $this->objectIDs = []; @@ -57,9 +53,7 @@ public function readObjectIDs() $this->objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN); } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index db975acbf39..6bef9820021 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -116,9 +116,6 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl const REGISTER_ACTIVATION_USER_AND_ADMIN = self::REGISTER_ACTIVATION_USER | self::REGISTER_ACTIVATION_ADMIN; - /** - * @inheritDoc - */ public function __construct($id, $row = null, ?DatabaseObject $object = null) { if ($id !== null) { @@ -331,9 +328,7 @@ public static function getUserOptionID($name) return self::$userOptions[$name]->optionID; } - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { return $this->data[$name] ?? $this->getUserOption($name); @@ -498,22 +493,19 @@ public static function getUsers(array $userIDs) /** * Returns username. */ + #[\Override] public function __toString(): string { return $this->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public static function getDatabaseTableAlias() { return 'user_table'; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->username ?: ''; @@ -589,33 +581,25 @@ public function hasOwnerAccess() return false; } - /** - * @inheritDoc - */ + #[\Override] public function getUserID(): int { return $this->userID; } - /** - * @inheritDoc - */ + #[\Override] public function getUsername() { return $this->username; } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return $this->registrationDate; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('User', [ @@ -756,9 +740,7 @@ public function requiresMultifactor(): bool return false; } - /** - * @inheritDoc - */ + #[\Override] public function getPopoverLinkClass() { return 'userLink'; diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 136b1a97831..2e589e4017f 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -75,6 +75,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio * * @return void */ + #[\Override] public function validateCreate() { $this->readString('password', false, 'data'); @@ -123,6 +124,7 @@ protected function __validateAccessibleGroups($ignoreOwnUser = true) /** * Validates permissions and parameters. */ + #[\Override] public function validateDelete() { // read and validate user objects @@ -131,9 +133,7 @@ public function validateDelete() $this->__validateAccessibleGroups(); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { if (empty($this->objects)) { @@ -165,6 +165,7 @@ public function delete() * * @return void */ + #[\Override] public function validateUpdate() { // read objects @@ -285,9 +286,7 @@ public function unban() ); } - /** - * @inheritDoc - */ + #[\Override] public function create() { /** @var User $user */ @@ -334,9 +333,7 @@ public function create() return $user; } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (isset($this->parameters['data']) || isset($this->parameters['counters'])) { @@ -530,9 +527,7 @@ public function addToGroups() } } - /** - * @inheritDoc - */ + #[\Override] public function validateGetSearchResultList() { $this->readBoolean('includeUserGroups', false, 'data'); @@ -551,9 +546,7 @@ public function validateGetSearchResultList() } } - /** - * @inheritDoc - */ + #[\Override] public function getSearchResultList() { $searchString = $this->parameters['data']['searchString']; @@ -631,17 +624,13 @@ public function getSearchResultList() return $list; } - /** - * @inheritDoc - */ + #[\Override] public function validateUnmarkAll() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function unmarkAll() { ClipboardHandler::getInstance()->removeItems(ClipboardHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.user')); @@ -856,9 +845,7 @@ public function disable() $this->unmarkItems(); } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { if (empty($this->objectIDs)) { diff --git a/wcfsetup/install/files/lib/data/user/UserBirthdayAction.class.php b/wcfsetup/install/files/lib/data/user/UserBirthdayAction.class.php index 1bc0e109904..9cc58d74f95 100644 --- a/wcfsetup/install/files/lib/data/user/UserBirthdayAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserBirthdayAction.class.php @@ -25,9 +25,7 @@ class UserBirthdayAction extends UserProfileAction implements IGroupedUserListAc */ protected $allowGuestAccess = ['getGroupedUserList']; - /** - * @inheritDoc - */ + #[\Override] public function validateGetGroupedUserList() { $this->readString('date'); @@ -49,9 +47,7 @@ public function validateGetGroupedUserList() } } - /** - * @inheritDoc - */ + #[\Override] public function getGroupedUserList() { $year = $month = $day = 0; diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 53d8c5caf62..7b21457a7f9 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -60,9 +60,7 @@ private static function getPasswordHash( return $manager->getNameFromAlgorithm($algorithm) . ':' . $algorithm->hash($password); } - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { if ($parameters['password'] !== '') { @@ -86,9 +84,7 @@ public static function create(array $parameters = []) return $user; } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { // unmark users @@ -100,9 +96,7 @@ public static function deleteAll(array $objectIDs = []) return parent::deleteAll($objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { if (\array_key_exists('password', $parameters) && $parameters['password'] !== '') { @@ -295,9 +289,7 @@ public function addToLanguages(array $languageIDs, bool $deleteOldLanguages = tr } } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache(): void { UserStorageHandler::getInstance()->resetAll('groupIDs'); diff --git a/wcfsetup/install/files/lib/data/user/UserList.class.php b/wcfsetup/install/files/lib/data/user/UserList.class.php index ec2c2285e23..f112c57384c 100644 --- a/wcfsetup/install/files/lib/data/user/UserList.class.php +++ b/wcfsetup/install/files/lib/data/user/UserList.class.php @@ -22,9 +22,6 @@ class UserList extends DatabaseObjectList */ public $className = User::class; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index b89c515c697..a92d98bfb3d 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -128,9 +128,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject const ACCESS_NOBODY = 3; - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getDecoratedObject()->__toString(); @@ -1145,17 +1143,13 @@ public function getAnchorTag() return '' . StringUtil::encodeHTML($this->username) . ''; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); diff --git a/wcfsetup/install/files/lib/data/user/UserProfileList.class.php b/wcfsetup/install/files/lib/data/user/UserProfileList.class.php index 20d481140b7..ed6eb507cd0 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfileList.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfileList.class.php @@ -25,9 +25,6 @@ class UserProfileList extends UserList */ public $decoratorClassName = UserProfile::class; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); @@ -43,9 +40,7 @@ public function __construct() ON session.userID = user_table.userID"; } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { if ($this->objectIDs === null) { diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php index 345cec786e0..e436fcbe26e 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php @@ -21,9 +21,7 @@ */ class UserActivityEvent extends DatabaseObject { - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -36,9 +34,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); diff --git a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php index 745e5ed48ad..4bccad88d4d 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php @@ -42,9 +42,6 @@ class ViewableUserActivityEventList extends UserActivityEventList */ public $sqlOrderBy = 'user_activity_event.time DESC, user_activity_event.eventID DESC'; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); @@ -57,9 +54,7 @@ public function __construct() } } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php b/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php index 456c349e908..5a5d3770468 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php @@ -22,9 +22,7 @@ public function __construct(IUserAvatar | File $avatar) $this->avatar = $avatar; } - /** - * @inheritDoc - */ + #[\Override] public function getSafeURL(?int $size = null): string { if ($this->avatar instanceof File) { @@ -36,9 +34,7 @@ public function getSafeURL(?int $size = null): string return $this->avatar->getURL($size); } - /** - * @inheritDoc - */ + #[\Override] public function getSafeImageTag(?int $size = null): string { if ($this->avatar instanceof File) { @@ -50,9 +46,7 @@ public function getSafeImageTag(?int $size = null): string return $this->avatar->getImageTag($size); } - /** - * @inheritDoc - */ + #[\Override] public function getURL(?int $size = null) { if ($this->avatar instanceof File) { @@ -68,9 +62,7 @@ public function getURL(?int $size = null) } } - /** - * @inheritDoc - */ + #[\Override] public function getImageTag(?int $size = null, bool $lazyLoading = true) { if ($this->avatar instanceof File) { @@ -87,9 +79,7 @@ public function getImageTag(?int $size = null, bool $lazyLoading = true) } } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { if ($this->avatar instanceof File) { @@ -99,9 +89,7 @@ public function getWidth() } } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { if ($this->avatar instanceof File) { diff --git a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php index 6a399098821..5263a526759 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php @@ -68,33 +68,25 @@ public function __construct($username = '') } } - /** - * @inheritDoc - */ + #[\Override] public function getSafeURL(?int $size = null): string { return WCF::getPath() . 'images/avatars/avatar-default.png'; } - /** - * @inheritDoc - */ + #[\Override] public function getSafeImageTag(?int $size = null): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getURL(?int $size = null) { return $this->src; } - /** - * @inheritDoc - */ + #[\Override] public function getImageTag(?int $size = null) { if ($size === null) { @@ -104,17 +96,13 @@ public function getImageTag(?int $size = null) return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { return $this->size; } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { return $this->size; diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index 8417c297393..ef9366dcedc 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -80,25 +80,19 @@ public function getFilename($size = null, ?bool $forceWebP = null) ); } - /** - * @inheritDoc - */ + #[\Override] public function getURL(?int $size = null) { return WCF::getPath() . 'images/avatars/' . $this->getFilename(); } - /** - * @inheritDoc - */ + #[\Override] public function getSafeURL(?int $size = null): string { return WCF::getPath() . 'images/avatars/' . $this->getFilename(null, false); } - /** - * @inheritDoc - */ + #[\Override] public function getImageTag(?int $size = null, bool $lazyLoading = true) { return \sprintf( @@ -110,25 +104,19 @@ public function getImageTag(?int $size = null, bool $lazyLoading = true) ); } - /** - * @inheritDoc - */ + #[\Override] public function getSafeImageTag(?int $size = null): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { return $this->width; } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { return $this->height; diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php index 7f89a215e37..d6318a41444 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php @@ -25,9 +25,7 @@ class UserAvatarEditor extends DatabaseObjectEditor */ protected static $baseClass = UserAvatar::class; - /** - * @inheritDoc - */ + #[\Override] public function delete() { $sql = "DELETE FROM wcf1_user_avatar @@ -38,9 +36,7 @@ public function delete() $this->deleteFiles(); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $sql = "SELECT * diff --git a/wcfsetup/install/files/lib/data/user/cover/photo/DefaultUserCoverPhoto.class.php b/wcfsetup/install/files/lib/data/user/cover/photo/DefaultUserCoverPhoto.class.php index e63d940f7e6..aa050cf14e2 100644 --- a/wcfsetup/install/files/lib/data/user/cover/photo/DefaultUserCoverPhoto.class.php +++ b/wcfsetup/install/files/lib/data/user/cover/photo/DefaultUserCoverPhoto.class.php @@ -13,33 +13,25 @@ */ class DefaultUserCoverPhoto implements IUserCoverPhoto { - /** - * @inheritDoc - */ + #[\Override] public function delete() { /* NOP */ } - /** - * @inheritDoc - */ + #[\Override] public function getLocation(?bool $forceWebP = null): string { return StyleHandler::getInstance()->getStyle()->getCoverPhotoLocation($forceWebP); } - /** - * @inheritDoc - */ + #[\Override] public function getURL(?bool $forceWebP = null): string { return StyleHandler::getInstance()->getStyle()->getCoverPhotoUrl($forceWebP); } - /** - * @inheritDoc - */ + #[\Override] public function getFilename(?bool $forceWebP = null): string { return StyleHandler::getInstance()->getStyle()->getCoverPhoto($forceWebP); diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowAction.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowAction.class.php index 70841028cf8..40c100a0a00 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowAction.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowAction.class.php @@ -109,9 +109,7 @@ public function unfollow() ]; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { // read objects @@ -131,9 +129,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $returnValues = parent::delete(); @@ -155,9 +151,7 @@ public function delete() return $returnValues; } - /** - * @inheritDoc - */ + #[\Override] public function validateGetGroupedUserList() { $this->readInteger('pageNo'); @@ -176,9 +170,7 @@ public function validateGetGroupedUserList() } } - /** - * @inheritDoc - */ + #[\Override] public function getGroupedUserList() { // resolve page count diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowerList.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowerList.class.php index 670587b7c81..63212057bde 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowerList.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowerList.class.php @@ -40,9 +40,6 @@ class UserFollowerList extends UserFollowList */ public $sqlOrderBy = 'user_follow.time DESC'; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowingAction.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowingAction.class.php index 518ee51e208..5fb1f9f4c17 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowingAction.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowingAction.class.php @@ -22,9 +22,7 @@ class UserFollowingAction extends UserFollowAction */ protected $className = UserFollowEditor::class; - /** - * @inheritDoc - */ + #[\Override] public function validateGetGroupedUserList() { $this->readInteger('pageNo'); @@ -43,9 +41,7 @@ public function validateGetGroupedUserList() } } - /** - * @inheritDoc - */ + #[\Override] public function getGroupedUserList() { // resolve page count diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php index 8313ca906d7..143593abcfc 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowingList.class.php @@ -16,9 +16,6 @@ class UserFollowingList extends UserFollowerList */ public $useQualifiedShorthand = false; - /** - * @inheritDoc - */ public function __construct() { UserFollowList::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php index 74f1025af02..10e565ca47c 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -390,9 +390,7 @@ public function isAccessible() return self::isAccessibleGroup([$this->groupID]); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getName(); @@ -509,9 +507,7 @@ public function getGroupOption($name) return $this->groupOptions[$name] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->groupName); diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php index 6e067b5f57f..4011fdd2061 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroupAction.class.php @@ -50,10 +50,7 @@ class UserGroupAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['copy', 'create', 'delete', 'update']; - /** - * @inheritDoc - * @return UserGroup - */ + #[\Override] public function create() { /** @var UserGroup $group */ @@ -67,9 +64,7 @@ public function create() return $group; } - /** - * @inheritDoc - */ + #[\Override] public function update() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php index a2cb30115c1..7326633b605 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php @@ -29,9 +29,7 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj */ protected static $baseClass = UserGroup::class; - /** - * @inheritDoc - */ + #[\Override] public static function create(array $parameters = []) { $group = parent::create($parameters); @@ -41,9 +39,7 @@ public static function create(array $parameters = []) return $group; } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $returnValue = parent::deleteAll($objectIDs); @@ -198,9 +194,7 @@ static function ($groupID) use ($ownerGroupID) { } } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { // Clear group cache. diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php index 2b5c8be566f..d4164d45747 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php @@ -35,9 +35,7 @@ public function getConditions() ); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->title; diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentAction.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentAction.class.php index df2059dcd7c..eac23efaae8 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentAction.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentAction.class.php @@ -34,9 +34,7 @@ class UserGroupAssignmentAction extends AbstractDatabaseObjectAction implements */ protected $requireACP = ['create', 'delete', 'toggle', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function delete() { ConditionHandler::getInstance()->deleteConditions( @@ -50,6 +48,7 @@ public function delete() /** * @deprecated 6.3 */ + #[\Override] public function validateToggle() { $this->validateUpdate(); @@ -58,6 +57,7 @@ public function validateToggle() /** * @deprecated 6.3 use the `EnableUserGroupAssignment` or `DisableUserGroupAssignment` commands instead. */ + #[\Override] public function toggle() { foreach ($this->objects as $editor) { diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php index d7cb60e334b..ba29be98677 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php @@ -26,9 +26,7 @@ class UserGroupAssignmentEditor extends DatabaseObjectEditor implements IEditabl */ protected static $baseClass = UserGroupAssignment::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserGroupAssignmentCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php index f9e4cc1d5e3..b8655949367 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php @@ -24,9 +24,7 @@ class UserGroupOptionEditor extends DatabaseObjectEditor implements IEditableCac */ protected static $baseClass = UserGroupOption::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserGroupOptionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php index 3acbdfadb90..8682cff1944 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php @@ -250,9 +250,7 @@ static function (IFormDocument $document, array $parameters) { return $this->form; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { // read objects @@ -272,9 +270,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $userIDs = \array_map(function ($ignore) { diff --git a/wcfsetup/install/files/lib/data/user/ignore/ViewableUserIgnoreList.class.php b/wcfsetup/install/files/lib/data/user/ignore/ViewableUserIgnoreList.class.php index c5848178fe2..05e36ed8793 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/ViewableUserIgnoreList.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/ViewableUserIgnoreList.class.php @@ -34,9 +34,6 @@ class ViewableUserIgnoreList extends UserIgnoreList */ public $useQualifiedShorthand = false; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php index ba11cbd0405..329abbe7f2c 100644 --- a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php @@ -57,9 +57,7 @@ class UserMenuItem extends ProcessibleDatabaseObject implements ITitledObject, I */ protected $controller; - /** - * @inheritDoc - */ + #[\Override] public function getProcessor() { if (parent::getProcessor() === null) { @@ -69,9 +67,7 @@ public function getProcessor() return $this->processor; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { // external link @@ -89,9 +85,9 @@ public function getLink(): string } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->menuItem); @@ -146,6 +142,7 @@ protected function parseController() /** * Returns the menu item name. */ + #[\Override] public function __toString(): string { return WCF::getLanguage()->getDynamicVariable($this->menuItem); diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php index 7c9edc6041c..e922b88fbcd 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php @@ -29,9 +29,7 @@ */ class UserNotification extends DatabaseObject { - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { $value = parent::__get($name); @@ -44,9 +42,7 @@ public function __get(string $name) return $value; } - /** - * @inheritDoc - */ + #[\Override] protected function handleData($data) { parent::handleData($data); diff --git a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventAction.class.php b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventAction.class.php index eab2a0fe175..44e720029c1 100644 --- a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventAction.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventAction.class.php @@ -33,10 +33,7 @@ class UserNotificationEventAction extends AbstractDatabaseObjectAction */ protected $userNotificationEvent; - /** - * @inheritDoc - * @return UserNotificationEvent - */ + #[\Override] public function create() { /** @var UserNotificationEvent $event */ diff --git a/wcfsetup/install/files/lib/data/user/notification/event/recipient/UserNotificationEventRecipientList.class.php b/wcfsetup/install/files/lib/data/user/notification/event/recipient/UserNotificationEventRecipientList.class.php index 1e5c1e1fdd8..9971f03c6df 100644 --- a/wcfsetup/install/files/lib/data/user/notification/event/recipient/UserNotificationEventRecipientList.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/event/recipient/UserNotificationEventRecipientList.class.php @@ -13,9 +13,6 @@ */ class UserNotificationEventRecipientList extends UserList { - /** - * @inheritDoc - */ public function __construct() { $this->sqlJoins = " @@ -26,17 +23,13 @@ public function __construct() parent::__construct(); } - /** - * @inheritDoc - */ + #[\Override] public function getDatabaseTableName() { return 'wcf1_user_notification_event_to_user'; } - /** - * @inheritDoc - */ + #[\Override] public function getDatabaseTableAlias() { return 'event_to_user'; diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 0dd0f0c79e7..6e0c29b5b52 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -49,6 +49,7 @@ class UserOnline extends UserProfile * * @return string */ + #[\Override] public function getFormattedUsername() { $username = StringUtil::encodeHTML($this->username); diff --git a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php index bd573cc120c..c767e6b684b 100644 --- a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php @@ -45,9 +45,6 @@ class UsersOnlineList extends SessionList */ public $usersOnlineMarkings; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); @@ -68,9 +65,7 @@ public function __construct() $this->getConditionBuilder()->add('session.lastActivityTime > ?', [TIME_NOW - USER_ONLINE_TIMEOUT]); } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); diff --git a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php index 987fececb0c..5e3de4f560f 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php @@ -116,9 +116,7 @@ class UserOption extends Option implements ITitledObject */ public $user; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get('wcf.user.option.' . $this->optionName); @@ -135,9 +133,7 @@ public function setUser(User $user) $this->user = $user; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { if ($this->isDisabled) { diff --git a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php index aa4a0561649..37ed93e4013 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php @@ -25,10 +25,7 @@ class UserOptionEditor extends DatabaseObjectEditor implements IEditableCachedOb */ protected static $baseClass = UserOption::class; - /** - * @inheritDoc - * @return UserOption - */ + #[\Override] public static function create(array $parameters = []) { /** @var UserOption $userOption */ @@ -52,9 +49,7 @@ public static function create(array $parameters = []) return $userOption; } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { parent::update($parameters); @@ -70,9 +65,7 @@ public function update(array $parameters = []) } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { $sql = "DELETE FROM wcf1_user_option @@ -83,9 +76,7 @@ public function delete() WCF::getDB()->getEditor()->dropColumn('wcf1_user_option_value', 'userOption' . $this->optionID); } - /** - * @inheritDoc - */ + #[\Override] public static function deleteAll(array $objectIDs = []) { $returnValue = parent::deleteAll($objectIDs); @@ -181,9 +172,7 @@ public static function getColumnDefinition($optionType) return $column; } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserOptionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php index e582d79d9c3..7c9d6cea6c5 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php @@ -26,14 +26,13 @@ class UserOptionCategory extends DatabaseObject implements ITitledObject /** * Returns the title of this category. */ + #[\Override] public function __toString(): string { return $this->categoryName; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get('wcf.user.option.category.' . $this->categoryName); diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryAction.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryAction.class.php index d3b840f97d9..62b8310e6c7 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryAction.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryAction.class.php @@ -43,9 +43,7 @@ class UserOptionCategoryAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['create', 'delete', 'update']; - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php index e55194be1c4..576d1055735 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php @@ -24,10 +24,7 @@ class UserOptionCategoryEditor extends DatabaseObjectEditor implements IEditable */ protected static $baseClass = UserOptionCategory::class; - /** - * @inheritDoc - * @return UserOptionCategory - */ + #[\Override] public static function create(array $parameters = []) { // obtain default values @@ -38,9 +35,7 @@ public static function create(array $parameters = []) return parent::create($parameters); } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserOptionCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/profile/comment/ViewableUserProfileComment.class.php b/wcfsetup/install/files/lib/data/user/profile/comment/ViewableUserProfileComment.class.php index bd9abd124d8..fa276d3e9fb 100644 --- a/wcfsetup/install/files/lib/data/user/profile/comment/ViewableUserProfileComment.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/comment/ViewableUserProfileComment.class.php @@ -19,9 +19,7 @@ */ class ViewableUserProfileComment extends ViewableComment { - /** - * @inheritDoc - */ + #[\Override] public function __get(string $name) { if ($name === 'title') { diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php index f974b3ee321..c9d70d05b3d 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php @@ -81,6 +81,7 @@ public function getContentManager() return $this->contentManager; } + #[\Override] public function __toString(): string { return WCF::getLanguage()->get('wcf.user.profile.menu.' . $this->menuItem); diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemAction.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemAction.class.php index 41b2eec6116..5fa58c86836 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemAction.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemAction.class.php @@ -83,9 +83,7 @@ public function getContent() ]; } - /** - * @inheritDoc - */ + #[\Override] public function validateUpdatePosition() { WCF::getSession()->checkPermissions(['admin.user.canManageUserOption']); @@ -117,9 +115,7 @@ public function validateUpdatePosition() } } - /** - * @inheritDoc - */ + #[\Override] public function updatePosition() { $sql = "UPDATE wcf1_user_profile_menu_item diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php index 9ec7d5f20c4..5b6992245d8 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php @@ -25,10 +25,7 @@ class UserProfileMenuItemEditor extends DatabaseObjectEditor implements IEditabl */ protected static $baseClass = UserProfileMenuItem::class; - /** - * @inheritDoc - * @return UserProfileMenuItem - */ + #[\Override] public static function create(array $parameters = []) { $parameters['showOrder'] = self::getShowOrder($parameters['showOrder'] ?? 0); @@ -38,9 +35,7 @@ public static function create(array $parameters = []) return $object; } - /** - * @inheritDoc - */ + #[\Override] public function update(array $parameters = []) { if (isset($parameters['showOrder'])) { @@ -50,9 +45,7 @@ public function update(array $parameters = []) parent::update($parameters); } - /** - * @inheritDoc - */ + #[\Override] public function delete() { // update show order @@ -129,9 +122,7 @@ protected static function getShowOrder($showOrder = 0) return $showOrder; } - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserProfileMenuCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorAction.class.php b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorAction.class.php index 807f44aba38..d2aed79cb2b 100644 --- a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorAction.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorAction.class.php @@ -34,9 +34,7 @@ class UserProfileVisitorAction extends AbstractDatabaseObjectAction implements I */ public $userProfile; - /** - * @inheritDoc - */ + #[\Override] public function validateGetGroupedUserList() { $this->readInteger('pageNo'); @@ -55,9 +53,7 @@ public function validateGetGroupedUserList() } } - /** - * @inheritDoc - */ + #[\Override] public function getGroupedUserList() { // resolve page count diff --git a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorList.class.php b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorList.class.php index fa693b8152b..1345285f735 100644 --- a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorList.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorList.class.php @@ -32,9 +32,6 @@ class UserProfileVisitorList extends DatabaseObjectList */ public $sqlOrderBy = 'user_profile_visitor.time DESC'; - /** - * @inheritDoc - */ public function __construct() { parent::__construct(); diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php index 784ff9958ad..31255870bad 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php @@ -48,9 +48,9 @@ public function getImage() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get($this->rankTitle); diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRankAction.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRankAction.class.php index e50ba463c41..3ef5efcd344 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRankAction.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRankAction.class.php @@ -30,9 +30,7 @@ class UserRankAction extends AbstractDatabaseObjectAction */ protected $requireACP = ['delete']; - /** - * @inheritDoc - */ + #[\Override] public function create() { /** @var UserRank $rank */ @@ -70,9 +68,7 @@ public function create() return $rank; } - /** - * @inheritDoc - */ + #[\Override] public function update() { $removedFiles = $this->parameters['rankImageFile__removedFiles'] ?? []; @@ -143,16 +139,19 @@ public function delete() /** * @return array */ + #[\Override] public function getI18nSaveTypes(): array { return ['rankTitle' => 'wcf.user.rank.userRank\d+']; } + #[\Override] public function getLanguageCategory(): string { return 'wcf.user.rank'; } + #[\Override] public function getPackageID(): int { return PACKAGE_ID; diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php index 4fe9a9ca6ae..ea407b2036b 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php @@ -24,9 +24,7 @@ class UserRankEditor extends DatabaseObjectEditor implements IEditableCachedObje */ protected static $baseClass = UserRank::class; - /** - * @inheritDoc - */ + #[\Override] public static function resetCache() { UserRankCacheBuilder::getInstance()->reset(); diff --git a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyAction.class.php b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyAction.class.php index 8556ba7d8a8..3551f25103e 100644 --- a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyAction.class.php +++ b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyAction.class.php @@ -44,9 +44,7 @@ class UserTrophyAction extends AbstractDatabaseObjectAction */ public $userProfile; - /** - * @inheritDoc - */ + #[\Override] public function create() { /** @var UserTrophy $userTrophy */ @@ -106,9 +104,7 @@ public function create() return $userTrophy; } - /** - * @inheritDoc - */ + #[\Override] public function validateDelete() { parent::validateDelete(); @@ -121,9 +117,7 @@ public function validateDelete() } } - /** - * @inheritDoc - */ + #[\Override] public function delete() { if (empty($this->objects)) { diff --git a/wcfsetup/install/files/lib/event/IInterruptableEvent.class.php b/wcfsetup/install/files/lib/event/IInterruptableEvent.class.php index 4478d290bf0..390f7324a46 100644 --- a/wcfsetup/install/files/lib/event/IInterruptableEvent.class.php +++ b/wcfsetup/install/files/lib/event/IInterruptableEvent.class.php @@ -24,10 +24,12 @@ interface IInterruptableEvent extends IPsr14Event, \wcf\system\event\IInterrupta * All event listeners will be invoked, even if an event listener in the middle * of the stack calls `preventDefault()`. */ + #[\Override] public function preventDefault(): void; /** * Returns whether preventDefault() was called. */ + #[\Override] public function defaultPrevented(): bool; } diff --git a/wcfsetup/install/files/lib/event/language/PreloadPhrasesCollecting.class.php b/wcfsetup/install/files/lib/event/language/PreloadPhrasesCollecting.class.php index 8cb868e0d24..817aff77d55 100644 --- a/wcfsetup/install/files/lib/event/language/PreloadPhrasesCollecting.class.php +++ b/wcfsetup/install/files/lib/event/language/PreloadPhrasesCollecting.class.php @@ -31,6 +31,7 @@ public function __construct(Language $language) * Registers the name of a phrases that should * be added to the list of preloaded values. */ + #[\Override] public function preload(string $phrase): void { $this->phrases[] = $phrase; @@ -39,6 +40,7 @@ public function preload(string $phrase): void /** * @return string[] */ + #[\Override] public function getPhrases(): array { return $this->phrases; diff --git a/wcfsetup/install/files/lib/event/moderation/queue/UserAssigned.class.php b/wcfsetup/install/files/lib/event/moderation/queue/UserAssigned.class.php index 22fc100e91a..e0223873c21 100644 --- a/wcfsetup/install/files/lib/event/moderation/queue/UserAssigned.class.php +++ b/wcfsetup/install/files/lib/event/moderation/queue/UserAssigned.class.php @@ -32,16 +32,19 @@ public function __construct( $this->oldAssigneeId = $oldAssignee?->userID; } + #[\Override] public function getModerationQueue(): ModerationQueue { return new ModerationQueue($this->moderationQueueId); } + #[\Override] public function getNewAssignee(): ?User { return $this->newAssigneeId !== null ? new User($this->newAssigneeId) : null; } + #[\Override] public function getOldAssignee(): ?User { return $this->oldAssigneeId !== null ? new User($this->oldAssigneeId) : null; diff --git a/wcfsetup/install/files/lib/event/user/authentication/UserLoggedIn.class.php b/wcfsetup/install/files/lib/event/user/authentication/UserLoggedIn.class.php index c2c0ce1013c..fdedfbb5e11 100644 --- a/wcfsetup/install/files/lib/event/user/authentication/UserLoggedIn.class.php +++ b/wcfsetup/install/files/lib/event/user/authentication/UserLoggedIn.class.php @@ -28,6 +28,7 @@ public function __construct(User $user) $this->userID = (int)$user->userID; } + #[\Override] public function getUser(): User { return UserRuntimeCache::getInstance()->getObject($this->userID); diff --git a/wcfsetup/install/files/lib/event/worker/RebuildWorkerCollecting.class.php b/wcfsetup/install/files/lib/event/worker/RebuildWorkerCollecting.class.php index 49a840a3791..dd6cff2a988 100644 --- a/wcfsetup/install/files/lib/event/worker/RebuildWorkerCollecting.class.php +++ b/wcfsetup/install/files/lib/event/worker/RebuildWorkerCollecting.class.php @@ -42,6 +42,7 @@ public function __construct() * * @param $nicevalue The worker's priority. Lower values indicate earlier execution. */ + #[\Override] public function register(string $classname, int $nicevalue): void { $this->queue->insert(new RegisteredWorker($classname), -$nicevalue); @@ -50,6 +51,7 @@ public function register(string $classname, int $nicevalue): void /** * @return iterable */ + #[\Override] public function getWorkers(): iterable { yield from clone $this->queue; diff --git a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php index cb44dee1e0b..24ed2e46047 100644 --- a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php @@ -41,9 +41,7 @@ abstract class AbstractCaptchaForm extends AbstractForm */ public $forceCaptcha = false; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -54,9 +52,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if ((!WCF::getUser()->userID || $this->forceCaptcha) && $this->useCaptcha && $this->captchaObjectTypeName) { @@ -73,9 +69,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -85,9 +79,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -97,9 +89,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/form/AbstractForm.class.php b/wcfsetup/install/files/lib/form/AbstractForm.class.php index 0a0474f0572..fa3d0e1903b 100644 --- a/wcfsetup/install/files/lib/form/AbstractForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractForm.class.php @@ -50,9 +50,7 @@ abstract class AbstractForm extends AbstractPage implements IForm */ public $additionalFields = []; - /** - * @inheritDoc - */ + #[\Override] public function submit() { // call submit event @@ -88,9 +86,7 @@ public function submit() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { // call readFormParameters event @@ -101,9 +97,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // call validate event @@ -126,9 +120,7 @@ protected function validateSecurityToken() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { // call save event @@ -146,9 +138,7 @@ protected function saved() EventHandler::getInstance()->fireAction($this, 'saved'); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (!empty($_POST) || !empty($_FILES)) { @@ -158,9 +148,7 @@ public function readData() parent::readData(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php index 88aee079e95..a001b098a09 100644 --- a/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractFormBuilderForm.class.php @@ -78,9 +78,7 @@ abstract class AbstractFormBuilderForm extends AbstractForm */ public $objectEditLinkApplication = 'wcf'; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -142,9 +140,7 @@ protected function finalizeForm() // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if ($this->formObject !== null) { @@ -158,9 +154,7 @@ public function readData() $this->setFormAction(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -168,9 +162,7 @@ public function readFormParameters() $this->form->readValues(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -209,9 +201,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function saved() { parent::saved(); @@ -259,9 +249,7 @@ protected function setFormObjectData() $this->form->updatedObject($this->formObject, empty($_POST)); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { parent::checkPermissions(); @@ -269,9 +257,7 @@ public function checkPermissions() $this->buildForm(); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -283,9 +269,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateSecurityToken() { // does nothing, is handled by `IFormDocument` object diff --git a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php index fe234be12b6..276b983075a 100644 --- a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php @@ -79,9 +79,7 @@ abstract class AbstractModerationForm extends AbstractForm */ public $commentList; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -111,9 +109,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -141,9 +137,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php index fd9fcd92e05..f87978abd92 100644 --- a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php +++ b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php @@ -125,9 +125,7 @@ class AccountManagementForm extends AbstractForm */ public $googleDisconnect = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -135,9 +133,7 @@ public function readParameters() $this->quitStarted = WCF::getUser()->quitStarted; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -196,9 +192,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -276,9 +270,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -290,9 +282,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -318,9 +308,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab @@ -329,9 +317,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/form/ArticleAddForm.class.php index 70fdb441a49..97d79acb855 100644 --- a/wcfsetup/install/files/lib/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/form/ArticleAddForm.class.php @@ -17,9 +17,7 @@ */ class ArticleAddForm extends \wcf\acp\form\ArticleAddForm { - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/form/EmailActivationForm.class.php b/wcfsetup/install/files/lib/form/EmailActivationForm.class.php index a12b92ba806..c870105a024 100644 --- a/wcfsetup/install/files/lib/form/EmailActivationForm.class.php +++ b/wcfsetup/install/files/lib/form/EmailActivationForm.class.php @@ -29,9 +29,7 @@ final class EmailActivationForm extends AbstractFormBuilderForm { public User $user; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -106,9 +104,7 @@ private function validateActivationCode(IntegerFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (!((int)REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER)) { @@ -124,9 +120,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/form/EmailNewActivationCodeForm.class.php b/wcfsetup/install/files/lib/form/EmailNewActivationCodeForm.class.php index da238f94554..7e4d54f5316 100644 --- a/wcfsetup/install/files/lib/form/EmailNewActivationCodeForm.class.php +++ b/wcfsetup/install/files/lib/form/EmailNewActivationCodeForm.class.php @@ -34,9 +34,7 @@ final class EmailNewActivationCodeForm extends AbstractFormBuilderForm { public User $user; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -114,9 +112,7 @@ private function validatePassword(PasswordFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -172,9 +168,7 @@ private function forwardToIndexPage(): void exit; } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (!((int)REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER)) { diff --git a/wcfsetup/install/files/lib/form/LostPasswordForm.class.php b/wcfsetup/install/files/lib/form/LostPasswordForm.class.php index fd40d21a624..ab1cffcdc28 100644 --- a/wcfsetup/install/files/lib/form/LostPasswordForm.class.php +++ b/wcfsetup/install/files/lib/form/LostPasswordForm.class.php @@ -51,9 +51,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -110,9 +108,7 @@ private function validateUsername(TextFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $requests = FloodControl::getInstance()->countContent( @@ -128,9 +124,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/form/MessageForm.class.php b/wcfsetup/install/files/lib/form/MessageForm.class.php index e9b5f02696e..5976c0a9d5b 100644 --- a/wcfsetup/install/files/lib/form/MessageForm.class.php +++ b/wcfsetup/install/files/lib/form/MessageForm.class.php @@ -125,9 +125,7 @@ abstract class MessageForm extends AbstractCaptchaForm */ public $tmpHash = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -157,9 +155,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -177,9 +173,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // subject @@ -282,9 +276,7 @@ protected function validateContentLanguage() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -292,9 +284,7 @@ public function save() $this->text = $this->htmlInputProcessor->getHtml(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { // get attachments @@ -332,9 +322,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/ModerationActivationForm.class.php b/wcfsetup/install/files/lib/form/ModerationActivationForm.class.php index d621c35004e..e9eb8259486 100644 --- a/wcfsetup/install/files/lib/form/ModerationActivationForm.class.php +++ b/wcfsetup/install/files/lib/form/ModerationActivationForm.class.php @@ -17,9 +17,7 @@ */ class ModerationActivationForm extends AbstractModerationForm { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -30,9 +28,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/ModerationReportForm.class.php b/wcfsetup/install/files/lib/form/ModerationReportForm.class.php index 8ea8287334b..c8c3818610e 100644 --- a/wcfsetup/install/files/lib/form/ModerationReportForm.class.php +++ b/wcfsetup/install/files/lib/form/ModerationReportForm.class.php @@ -20,9 +20,7 @@ */ class ModerationReportForm extends AbstractModerationForm { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -33,9 +31,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php index a8ea15a1d0e..8f4b572b9ea 100644 --- a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php @@ -61,9 +61,7 @@ class MultifactorAuthenticationForm extends AbstractFormBuilderForm */ private $setup; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -110,9 +108,7 @@ public function readParameters() $this->processor = $this->method->getProcessor(); } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -120,6 +116,7 @@ protected function createForm() $this->processor->createAuthenticationForm($this->form, $this->setup); } + #[\Override] public function save() { AbstractForm::save(); @@ -140,9 +137,7 @@ public function save() $this->saved(); } - /** - * @inheritDoc - */ + #[\Override] public function saved() { AbstractForm::saved(); @@ -162,9 +157,7 @@ protected function performRedirect() exit; } - /** - * @inheritDoc - */ + #[\Override] protected function setFormAction() { $this->form->action(LinkHandler::getInstance()->getControllerLink(static::class, [ @@ -172,9 +165,7 @@ protected function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php b/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php index 7212e5d9622..799c824a5bf 100644 --- a/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorDisableForm.class.php @@ -53,9 +53,7 @@ class MultifactorDisableForm extends AbstractFormBuilderForm */ private $setups; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -79,9 +77,7 @@ public function readParameters() \assert($this->method->getDefinition()->definitionName === 'com.woltlab.wcf.multifactor'); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { parent::checkPermissions(); @@ -96,9 +92,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -146,9 +140,7 @@ protected function createForm() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -180,9 +172,7 @@ public function save() $this->saved(); } - /** - * @inheritDoc - */ + #[\Override] public function saved() { AbstractForm::saved(); @@ -245,9 +235,7 @@ protected function disableMultifactorAuth(): void ]); } - /** - * @inheritDoc - */ + #[\Override] protected function setFormAction() { $this->form->action(LinkHandler::getInstance()->getControllerLink(static::class, [ @@ -255,9 +243,7 @@ protected function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -268,9 +254,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { UserMenu::getInstance()->setActiveMenuItem('wcf.user.menu.profile.security'); diff --git a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php index 9cd0dda4182..0ab6ac124a1 100644 --- a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php @@ -72,9 +72,7 @@ class MultifactorManageForm extends AbstractFormBuilderForm */ private $backupForm; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -97,9 +95,7 @@ public function readParameters() $this->setup = Setup::find($this->method, WCF::getUser()); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { parent::checkPermissions(); @@ -114,9 +110,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -124,9 +118,7 @@ protected function createForm() $this->processor->createManagementForm($this->form, $this->setup, $this->returnData); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -304,9 +296,7 @@ protected function sendEmail(): void } } - /** - * @inheritDoc - */ + #[\Override] public function saved() { AbstractForm::saved(); @@ -317,9 +307,7 @@ public function saved() $this->form->showSuccessMessage(true); } - /** - * @inheritDoc - */ + #[\Override] protected function setFormAction() { $this->form->action(LinkHandler::getInstance()->getControllerLink(static::class, [ @@ -327,9 +315,7 @@ protected function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -340,9 +326,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { UserMenu::getInstance()->setActiveMenuItem('wcf.user.menu.profile.security'); diff --git a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php index 5dbc780d8e4..7280424b019 100644 --- a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php +++ b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php @@ -36,9 +36,7 @@ final class NewPasswordForm extends AbstractFormBuilderForm public string $lostPasswordKey; public User $user; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -86,9 +84,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { // We have to create the form manually here to avoid the form getting the ID 'newPassword'. @@ -134,9 +130,7 @@ private function validatePassword(PasswordFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -146,9 +140,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php b/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php index 77fc35cfcbd..6e64745aa54 100644 --- a/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php @@ -41,9 +41,7 @@ class NotificationSettingsForm extends AbstractForm */ protected static $validMailNotificationTypes = ['none', 'instant', 'daily']; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -64,9 +62,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -76,9 +72,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -117,9 +111,7 @@ public function validate() unset($settings); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -149,9 +141,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -179,9 +169,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab @@ -190,9 +178,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php b/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php index 3536fccd27c..9e9c21cce8d 100644 --- a/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php +++ b/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php @@ -45,15 +45,14 @@ class NotificationUnsubscribeForm extends AbstractForm /** * Disable security token validation. */ + #[\Override] protected function validateSecurityToken() { // Do not validate the security token, the request is authenticated by // the mail token. } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -87,9 +86,7 @@ public function readParameters() $this->isOneClick = (isset($_POST['List-Unsubscribe']) && $_POST['List-Unsubscribe'] === 'One-Click'); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -136,9 +133,7 @@ public function save() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php index 215c3dcf9ed..91ebcec8f19 100644 --- a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php @@ -37,9 +37,7 @@ class ReauthenticationForm extends AbstractFormBuilderForm */ public $redirectUrl; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -59,9 +57,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -76,9 +72,7 @@ protected function createForm() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -88,9 +82,7 @@ public function save() $this->saved(); } - /** - * @inheritDoc - */ + #[\Override] public function saved() { AbstractForm::saved(); @@ -120,9 +112,7 @@ protected function getRedirectResponse(): ResponseInterface return new RedirectResponse($this->redirectUrl); } - /** - * @inheritDoc - */ + #[\Override] protected function setFormAction() { $this->form->action(LinkHandler::getInstance()->getControllerLink(static::class, [ @@ -130,9 +120,7 @@ protected function setFormAction() ])); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php b/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php index 9261224871c..538f6571029 100644 --- a/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterActivationForm.class.php @@ -30,9 +30,7 @@ final class RegisterActivationForm extends AbstractFormBuilderForm { public User $user; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -107,9 +105,7 @@ private function validateActivationCode(TextFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (!((int)REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER)) { @@ -130,9 +126,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 1a945a2e950..5301b5d2e17 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -113,9 +113,7 @@ class RegisterForm extends UserAddForm */ private RegistrationSpamChecking $spamCheckEvent; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -141,9 +139,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -188,18 +184,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { $this->optionHandler->setInRegistration(); parent::initOptionHandler(); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // validate captcha first @@ -231,9 +223,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if ($this->useCaptcha && $this->captchaObjectTypeName) { @@ -279,14 +269,13 @@ public function readData() /** * Reads option tree on page init. */ + #[\Override] protected function readOptionTree() { $this->optionTree = $this->optionHandler->getOptionTree('profile'); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -302,9 +291,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { AbstractForm::show(); @@ -324,9 +311,7 @@ protected function validateCaptcha() } } - /** - * @inheritDoc - */ + #[\Override] protected function validateUsername($username) { parent::validateUsername($username); @@ -362,9 +347,7 @@ protected function validateEmail(string $email): void } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); diff --git a/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php b/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php index b187644c63c..f92852e37cb 100644 --- a/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php @@ -33,9 +33,7 @@ final class RegisterNewActivationCodeForm extends AbstractFormBuilderForm { public User $user; - /** - * @inheritDoc - */ + #[\Override] protected function createForm() { parent::createForm(); @@ -147,9 +145,7 @@ private function validateEmail(EmailFormField $formField): void } } - /** - * @inheritDoc - */ + #[\Override] public function save() { AbstractForm::save(); @@ -204,9 +200,7 @@ private function forwardToIndexPage(): void exit; } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (!((int)REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER)) { diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index 9d3d62363dd..034685555df 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -138,9 +138,7 @@ class SearchForm extends AbstractCaptchaForm */ public $userIDs = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -244,9 +242,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -266,9 +262,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -358,9 +352,7 @@ public function throwNoMatchesException() } } - /** - * @inheritDoc - */ + #[\Override] public function submit() { try { @@ -370,9 +362,7 @@ public function submit() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -445,9 +435,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -477,9 +465,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { if (\count($_POST) == 1 && $this->submit) { @@ -568,9 +554,7 @@ public function getUserIDs() return $this->userIDs; } - /** - * @inheritDoc - */ + #[\Override] public function __run() { throw new IllegalLinkException(); diff --git a/wcfsetup/install/files/lib/form/SettingsForm.class.php b/wcfsetup/install/files/lib/form/SettingsForm.class.php index d86c53b9c96..bb51d64ef29 100644 --- a/wcfsetup/install/files/lib/form/SettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/SettingsForm.class.php @@ -104,9 +104,7 @@ class SettingsForm extends AbstractForm public string $colorScheme = 'system'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -141,9 +139,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -170,9 +166,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -228,9 +222,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -254,9 +246,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -295,9 +285,7 @@ public function save() WCF::getTPL()->assign('success', true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -332,9 +320,7 @@ public function assignVariables() } } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab diff --git a/wcfsetup/install/files/lib/form/SignatureEditForm.class.php b/wcfsetup/install/files/lib/form/SignatureEditForm.class.php index 9c77c4115c3..b182e1c5b73 100644 --- a/wcfsetup/install/files/lib/form/SignatureEditForm.class.php +++ b/wcfsetup/install/files/lib/form/SignatureEditForm.class.php @@ -66,9 +66,7 @@ class SignatureEditForm extends MessageForm */ public $neededPermissions = ['user.signature.canEditSignature']; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -78,9 +76,7 @@ public function readParameters() $this->attachmentObjectID = WCF::getUser()->userID; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (WCF::getUser()->disableSignature) { @@ -97,9 +93,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -112,9 +106,7 @@ public function readData() $this->signatureCache = SignatureCache::getInstance()->getSignature(WCF::getUser()); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -124,9 +116,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab @@ -135,9 +125,7 @@ public function show() parent::show(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); diff --git a/wcfsetup/install/files/lib/form/TagSearchForm.class.php b/wcfsetup/install/files/lib/form/TagSearchForm.class.php index 1e3d6a1db8c..7b13b7dda1b 100644 --- a/wcfsetup/install/files/lib/form/TagSearchForm.class.php +++ b/wcfsetup/install/files/lib/form/TagSearchForm.class.php @@ -58,9 +58,7 @@ class TagSearchForm extends AbstractCaptchaForm */ public $tags; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -68,9 +66,7 @@ public function readParameters() $this->availableContentLanguages = LanguageFactory::getInstance()->getContentLanguages(); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -83,9 +79,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -117,9 +111,7 @@ static function (Tag $tag) { } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { if (empty($_POST)) { @@ -131,9 +123,7 @@ public function readData() $this->tagCloud = new TagCloud(); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -153,9 +143,7 @@ public function save() ); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/form/UserSearchForm.class.php index 705d2603696..366a10363fb 100644 --- a/wcfsetup/install/files/lib/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/form/UserSearchForm.class.php @@ -66,9 +66,7 @@ class UserSearchForm extends UserOptionListForm */ public $optionTree = []; - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -78,18 +76,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initOptionHandler() { $this->optionHandler->enableSearchMode(); $this->optionHandler->init(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -112,9 +106,7 @@ protected function readOptionTree() $this->optionTree = $this->optionHandler->getOptionTree(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -125,9 +117,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function save() { parent::save(); @@ -151,9 +141,7 @@ public function save() exit; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { AbstractForm::validate(); diff --git a/wcfsetup/install/files/lib/http/Pipeline.class.php b/wcfsetup/install/files/lib/http/Pipeline.class.php index 71e80201e85..892de425419 100644 --- a/wcfsetup/install/files/lib/http/Pipeline.class.php +++ b/wcfsetup/install/files/lib/http/Pipeline.class.php @@ -32,9 +32,6 @@ public function __construct(array $middlewares) $this->middlewares = $middlewares; } - /** - * @inheritDoc - */ #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { diff --git a/wcfsetup/install/files/lib/http/RequestHandlerMiddleware.class.php b/wcfsetup/install/files/lib/http/RequestHandlerMiddleware.class.php index 5fa22a9de6b..ba340952959 100644 --- a/wcfsetup/install/files/lib/http/RequestHandlerMiddleware.class.php +++ b/wcfsetup/install/files/lib/http/RequestHandlerMiddleware.class.php @@ -28,9 +28,6 @@ public function __construct(MiddlewareInterface $middleware, RequestHandlerInter $this->handler = $handler; } - /** - * @inheritDoc - */ #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/wcfsetup/install/files/lib/http/SapiStreamEmitter.class.php b/wcfsetup/install/files/lib/http/SapiStreamEmitter.class.php index 407dd87f3c2..ecd68a967af 100644 --- a/wcfsetup/install/files/lib/http/SapiStreamEmitter.class.php +++ b/wcfsetup/install/files/lib/http/SapiStreamEmitter.class.php @@ -32,6 +32,7 @@ public function __construct( * Emits the status line and headers via the header() function, and the * body content via the output buffer. */ + #[\Override] public function emit(ResponseInterface $response): bool { $this->assertNoPreviousOutput(); diff --git a/wcfsetup/install/files/lib/http/StaticResponseHandler.class.php b/wcfsetup/install/files/lib/http/StaticResponseHandler.class.php index 2363a01d86d..f45b7c4c775 100644 --- a/wcfsetup/install/files/lib/http/StaticResponseHandler.class.php +++ b/wcfsetup/install/files/lib/http/StaticResponseHandler.class.php @@ -21,9 +21,6 @@ public function __construct( ) { } - /** - * @inheritDoc - */ #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { diff --git a/wcfsetup/install/files/lib/http/error/NotFoundHandler.class.php b/wcfsetup/install/files/lib/http/error/NotFoundHandler.class.php index 6f2bae3a144..f68824b6498 100644 --- a/wcfsetup/install/files/lib/http/error/NotFoundHandler.class.php +++ b/wcfsetup/install/files/lib/http/error/NotFoundHandler.class.php @@ -26,6 +26,7 @@ final class NotFoundHandler implements RequestHandlerInterface { private const STATUS_CODE = 404; + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $errorDetail = ErrorDetail::fromRequest($request); diff --git a/wcfsetup/install/files/lib/http/error/OfflineHandler.class.php b/wcfsetup/install/files/lib/http/error/OfflineHandler.class.php index d66c7d17bc5..b858e064095 100644 --- a/wcfsetup/install/files/lib/http/error/OfflineHandler.class.php +++ b/wcfsetup/install/files/lib/http/error/OfflineHandler.class.php @@ -25,6 +25,7 @@ final class OfflineHandler implements RequestHandlerInterface { private const STATUS_CODE = 503; + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { BoxHandler::disablePageLayout(); diff --git a/wcfsetup/install/files/lib/http/error/OperationNotPermittedHandler.class.php b/wcfsetup/install/files/lib/http/error/OperationNotPermittedHandler.class.php index a9bc11d19b6..29dbbb67500 100644 --- a/wcfsetup/install/files/lib/http/error/OperationNotPermittedHandler.class.php +++ b/wcfsetup/install/files/lib/http/error/OperationNotPermittedHandler.class.php @@ -27,6 +27,7 @@ final class OperationNotPermittedHandler implements RequestHandlerInterface { private const STATUS_CODE = 403; + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $errorDetail = ErrorDetail::fromRequest($request); diff --git a/wcfsetup/install/files/lib/http/error/PermissionDeniedHandler.class.php b/wcfsetup/install/files/lib/http/error/PermissionDeniedHandler.class.php index b392e9f0abc..6a9912343aa 100644 --- a/wcfsetup/install/files/lib/http/error/PermissionDeniedHandler.class.php +++ b/wcfsetup/install/files/lib/http/error/PermissionDeniedHandler.class.php @@ -27,6 +27,7 @@ final class PermissionDeniedHandler implements RequestHandlerInterface { private const STATUS_CODE = 403; + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $errorDetail = ErrorDetail::fromRequest($request); diff --git a/wcfsetup/install/files/lib/http/error/XsrfValidationFailedHandler.class.php b/wcfsetup/install/files/lib/http/error/XsrfValidationFailedHandler.class.php index 8b7687e3555..6a99251dcf1 100644 --- a/wcfsetup/install/files/lib/http/error/XsrfValidationFailedHandler.class.php +++ b/wcfsetup/install/files/lib/http/error/XsrfValidationFailedHandler.class.php @@ -26,6 +26,7 @@ final class XsrfValidationFailedHandler implements RequestHandlerInterface { private const STATUS_CODE = 400; + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { $errorDetail = ErrorDetail::fromRequest($request); diff --git a/wcfsetup/install/files/lib/http/middleware/AddAcpSecurityHeaders.class.php b/wcfsetup/install/files/lib/http/middleware/AddAcpSecurityHeaders.class.php index 088992ce3c3..603ac1fa48e 100644 --- a/wcfsetup/install/files/lib/http/middleware/AddAcpSecurityHeaders.class.php +++ b/wcfsetup/install/files/lib/http/middleware/AddAcpSecurityHeaders.class.php @@ -19,9 +19,7 @@ */ final class AddAcpSecurityHeaders implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (!RequestHandler::getInstance()->isACPRequest()) { diff --git a/wcfsetup/install/files/lib/http/middleware/CheckForEnterpriseNonOwnerAccess.class.php b/wcfsetup/install/files/lib/http/middleware/CheckForEnterpriseNonOwnerAccess.class.php index 64b1318f051..eccc93e7071 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckForEnterpriseNonOwnerAccess.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckForEnterpriseNonOwnerAccess.class.php @@ -20,9 +20,7 @@ */ final class CheckForEnterpriseNonOwnerAccess implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $requestHandler = RequestHandler::getInstance(); diff --git a/wcfsetup/install/files/lib/http/middleware/CheckForExpiredAppEvaluation.class.php b/wcfsetup/install/files/lib/http/middleware/CheckForExpiredAppEvaluation.class.php index 3fe9847d7b4..5237d519511 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckForExpiredAppEvaluation.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckForExpiredAppEvaluation.class.php @@ -22,9 +22,7 @@ */ final class CheckForExpiredAppEvaluation implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { [$abbreviation] = \explode('\\', RequestHandler::getInstance()->getActiveRequest()->getClassName(), 2); diff --git a/wcfsetup/install/files/lib/http/middleware/CheckForForceLogin.class.php b/wcfsetup/install/files/lib/http/middleware/CheckForForceLogin.class.php index d9fd0da3581..9df052258b6 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckForForceLogin.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckForForceLogin.class.php @@ -47,9 +47,7 @@ final class CheckForForceLogin implements MiddlewareInterface \wcf\page\DisclaimerPage::class, ]; - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ( diff --git a/wcfsetup/install/files/lib/http/middleware/CheckForMultifactorRequirement.class.php b/wcfsetup/install/files/lib/http/middleware/CheckForMultifactorRequirement.class.php index 6243dc2bb26..24ed21e8a00 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckForMultifactorRequirement.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckForMultifactorRequirement.class.php @@ -29,9 +29,7 @@ final class CheckForMultifactorRequirement implements MiddlewareInterface MultifactorManageForm::class, ]; - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ( diff --git a/wcfsetup/install/files/lib/http/middleware/CheckForOfflineMode.class.php b/wcfsetup/install/files/lib/http/middleware/CheckForOfflineMode.class.php index 305ed5dc851..36de9f360e1 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckForOfflineMode.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckForOfflineMode.class.php @@ -20,9 +20,7 @@ */ final class CheckForOfflineMode implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ( diff --git a/wcfsetup/install/files/lib/http/middleware/CheckHttpMethod.class.php b/wcfsetup/install/files/lib/http/middleware/CheckHttpMethod.class.php index 9dc75fc81d7..5c3d0b57b6c 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckHttpMethod.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckHttpMethod.class.php @@ -33,9 +33,7 @@ public function __construct() $this->requestHandler = RequestHandler::getInstance(); } - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (\in_array($request->getMethod(), self::ALWAYS_ACCEPTABLE, true)) { diff --git a/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php b/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php index 4adf3747804..84cd630e5b0 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php @@ -21,9 +21,7 @@ */ final class CheckSystemEnvironment implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { // @phpstan-ignore smallerOrEqual.alwaysTrue, smallerOrEqual.alwaysTrue, booleanAnd.alwaysTrue diff --git a/wcfsetup/install/files/lib/http/middleware/CheckUserBan.class.php b/wcfsetup/install/files/lib/http/middleware/CheckUserBan.class.php index 4bdc0cbad10..0ef91823c89 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckUserBan.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckUserBan.class.php @@ -23,9 +23,7 @@ */ final class CheckUserBan implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $user = WCF::getUser(); diff --git a/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php b/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php index 84878145cbc..8f61a9b7c74 100644 --- a/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php +++ b/wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php @@ -45,9 +45,7 @@ final class EnforceAcpAuthentication implements MiddlewareInterface MediaPage::class, ]; - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (!RequestHandler::getInstance()->isACPRequest()) { diff --git a/wcfsetup/install/files/lib/http/middleware/EnforceCacheControlPrivate.class.php b/wcfsetup/install/files/lib/http/middleware/EnforceCacheControlPrivate.class.php index 86b452c8c3b..8d2052d1b1d 100644 --- a/wcfsetup/install/files/lib/http/middleware/EnforceCacheControlPrivate.class.php +++ b/wcfsetup/install/files/lib/http/middleware/EnforceCacheControlPrivate.class.php @@ -19,9 +19,7 @@ */ final class EnforceCacheControlPrivate implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); diff --git a/wcfsetup/install/files/lib/http/middleware/EnforceFrameOptions.class.php b/wcfsetup/install/files/lib/http/middleware/EnforceFrameOptions.class.php index 722a118e388..007dbaf5250 100644 --- a/wcfsetup/install/files/lib/http/middleware/EnforceFrameOptions.class.php +++ b/wcfsetup/install/files/lib/http/middleware/EnforceFrameOptions.class.php @@ -18,9 +18,7 @@ */ final class EnforceFrameOptions implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { // Also set the headers using the regular `\header()` call, because we might receive a diff --git a/wcfsetup/install/files/lib/http/middleware/EnforceNoCacheForTemporaryRedirects.class.php b/wcfsetup/install/files/lib/http/middleware/EnforceNoCacheForTemporaryRedirects.class.php index fa51bc2f8ad..8bf3eb9cb28 100644 --- a/wcfsetup/install/files/lib/http/middleware/EnforceNoCacheForTemporaryRedirects.class.php +++ b/wcfsetup/install/files/lib/http/middleware/EnforceNoCacheForTemporaryRedirects.class.php @@ -28,9 +28,7 @@ final class EnforceNoCacheForTemporaryRedirects implements MiddlewareInterface 307, // Temporary Redirect ]; - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); diff --git a/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php b/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php index 4d9ae309fcb..393d4753cfd 100644 --- a/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php +++ b/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php @@ -26,9 +26,7 @@ */ final class HandleAccessToken implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (!$this->handleAccessToken($request->getQueryParams()['at'] ?? '')) { diff --git a/wcfsetup/install/files/lib/http/middleware/HandleExceptions.class.php b/wcfsetup/install/files/lib/http/middleware/HandleExceptions.class.php index 67bb579ecb0..64f38ea1213 100644 --- a/wcfsetup/install/files/lib/http/middleware/HandleExceptions.class.php +++ b/wcfsetup/install/files/lib/http/middleware/HandleExceptions.class.php @@ -27,9 +27,7 @@ */ final class HandleExceptions implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { try { diff --git a/wcfsetup/install/files/lib/http/middleware/HandleStartupErrors.class.php b/wcfsetup/install/files/lib/http/middleware/HandleStartupErrors.class.php index 446aa7873af..c8a6a2e4c82 100644 --- a/wcfsetup/install/files/lib/http/middleware/HandleStartupErrors.class.php +++ b/wcfsetup/install/files/lib/http/middleware/HandleStartupErrors.class.php @@ -19,9 +19,7 @@ */ final class HandleStartupErrors implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (\defined('WCF_STARTUP_ERROR')) { diff --git a/wcfsetup/install/files/lib/http/middleware/HandleValinorMappingErrors.class.php b/wcfsetup/install/files/lib/http/middleware/HandleValinorMappingErrors.class.php index 1e8a3ec1865..5ee0a741494 100644 --- a/wcfsetup/install/files/lib/http/middleware/HandleValinorMappingErrors.class.php +++ b/wcfsetup/install/files/lib/http/middleware/HandleValinorMappingErrors.class.php @@ -26,9 +26,7 @@ */ final class HandleValinorMappingErrors implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { try { diff --git a/wcfsetup/install/files/lib/http/middleware/JsonBody.class.php b/wcfsetup/install/files/lib/http/middleware/JsonBody.class.php index f1cc8282f9b..149d53c4098 100644 --- a/wcfsetup/install/files/lib/http/middleware/JsonBody.class.php +++ b/wcfsetup/install/files/lib/http/middleware/JsonBody.class.php @@ -21,9 +21,7 @@ final class JsonBody implements MiddlewareInterface { public const HAS_VALID_JSON_ATTRIBUTE = self::class . "\0hasValidJson"; - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $hasValidJson = false; diff --git a/wcfsetup/install/files/lib/http/middleware/PreventMimeSniffing.class.php b/wcfsetup/install/files/lib/http/middleware/PreventMimeSniffing.class.php index 1594316b618..404bf4bc9b6 100644 --- a/wcfsetup/install/files/lib/http/middleware/PreventMimeSniffing.class.php +++ b/wcfsetup/install/files/lib/http/middleware/PreventMimeSniffing.class.php @@ -18,9 +18,7 @@ */ final class PreventMimeSniffing implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { // Also set the headers using the regular `\header()` call, because we might receive a diff --git a/wcfsetup/install/files/lib/http/middleware/TriggerBackgroundQueue.class.php b/wcfsetup/install/files/lib/http/middleware/TriggerBackgroundQueue.class.php index 12c28a91788..14759f7bf5b 100644 --- a/wcfsetup/install/files/lib/http/middleware/TriggerBackgroundQueue.class.php +++ b/wcfsetup/install/files/lib/http/middleware/TriggerBackgroundQueue.class.php @@ -31,9 +31,7 @@ public function __construct() $this->requestHandler = RequestHandler::getInstance(); } - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if ($this->requestHandler->isACPRequest()) { diff --git a/wcfsetup/install/files/lib/http/middleware/VaryAcceptLanguage.class.php b/wcfsetup/install/files/lib/http/middleware/VaryAcceptLanguage.class.php index ca5dea6b2ce..5cdd96cbe3c 100644 --- a/wcfsetup/install/files/lib/http/middleware/VaryAcceptLanguage.class.php +++ b/wcfsetup/install/files/lib/http/middleware/VaryAcceptLanguage.class.php @@ -19,9 +19,7 @@ */ final class VaryAcceptLanguage implements MiddlewareInterface { - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { // Do not set the header with a regular `\header()` call, because: diff --git a/wcfsetup/install/files/lib/http/middleware/Xsrf.class.php b/wcfsetup/install/files/lib/http/middleware/Xsrf.class.php index d14a144a415..a6264370361 100644 --- a/wcfsetup/install/files/lib/http/middleware/Xsrf.class.php +++ b/wcfsetup/install/files/lib/http/middleware/Xsrf.class.php @@ -33,9 +33,7 @@ public function __construct() $this->requestHandler = RequestHandler::getInstance(); } - /** - * @inheritDoc - */ + #[\Override] public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $xsrfToken = WCF::getSession()->getSecurityToken(); diff --git a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php index 302155a6532..8fea02dcee5 100644 --- a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php @@ -72,9 +72,7 @@ abstract class AbstractArticlePage extends AbstractPage public RelatedArticleListView $relatedArticleListView; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -111,9 +109,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -199,9 +195,7 @@ protected function filterEmbeddedAttachments(): void } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/AbstractAuthedPage.class.php b/wcfsetup/install/files/lib/page/AbstractAuthedPage.class.php index 46a8e4438d2..6f0aa38b974 100644 --- a/wcfsetup/install/files/lib/page/AbstractAuthedPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractAuthedPage.class.php @@ -25,9 +25,7 @@ abstract class AbstractAuthedPage extends AbstractPage */ public const AVAILABLE_DURING_OFFLINE_MODE = \FORCE_LOGIN; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php index 052821e3021..40087df8596 100644 --- a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php @@ -53,9 +53,7 @@ abstract class AbstractFeedPage extends AbstractAuthedPage */ public $title = ''; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -67,9 +65,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -85,9 +81,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function show() { parent::show(); diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index d5ecc2a8b47..d1ec4baa61b 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -101,16 +101,11 @@ abstract class AbstractPage implements IPage */ private $psr7Response; - /** - * @inheritDoc - */ final public function __construct() { } - /** - * @inheritDoc - */ + #[\Override] public function __run() { $this->maybeSetPsr7Response( @@ -128,9 +123,7 @@ public function __run() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { // call readParameters event @@ -142,9 +135,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { // call readData event @@ -181,9 +172,7 @@ private function addPageDescriptionMetaTag(): void } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { // call assignVariables event @@ -198,9 +187,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function checkModules() { // call checkModules event @@ -214,9 +201,7 @@ public function checkModules() } } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { // call checkPermissions event @@ -238,9 +223,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] public function show() { // check if active user is logged in diff --git a/wcfsetup/install/files/lib/page/AbstractSecurePage.class.php b/wcfsetup/install/files/lib/page/AbstractSecurePage.class.php index 0986d714f1b..ac8eb4ce786 100644 --- a/wcfsetup/install/files/lib/page/AbstractSecurePage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractSecurePage.class.php @@ -10,9 +10,7 @@ */ abstract class AbstractSecurePage extends AbstractPage { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php b/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php index f1e1822783d..07bce2979e5 100644 --- a/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php +++ b/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php @@ -40,9 +40,7 @@ class AccountSecurityPage extends AbstractPage */ private $enabledMultifactorMethods; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -68,9 +66,7 @@ public function readData() }); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -83,9 +79,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab diff --git a/wcfsetup/install/files/lib/page/ArticleAmpPage.class.php b/wcfsetup/install/files/lib/page/ArticleAmpPage.class.php index ad5cf34076d..ade0c87ff4d 100644 --- a/wcfsetup/install/files/lib/page/ArticleAmpPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleAmpPage.class.php @@ -17,9 +17,7 @@ */ class ArticleAmpPage extends AbstractArticlePage { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php b/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php index 180c699c303..de856199cff 100644 --- a/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php @@ -33,9 +33,7 @@ class ArticleFeedPage extends AbstractFeedPage */ public $categoryID = 0; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -54,9 +52,7 @@ public function readParameters() $this->redirectToNewPage(ArticleRssFeedPage::class); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -75,9 +71,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/ArticlePage.class.php b/wcfsetup/install/files/lib/page/ArticlePage.class.php index 569a8c97d42..a5db64a167f 100644 --- a/wcfsetup/install/files/lib/page/ArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/ArticlePage.class.php @@ -54,9 +54,7 @@ class ArticlePage extends AbstractArticlePage */ public $commentList; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -64,9 +62,7 @@ public function readParameters() $this->canonicalURL = $this->articleContent->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -180,9 +176,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/AttachmentPage.class.php b/wcfsetup/install/files/lib/page/AttachmentPage.class.php index e92c9670b39..5ccae0b5b7e 100644 --- a/wcfsetup/install/files/lib/page/AttachmentPage.class.php +++ b/wcfsetup/install/files/lib/page/AttachmentPage.class.php @@ -83,9 +83,7 @@ class AttachmentPage extends AbstractPage */ public $controllerName = 'Attachment'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -111,9 +109,7 @@ public function readParameters() $this->canonicalURL = LinkHandler::getInstance()->getLink($this->controllerName, $parameters); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { parent::checkPermissions(); @@ -134,9 +130,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -211,9 +205,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function show() { parent::show(); diff --git a/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php b/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php index 6451eb0cf7e..06468e2e3ee 100644 --- a/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php +++ b/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php @@ -31,9 +31,7 @@ class CategoryTrophyListPage extends TrophyListPage */ public $category; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -57,9 +55,7 @@ public function readParameters() ], ($this->pageNo > 1 ? 'pageNo=' . $this->pageNo : '')); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { MultipleLinkPage::initObjectList(); @@ -73,9 +69,7 @@ protected function initObjectList() $this->objectList->getConditionBuilder()->add('categoryID = ?', [$this->categoryID]); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/CmsPage.class.php b/wcfsetup/install/files/lib/page/CmsPage.class.php index 48db550f864..3d64e813d59 100644 --- a/wcfsetup/install/files/lib/page/CmsPage.class.php +++ b/wcfsetup/install/files/lib/page/CmsPage.class.php @@ -42,10 +42,7 @@ class CmsPage extends AbstractPage */ public $pageID; - /** - * @inheritDoc - * @throws IllegalLinkException - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -90,9 +87,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -116,9 +111,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/CombinedTaggedPage.class.php b/wcfsetup/install/files/lib/page/CombinedTaggedPage.class.php index 303f6924569..104b3812ea1 100644 --- a/wcfsetup/install/files/lib/page/CombinedTaggedPage.class.php +++ b/wcfsetup/install/files/lib/page/CombinedTaggedPage.class.php @@ -78,9 +78,7 @@ class CombinedTaggedPage extends MultipleLinkPage */ public $itemsPerType = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -147,17 +145,13 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { $this->objectList = $this->processor->getObjectListFor($this->tags); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -165,9 +159,7 @@ public function readData() $this->tagCloud = new TypedTagCloud($this->objectType->objectType); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/ContactAttachmentPage.class.php b/wcfsetup/install/files/lib/page/ContactAttachmentPage.class.php index bad98cca722..4536463d71d 100644 --- a/wcfsetup/install/files/lib/page/ContactAttachmentPage.class.php +++ b/wcfsetup/install/files/lib/page/ContactAttachmentPage.class.php @@ -31,9 +31,7 @@ class ContactAttachmentPage extends AttachmentPage */ public $controllerName = 'ContactAttachment'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -45,9 +43,7 @@ public function readParameters() $this->contactAttachment = new ContactAttachment($this->attachment->attachmentID); } - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { AbstractPage::checkPermissions(); diff --git a/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php b/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php index 81c400cdb98..873abe9e7a5 100644 --- a/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php +++ b/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php @@ -48,9 +48,7 @@ class DeletedContentListPage extends MultipleLinkPage */ private array $providers = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -93,17 +91,13 @@ private function loadProviders(): void $this->providers = $event->getProviders(); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { $this->objectList = $this->objectType->getProcessor()->getObjectList(); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/DisclaimerPage.class.php b/wcfsetup/install/files/lib/page/DisclaimerPage.class.php index 02d86dec282..aa8d00dd206 100644 --- a/wcfsetup/install/files/lib/page/DisclaimerPage.class.php +++ b/wcfsetup/install/files/lib/page/DisclaimerPage.class.php @@ -23,9 +23,7 @@ final class DisclaimerPage extends AbstractPage */ public $neededModules = ['REGISTER_ENABLE_DISCLAIMER']; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); diff --git a/wcfsetup/install/files/lib/page/FollowingPage.class.php b/wcfsetup/install/files/lib/page/FollowingPage.class.php index 6a6ea323156..645408177c1 100644 --- a/wcfsetup/install/files/lib/page/FollowingPage.class.php +++ b/wcfsetup/install/files/lib/page/FollowingPage.class.php @@ -32,9 +32,7 @@ class FollowingPage extends MultipleLinkPage */ public $sqlOrderBy = 'user_follow.time DESC'; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -42,9 +40,7 @@ protected function initObjectList() $this->objectList->getConditionBuilder()->add("user_follow.userID = ?", [WCF::getUser()->userID]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab diff --git a/wcfsetup/install/files/lib/page/IgnoredUsersPage.class.php b/wcfsetup/install/files/lib/page/IgnoredUsersPage.class.php index 3f187d80154..7576856e735 100644 --- a/wcfsetup/install/files/lib/page/IgnoredUsersPage.class.php +++ b/wcfsetup/install/files/lib/page/IgnoredUsersPage.class.php @@ -32,9 +32,7 @@ class IgnoredUsersPage extends MultipleLinkPage */ public $sqlOrderBy = 'user_ignore.time DESC'; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -42,9 +40,7 @@ protected function initObjectList() $this->objectList->getConditionBuilder()->add("user_ignore.userID = ?", [WCF::getUser()->userID]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab diff --git a/wcfsetup/install/files/lib/page/MediaPage.class.php b/wcfsetup/install/files/lib/page/MediaPage.class.php index a2cf6a7324f..7dce616a77d 100644 --- a/wcfsetup/install/files/lib/page/MediaPage.class.php +++ b/wcfsetup/install/files/lib/page/MediaPage.class.php @@ -71,9 +71,7 @@ class MediaPage extends AbstractPage 'image/webp', ]; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -111,9 +109,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -145,9 +141,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function show() { parent::show(); diff --git a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php index 868842e0961..e5365f68a91 100644 --- a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php +++ b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php @@ -97,9 +97,7 @@ abstract class MultipleLinkPage extends AbstractPage */ public $sqlOrderBy = ''; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -110,9 +108,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -244,9 +240,7 @@ public function isLastPage() return $this->items == $this->endIndex; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/NotificationFeedPage.class.php b/wcfsetup/install/files/lib/page/NotificationFeedPage.class.php index 5329542551a..97108ebd836 100644 --- a/wcfsetup/install/files/lib/page/NotificationFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/NotificationFeedPage.class.php @@ -19,9 +19,7 @@ */ class NotificationFeedPage extends AbstractFeedPage { - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -35,9 +33,7 @@ public function readParameters() $this->redirectToNewPage(NotificationRssFeedPage::class); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); diff --git a/wcfsetup/install/files/lib/page/NotificationListPage.class.php b/wcfsetup/install/files/lib/page/NotificationListPage.class.php index 4db784ad2d6..23cd0ee2154 100644 --- a/wcfsetup/install/files/lib/page/NotificationListPage.class.php +++ b/wcfsetup/install/files/lib/page/NotificationListPage.class.php @@ -29,27 +29,19 @@ class NotificationListPage extends MultipleLinkPage */ public $notifications = []; - /** - * @inheritDoc - */ + #[\Override] public function countItems() { return UserNotificationHandler::getInstance()->countAllNotifications(); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() {} - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() {} - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -61,9 +53,7 @@ public function readData() ); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/PaidSubscriptionListPage.class.php b/wcfsetup/install/files/lib/page/PaidSubscriptionListPage.class.php index 92860dde725..3e6963d5607 100644 --- a/wcfsetup/install/files/lib/page/PaidSubscriptionListPage.class.php +++ b/wcfsetup/install/files/lib/page/PaidSubscriptionListPage.class.php @@ -45,9 +45,7 @@ class PaidSubscriptionListPage extends AbstractPage */ public $userSubscriptionList; - /** - * @inheritDoc - */ + #[\Override] public function checkPermissions() { parent::checkPermissions(); @@ -57,9 +55,7 @@ public function checkPermissions() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -92,9 +88,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -105,9 +99,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // set active tab diff --git a/wcfsetup/install/files/lib/page/PaidSubscriptionReturnPage.class.php b/wcfsetup/install/files/lib/page/PaidSubscriptionReturnPage.class.php index 69118093852..002cf5ee4f0 100644 --- a/wcfsetup/install/files/lib/page/PaidSubscriptionReturnPage.class.php +++ b/wcfsetup/install/files/lib/page/PaidSubscriptionReturnPage.class.php @@ -19,9 +19,7 @@ class PaidSubscriptionReturnPage extends AbstractPage */ public $templateName = 'redirect'; - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/RecentActivityListPage.class.php b/wcfsetup/install/files/lib/page/RecentActivityListPage.class.php index c52e1caf3d6..b07113a68e6 100644 --- a/wcfsetup/install/files/lib/page/RecentActivityListPage.class.php +++ b/wcfsetup/install/files/lib/page/RecentActivityListPage.class.php @@ -25,9 +25,7 @@ class RecentActivityListPage extends AbstractPage */ public $eventList; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -35,9 +33,7 @@ public function readParameters() $this->canonicalURL = LinkHandler::getInstance()->getLink('RecentActivityList'); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -62,9 +58,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/SearchPage.class.php b/wcfsetup/install/files/lib/page/SearchPage.class.php index f1596b237d1..2261fa1bd2b 100644 --- a/wcfsetup/install/files/lib/page/SearchPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchPage.class.php @@ -21,9 +21,7 @@ final class SearchPage extends AbstractPage */ public $extended = false; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -33,9 +31,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/SearchResultPage.class.php b/wcfsetup/install/files/lib/page/SearchResultPage.class.php index d1abb98b968..23786b7de96 100644 --- a/wcfsetup/install/files/lib/page/SearchResultPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchResultPage.class.php @@ -74,9 +74,7 @@ class SearchResultPage extends MultipleLinkPage */ public $resultListApplication = 'wcf'; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -118,9 +116,7 @@ protected function redirectOrReject() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -189,9 +185,7 @@ protected function readMessages() } } - /** - * @inheritDoc - */ + #[\Override] public function countItems() { // call countItems event @@ -200,19 +194,13 @@ public function countItems() return \count($this->searchData['results']); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() {} - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() {} - /** - * @inheritDoc - */ + #[\Override] public function __run() { throw new IllegalLinkException(); diff --git a/wcfsetup/install/files/lib/page/SortablePage.class.php b/wcfsetup/install/files/lib/page/SortablePage.class.php index eb35d102d07..0e20c13b4ec 100644 --- a/wcfsetup/install/files/lib/page/SortablePage.class.php +++ b/wcfsetup/install/files/lib/page/SortablePage.class.php @@ -37,9 +37,7 @@ abstract class SortablePage extends MultipleLinkPage */ public $validSortFields = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -53,9 +51,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $this->validateSortOrder(); @@ -99,9 +95,7 @@ public function validateSortOrder() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/TaggedPage.class.php b/wcfsetup/install/files/lib/page/TaggedPage.class.php index 9be54b5e0a4..18e4c8027da 100644 --- a/wcfsetup/install/files/lib/page/TaggedPage.class.php +++ b/wcfsetup/install/files/lib/page/TaggedPage.class.php @@ -73,9 +73,7 @@ class TaggedPage extends MultipleLinkPage */ public $itemsPerType = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -133,17 +131,13 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { $this->objectList = $this->objectType->getProcessor()->getObjectList($this->tag); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -151,9 +145,7 @@ public function readData() $this->tagCloud = new TypedTagCloud($this->objectType->objectType); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/TrophyListPage.class.php b/wcfsetup/install/files/lib/page/TrophyListPage.class.php index e9fdfd7427b..d96e14f23a7 100644 --- a/wcfsetup/install/files/lib/page/TrophyListPage.class.php +++ b/wcfsetup/install/files/lib/page/TrophyListPage.class.php @@ -66,9 +66,7 @@ class TrophyListPage extends MultipleLinkPage */ public $category; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -84,9 +82,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -104,9 +100,7 @@ protected function initObjectList() ]); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/TrophyPage.class.php b/wcfsetup/install/files/lib/page/TrophyPage.class.php index 03ebe9e4188..6c53004b189 100644 --- a/wcfsetup/install/files/lib/page/TrophyPage.class.php +++ b/wcfsetup/install/files/lib/page/TrophyPage.class.php @@ -79,9 +79,7 @@ class TrophyPage extends MultipleLinkPage */ public $category; - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -120,9 +118,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -147,9 +143,7 @@ public function readParameters() ], ($this->pageNo > 1 ? 'pageNo=' . $this->pageNo : '')); } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { parent::readObjects(); @@ -163,9 +157,7 @@ public function readObjects() UserProfileRuntimeCache::getInstance()->cacheObjectIDs(\array_unique($userIDs)); } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -217,9 +209,7 @@ protected function initObjectList() } } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); diff --git a/wcfsetup/install/files/lib/page/UserPage.class.php b/wcfsetup/install/files/lib/page/UserPage.class.php index 4285509e3c4..cf298d63e51 100644 --- a/wcfsetup/install/files/lib/page/UserPage.class.php +++ b/wcfsetup/install/files/lib/page/UserPage.class.php @@ -79,9 +79,7 @@ class UserPage extends AbstractPage */ public $visitorList; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -105,9 +103,7 @@ public function readParameters() $this->canonicalURL = $this->user->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -168,9 +164,7 @@ public function readData() MetaTagHandler::getInstance()->addTag('og:image', 'og:image', $this->user->getAvatar()->getURL(), true); } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables() { parent::assignVariables(); @@ -194,9 +188,7 @@ public function assignVariables() ]); } - /** - * @inheritDoc - */ + #[\Override] public function show() { // update profile hits diff --git a/wcfsetup/install/files/lib/page/UsersOnlineListPage.class.php b/wcfsetup/install/files/lib/page/UsersOnlineListPage.class.php index 60c84257e61..a070c2840fd 100644 --- a/wcfsetup/install/files/lib/page/UsersOnlineListPage.class.php +++ b/wcfsetup/install/files/lib/page/UsersOnlineListPage.class.php @@ -57,9 +57,7 @@ class UsersOnlineListPage extends SortablePage */ public $locations = []; - /** - * @inheritDoc - */ + #[\Override] public function readParameters() { parent::readParameters(); @@ -80,9 +78,7 @@ public function readParameters() } } - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -104,9 +100,7 @@ protected function initObjectList() $this->objectList->sqlSelects .= ", CASE WHEN session.spiderIdentifier IS NOT NULL THEN 1 ELSE 0 END AS userIsRobot"; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { parent::readData(); @@ -131,9 +125,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { if ($this->sqlOrderBy) { diff --git a/wcfsetup/install/files/lib/system/CLIWCF.class.php b/wcfsetup/install/files/lib/system/CLIWCF.class.php index f73497b15e5..2d60f4accbc 100644 --- a/wcfsetup/install/files/lib/system/CLIWCF.class.php +++ b/wcfsetup/install/files/lib/system/CLIWCF.class.php @@ -83,9 +83,7 @@ public function __construct() $this->initCommands(); } - /** - * @inheritDoc - */ + #[\Override] public static function destruct(): void { if (empty($_ENV['WCF_SESSION_ID'])) { diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index 68eecb6b9bb..43eae274919 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -32,9 +32,7 @@ final class MetaTagHandler extends SingletonFactory implements \Countable, \Iter */ private array $objects = []; - /** - * @inheritDoc - */ + #[\Override] protected function init(): void { // set default tags @@ -90,17 +88,13 @@ public function removeTag(string $identifier): void } } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->objects); } - /** - * @inheritDoc - */ + #[\Override] public function current(): string { $tag = $this->objects[$this->indexToObject[$this->index]]; @@ -114,30 +108,25 @@ public function current(): string * * @see \Iterator::key() */ + #[\Override] public function key(): string { return $this->indexToObject[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->indexToObject[$this->index]); diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index 782724d9ecd..38ecace0a49 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -142,9 +142,7 @@ public static function overrideDebugMode(): void self::$overrideDebugMode = true; } - /** - * @inheritDoc - */ + #[\Override] protected function initSession(): void { self::$sessionObj = SessionHandler::getInstance(); @@ -153,9 +151,7 @@ protected function initSession(): void $factory->load(); } - /** - * @inheritDoc - */ + #[\Override] protected function initTPL(): void { self::$tplObj = ACPTemplateEngine::getInstance(); @@ -163,9 +159,7 @@ protected function initTPL(): void $this->assignDefaultTemplateVariables(); } - /** - * @inheritDoc - */ + #[\Override] protected function assignDefaultTemplateVariables(): void { parent::assignDefaultTemplateVariables(); diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 97714399a5b..a314248012d 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -127,6 +127,7 @@ protected static function getLanguageSelection(): void /** * Initialises the language engine. */ + #[\Override] protected function initLanguage(): void { self::$languageObj = new SetupLanguage(self::$selectedLanguageCode); @@ -135,6 +136,7 @@ protected function initLanguage(): void /** * Initialises the template engine. */ + #[\Override] protected function initTPL(): void { self::$tplObj = SetupTemplateEngine::getInstance(); diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index d3d065e566f..22d37ddcec8 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -197,9 +197,7 @@ public function resetValues($objectTypeID) $this->__readValues[$objectTypeID] = null; } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->availableObjectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.acl'); diff --git a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php index 96d1b2f52d3..f15a95d05ec 100644 --- a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php @@ -27,9 +27,7 @@ class SimpleAclHandler extends SingletonFactory */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.acl.simple'); diff --git a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php index e12660338db..58e9f18e80f 100644 --- a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php @@ -35,16 +35,19 @@ public function hasContent(): bool return $this->getMessages() !== []; } + #[\Override] public function getTitle(): string { return WCF::getLanguage()->get('wcf.acp.dashboard.box.statusMessage'); } + #[\Override] public function getContent(): string { return WCF::getTPL()->render('wcf', 'statusMessageAcpDashboardBox', ['messages' => $this->getMessages()]); } + #[\Override] public function getName(): string { return 'com.woltlab.wcf.statusMessage'; diff --git a/wcfsetup/install/files/lib/system/ad/AdHandler.class.php b/wcfsetup/install/files/lib/system/ad/AdHandler.class.php index 0c0861431ed..9083eebe54a 100644 --- a/wcfsetup/install/files/lib/system/ad/AdHandler.class.php +++ b/wcfsetup/install/files/lib/system/ad/AdHandler.class.php @@ -145,9 +145,7 @@ public function getLocationSelection() return $selection; } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->ads = AdCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php index d6698fe5d8c..e3c18f723f1 100644 --- a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php @@ -52,9 +52,7 @@ abstract class AbstractApplication extends SingletonFactory implements IApplicat */ protected $primaryController = ''; - /** - * @inheritDoc - */ + #[\Override] final protected function init() { if (empty($this->abbreviation)) { @@ -72,33 +70,25 @@ final protected function init() $this->packageID = $application->packageID; } - /** - * @inheritDoc - */ + #[\Override] public function __run() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function isActiveApplication() { return $this->packageID == ApplicationHandler::getInstance()->getActiveApplication()->packageID; } - /** - * @inheritDoc - */ + #[\Override] public function getEvaluationEndDate() { return $this->evaluationEndDate; } - /** - * @inheritDoc - */ + #[\Override] public function getEvaluationPluginStoreID() { return $this->evaluationPluginStoreID; @@ -114,9 +104,7 @@ public function getPackage() return PackageCache::getInstance()->getPackage($this->packageID); } - /** - * @inheritDoc - */ + #[\Override] public function getPrimaryController() { return $this->primaryController; @@ -131,9 +119,7 @@ public function rebuildActiveApplication() { } - /** - * @inheritDoc - */ + #[\Override] public static function __callStatic($method, array $arguments) { return \call_user_func_array([WCF::class, $method], $arguments); diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 3835b43c9d9..5e0726d6440 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -35,6 +35,7 @@ final class ApplicationHandler extends SingletonFactory /** * Initializes cache. */ + #[\Override] protected function init() { $this->cache = (new ApplicationCache())->getCache(); diff --git a/wcfsetup/install/files/lib/system/article/discussion/CommentArticleDiscussionProvider.class.php b/wcfsetup/install/files/lib/system/article/discussion/CommentArticleDiscussionProvider.class.php index 693df553dde..02789f5a1cb 100644 --- a/wcfsetup/install/files/lib/system/article/discussion/CommentArticleDiscussionProvider.class.php +++ b/wcfsetup/install/files/lib/system/article/discussion/CommentArticleDiscussionProvider.class.php @@ -85,9 +85,7 @@ public function migrateDiscussions(ArticleContent $oldContent, ArticleContent $n ]); } - /** - * @inheritDoc - */ + #[\Override] public static function isResponsible(Article $article) { return !!$article->enableComments; diff --git a/wcfsetup/install/files/lib/system/article/discussion/VoidArticleDiscussionProvider.class.php b/wcfsetup/install/files/lib/system/article/discussion/VoidArticleDiscussionProvider.class.php index d1611d5beac..791f44e71f0 100644 --- a/wcfsetup/install/files/lib/system/article/discussion/VoidArticleDiscussionProvider.class.php +++ b/wcfsetup/install/files/lib/system/article/discussion/VoidArticleDiscussionProvider.class.php @@ -15,41 +15,31 @@ */ class VoidArticleDiscussionProvider extends AbstractArticleDiscussionProvider { - /** - * @inheritDoc - */ + #[\Override] public function getDiscussionCount() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getDiscussionCountPhrase() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getDiscussionLink() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function renderDiscussions() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public static function isResponsible(Article $article) { return true; diff --git a/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php index d43e0f8fd1b..97e2143259e 100644 --- a/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php @@ -22,41 +22,31 @@ abstract class AbstractAttachmentObjectType implements IAttachmentObjectType */ protected $cachedObjects = []; - /** - * @inheritDoc - */ + #[\Override] public function getMaxSize() { return WCF::getSession()->getPermission('user.attachment.maxSize'); } - /** - * @inheritDoc - */ + #[\Override] public function getAllowedExtensions() { return ArrayUtil::trim(\explode("\n", WCF::getSession()->getPermission('user.attachment.allowedExtensions'))); } - /** - * @inheritDoc - */ + #[\Override] public function getMaxCount() { return WCF::getSession()->getPermission('user.attachment.maxCount'); } - /** - * @inheritDoc - */ + #[\Override] public function canViewPreview(int $objectID) { return $this->canDownload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getObject(int $objectID) { return $this->cachedObjects[$objectID] ?? null; @@ -73,14 +63,10 @@ public function setCachedObjects(array $objects) } } - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs) {} - /** - * @inheritDoc - */ + #[\Override] public function setPermissions(array $attachments) { foreach ($attachments as $attachment) { diff --git a/wcfsetup/install/files/lib/system/attachment/ArticleAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/ArticleAttachmentObjectType.class.php index 4b47541a1ea..c15e630a3ad 100644 --- a/wcfsetup/install/files/lib/system/attachment/ArticleAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/ArticleAttachmentObjectType.class.php @@ -18,9 +18,7 @@ */ class ArticleAttachmentObjectType extends AbstractAttachmentObjectType { - /** - * @inheritDoc - */ + #[\Override] public function canDownload(int $objectID) { if ($objectID) { @@ -30,9 +28,7 @@ public function canDownload(int $objectID) return false; } - /** - * @inheritDoc - */ + #[\Override] public function canUpload(int $objectID, int $parentObjectID = 0) { if ($objectID) { @@ -43,17 +39,13 @@ public function canUpload(int $objectID, int $parentObjectID = 0) || WCF::getSession()->getPermission('admin.content.article.canContributeArticle'); } - /** - * @inheritDoc - */ + #[\Override] public function canDelete(int $objectID) { return $this->canUpload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs) { $articleList = new ArticleList(); diff --git a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php index 9b1bf6755f2..6056cf618b6 100644 --- a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php @@ -110,9 +110,7 @@ public function getAttachmentList() return $this->attachmentList; } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->getAttachmentList()); diff --git a/wcfsetup/install/files/lib/system/attachment/ContactAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/ContactAttachmentObjectType.class.php index a871d6df1f6..4d2b1b8a532 100644 --- a/wcfsetup/install/files/lib/system/attachment/ContactAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/ContactAttachmentObjectType.class.php @@ -20,17 +20,13 @@ */ class ContactAttachmentObjectType extends AbstractAttachmentObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getMaxSize() { return WCF::getSession()->getPermission('user.contactForm.attachment.maxSize'); } - /** - * @inheritDoc - */ + #[\Override] public function getAllowedExtensions() { return ArrayUtil::trim(\explode( @@ -39,17 +35,13 @@ public function getAllowedExtensions() )); } - /** - * @inheritDoc - */ + #[\Override] public function getMaxCount() { return WCF::getSession()->getPermission('user.contactForm.attachment.maxCount'); } - /** - * @inheritDoc - */ + #[\Override] public function canDownload(int $objectID) { if (!CONTACT_FORM_ENABLE_ATTACHMENTS) { @@ -64,17 +56,13 @@ public function canDownload(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function canViewPreview(int $objectID) { return $this->canDownload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function canUpload(int $objectID, int $parentObjectID = 0) { if (!CONTACT_FORM_ENABLE_ATTACHMENTS) { @@ -84,17 +72,13 @@ public function canUpload(int $objectID, int $parentObjectID = 0) return true; } - /** - * @inheritDoc - */ + #[\Override] public function canDelete(int $objectID) { return $this->canUpload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs) { $objectList = new ContactAttachmentList(); diff --git a/wcfsetup/install/files/lib/system/attachment/SignatureAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/SignatureAttachmentObjectType.class.php index 4833a60f26a..85f03070ccf 100644 --- a/wcfsetup/install/files/lib/system/attachment/SignatureAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/SignatureAttachmentObjectType.class.php @@ -20,9 +20,7 @@ */ class SignatureAttachmentObjectType extends AbstractAttachmentObjectType { - /** - * @inheritDoc - */ + #[\Override] public function canDownload(int $objectID) { if (!MODULE_USER_SIGNATURE) { @@ -47,17 +45,13 @@ public function canDownload(int $objectID) return $this->canAddUser(); } - /** - * @inheritDoc - */ + #[\Override] public function canViewPreview(int $objectID) { return $this->canDownload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function canUpload(int $objectID, int $parentObjectID = 0) { if (!MODULE_USER_SIGNATURE) { @@ -86,33 +80,25 @@ public function canUpload(int $objectID, int $parentObjectID = 0) return true; } - /** - * @inheritDoc - */ + #[\Override] public function canDelete(int $objectID) { return $this->canUpload($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs) { $this->setCachedObjects(UserProfileRuntimeCache::getInstance()->getObjects($objectIDs)); } - /** - * @inheritDoc - */ + #[\Override] public function getMaxSize() { return WCF::getSession()->getPermission('user.signature.attachment.maxSize'); } - /** - * @inheritDoc - */ + #[\Override] public function getAllowedExtensions() { return ArrayUtil::trim(\explode( @@ -121,17 +107,13 @@ public function getAllowedExtensions() )); } - /** - * @inheritDoc - */ + #[\Override] public function getMaxCount() { return WCF::getSession()->getPermission('user.signature.attachment.maxCount'); } - /** - * @inheritDoc - */ + #[\Override] public function setPermissions(array $attachments) { $objectIDs = []; diff --git a/wcfsetup/install/files/lib/system/background/job/DownloadGoogleFontBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/DownloadGoogleFontBackgroundJob.class.php index d602c8e592d..e115e9d255c 100644 --- a/wcfsetup/install/files/lib/system/background/job/DownloadGoogleFontBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/DownloadGoogleFontBackgroundJob.class.php @@ -32,14 +32,13 @@ public function __construct(string $family) /** * @return int every 10 minutes */ + #[\Override] public function retryAfter() { return 10 * 60; } - /** - * @inheritDoc - */ + #[\Override] public function perform() { FontManager::getInstance()->downloadFamily($this->family); diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index b80b963b642..a9d7efa26fa 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -113,17 +113,13 @@ public function updateStatus(string $status, string $message = ''): void ]))->executeAction(); } - /** - * @inheritDoc - */ + #[\Override] public function onFailure() { $this->updateStatus(EmailLogEntry::STATUS_TRANSIENT_FAILURE, $this->lastErrorMessage); } - /** - * @inheritDoc - */ + #[\Override] public function onFinalFailure() { $this->updateStatus(EmailLogEntry::STATUS_PERMANENT_FAILURE, $this->lastErrorMessage); @@ -134,6 +130,7 @@ public function onFinalFailure() * * @return int between 15 minutes and 24 hours */ + #[\Override] public function retryAfter() { $lookup = [ @@ -172,9 +169,7 @@ public function retryAfter() return $result * 60; } - /** - * @inheritDoc - */ + #[\Override] public function perform() { if (self::$transport === null) { diff --git a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php index 1c2bb8b357f..01a188bbde4 100644 --- a/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/NotificationEmailDeliveryBackgroundJob.class.php @@ -57,6 +57,7 @@ public function __construct(EmailDeliveryBackgroundJob $job, UserNotification $n /** * Pass the failure along to the inner job to benefit from the retryAfter() logic. */ + #[\Override] public function onFailure() { $this->job->fail(); @@ -65,14 +66,13 @@ public function onFailure() /** * Inherit the retryAfter logic of the inner job. */ + #[\Override] public function retryAfter() { return $this->job->retryAfter(); } - /** - * @inheritDoc - */ + #[\Override] public function perform() { // see UserNotificationHandler::fetchNotifications() diff --git a/wcfsetup/install/files/lib/system/background/job/TolerantCacheRebuildBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/TolerantCacheRebuildBackgroundJob.class.php index 5e7b31214d3..faffc41b755 100644 --- a/wcfsetup/install/files/lib/system/background/job/TolerantCacheRebuildBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/TolerantCacheRebuildBackgroundJob.class.php @@ -24,6 +24,7 @@ public function __construct( public readonly array $parameters = [] ) {} + #[\Override] public function identifier(): string { $identifier = $this->cacheClass; diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index cac22bdd4e5..873003065ea 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -42,9 +42,7 @@ public function __construct(UnfurlUrl $url) $this->urlID = $url->urlID; } - /** - * @inheritDoc - */ + #[\Override] public function retryAfter() { switch ($this->getFailures()) { @@ -62,9 +60,7 @@ public function retryAfter() return 0; } - /** - * @inheritDoc - */ + #[\Override] public function perform() { $unfurlUrl = new UnfurlUrl($this->urlID); @@ -311,9 +307,7 @@ private function save( $urlAction->executeAction(); } - /** - * @inheritDoc - */ + #[\Override] public function onFinalFailure() { $this->save(UnfurlUrl::STATUS_REJECTED); diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 9792ff6ac6a..c424eafcfe9 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -18,9 +18,7 @@ */ final class AttachmentBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $attachmentID = \intval($openingTag['attributes'][0] ?? 0); diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php index 6b10bcd0cd7..cf1584915c5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php @@ -44,9 +44,7 @@ class BBCodeHandler extends SingletonFactory */ protected $highlighterMeta; - /** - * @inheritDoc - */ + #[\Override] protected function init() { foreach (BBCodeCache::getInstance()->getBBCodes() as $bbcode) { diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php index 95aa610cb77..dd9265b62f5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php @@ -62,9 +62,7 @@ class BBCodeParser extends SingletonFactory */ protected $sourceCodeRegEx = ''; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get bbcodes diff --git a/wcfsetup/install/files/lib/system/bbcode/EmailBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/EmailBBCode.class.php index cf7f8c8a3cb..53378d423f4 100644 --- a/wcfsetup/install/files/lib/system/bbcode/EmailBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/EmailBBCode.class.php @@ -13,9 +13,7 @@ */ final class EmailBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $email = ''; diff --git a/wcfsetup/install/files/lib/system/bbcode/GroupBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/GroupBBCode.class.php index 346a86b8f15..08a5c4abdc2 100644 --- a/wcfsetup/install/files/lib/system/bbcode/GroupBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/GroupBBCode.class.php @@ -15,9 +15,7 @@ */ final class GroupBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $content = $openingTag['attributes'][0]; diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php index 0865c818ba6..08a8de6c11f 100644 --- a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php @@ -71,9 +71,7 @@ class HtmlBBCodeParser extends BBCodeParser */ protected $validBBCodePattern = '~^[a-z](?:[a-z0-9\-_]+)?$~'; - /** - * @inheritDoc - */ + #[\Override] public function parse($text) { $codeBlocks = []; @@ -236,6 +234,7 @@ protected function ignoreUnclosedTags() /** * Builds the parsed string. */ + #[\Override] public function buildParsedString() { // reset parsed text @@ -403,11 +402,11 @@ protected function compileTag(array $openingTag, $content, array $closingTag) return $this->buildOpeningTag($openingTag) . $content . $this->buildClosingTag($closingTag); } - /** - * @inheritDoc +/** * @param BBCodeTag $tag */ - protected function buildOpeningTag(array $tag) + #[\Override] +protected function buildOpeningTag(array $tag) { $name = \strtolower($tag['name']); if (!$this->isValidBBCodeName($name)) { @@ -444,9 +443,7 @@ protected function buildOpeningTag(array $tag) return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function buildClosingTag(array $tag) { $name = \strtolower($tag['name']); @@ -479,9 +476,7 @@ protected function isValidBBCodeName($name) return \preg_match($this->validBBCodePattern, $name) === 1; } - /** - * @inheritDoc - */ + #[\Override] protected function isValidTagAttribute(array $tagAttributes, BBCodeAttribute $definedTagAttribute) { // work-around for the broken `[wsm]` conversion in earlier versions diff --git a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php index 6e2bbdabc61..c48275f4cea 100644 --- a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php @@ -58,9 +58,7 @@ class KeywordHighlighter extends SingletonFactory 'va', ]; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // take keywords from request diff --git a/wcfsetup/install/files/lib/system/bbcode/MediaBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/MediaBBCode.class.php index 539d384f85c..70c4d84d98d 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MediaBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MediaBBCode.class.php @@ -14,9 +14,7 @@ */ final class MediaBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $content = StringUtil::trim($openingTag['attributes'][0]); diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index b5cc8f2764c..147d55bf4e4 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -44,9 +44,7 @@ class MessageParser extends BBCodeParser */ public $message = ''; - /** - * @inheritDoc - */ + #[\Override] protected function init() { parent::init(); @@ -81,6 +79,7 @@ protected function init() * @param bool $doKeywordHighlighting * @return string parsed message */ + #[\Override] public function parse( $text, $enableSmilies = true, @@ -233,9 +232,7 @@ protected function insertCachedCodes($text) return $text; } - /** - * @inheritDoc - */ + #[\Override] protected function isValidTagAttribute(array $tagAttributes, BBCodeAttribute $definedTagAttribute) { if (!parent::isValidTagAttribute($tagAttributes, $definedTagAttribute)) { diff --git a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php index f370bd18477..9ef777a0750 100644 --- a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php @@ -46,9 +46,7 @@ class SimpleMessageParser extends SingletonFactory */ public $message = ''; - /** - * @inheritDoc - */ + #[\Override] protected function init() { parent::init(); diff --git a/wcfsetup/install/files/lib/system/bbcode/TdBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/TdBBCode.class.php index 53b1d56ecf6..2db89b4cd9c 100644 --- a/wcfsetup/install/files/lib/system/bbcode/TdBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/TdBBCode.class.php @@ -11,9 +11,7 @@ */ final class TdBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { // ignore these tags as they occur outside of a table diff --git a/wcfsetup/install/files/lib/system/bbcode/TrBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/TrBBCode.class.php index 2bcb0f6eb8c..ada4ce546de 100644 --- a/wcfsetup/install/files/lib/system/bbcode/TrBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/TrBBCode.class.php @@ -11,9 +11,7 @@ */ final class TrBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { // ignore these tags as they occur outside of a table diff --git a/wcfsetup/install/files/lib/system/bbcode/UserBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/UserBBCode.class.php index 88065701d6c..31fe77f321b 100644 --- a/wcfsetup/install/files/lib/system/bbcode/UserBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/UserBBCode.class.php @@ -16,9 +16,7 @@ */ final class UserBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $content = $openingTag['attributes'][0]; diff --git a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteArticleBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteArticleBBCode.class.php index 34b18acde2d..cdaf7ae6ae3 100644 --- a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteArticleBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteArticleBBCode.class.php @@ -18,9 +18,7 @@ */ final class WoltLabSuiteArticleBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $articleID = 0; diff --git a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php index 05f5e91163d..72e0e35bb37 100644 --- a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php @@ -26,9 +26,7 @@ final class WoltLabSuiteMediaBBCode extends AbstractBBCode */ public static $forceFrontendLinks = false; - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $mediaID = (!empty($openingTag['attributes'][0])) ? \intval($openingTag['attributes'][0]) : 0; diff --git a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuitePageBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuitePageBBCode.class.php index 08938a582b3..0ead3ae5f13 100644 --- a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuitePageBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuitePageBBCode.class.php @@ -17,9 +17,7 @@ */ final class WoltLabSuitePageBBCode extends AbstractBBCode { - /** - * @inheritDoc - */ + #[\Override] public function getParsedTag(array $openingTag, string $content, array $closingTag, BBCodeParser $parser): string { $pageID = (!empty($openingTag['attributes'][0])) ? \intval($openingTag['attributes'][0]) : 0; diff --git a/wcfsetup/install/files/lib/system/bbcode/media/provider/TwitchBBCodeMediaProvider.class.php b/wcfsetup/install/files/lib/system/bbcode/media/provider/TwitchBBCodeMediaProvider.class.php index 11067b27895..b43a6680043 100644 --- a/wcfsetup/install/files/lib/system/bbcode/media/provider/TwitchBBCodeMediaProvider.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/media/provider/TwitchBBCodeMediaProvider.class.php @@ -20,9 +20,7 @@ class TwitchBBCodeMediaProvider implements IBBCodeMediaProvider */ private static $parent; - /** - * @inheritDoc - */ + #[\Override] public function parse(string $url, array $matches = []) { $src = ''; diff --git a/wcfsetup/install/files/lib/system/bbcode/media/provider/YouTubeBBCodeMediaProvider.class.php b/wcfsetup/install/files/lib/system/bbcode/media/provider/YouTubeBBCodeMediaProvider.class.php index c7acd0f5bb9..3a5cc0f80d4 100644 --- a/wcfsetup/install/files/lib/system/bbcode/media/provider/YouTubeBBCodeMediaProvider.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/media/provider/YouTubeBBCodeMediaProvider.class.php @@ -14,9 +14,7 @@ */ class YouTubeBBCodeMediaProvider implements IBBCodeMediaProvider { - /** - * @inheritDoc - */ + #[\Override] public function parse(string $url, array $matches = []) { $parsedUrl = Url::parse($url); diff --git a/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php b/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php index 497bd4ad351..c445bed5229 100644 --- a/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php +++ b/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php @@ -60,6 +60,7 @@ class Benchmark extends SingletonFactory /** * Creates a new Benchmark object. */ + #[\Override] protected function init() { $this->startTime = self::getMicrotime(); diff --git a/wcfsetup/install/files/lib/system/box/AbstractBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractBoxController.class.php index 3f8607ffd8c..eaf9aac1d0c 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractBoxController.class.php @@ -42,9 +42,7 @@ public function __construct() EventHandler::getInstance()->fireAction($this, '__construct'); } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { if ($this->content === null) { @@ -60,57 +58,43 @@ public function getContent() return $this->content; } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { return !empty($this->getContent()); } - /** - * @inheritDoc - */ + #[\Override] public function getImage() { return null; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function hasLink() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function getBox() { return $this->box; } - /** - * @inheritDoc - */ + #[\Override] public function setBox(Box $box) { $this->box = $box; } - /** - * @inheritDoc - */ + #[\Override] public function saveAdditionalData() { // always write additional data to make sure that the additional data of the previous box controller @@ -120,9 +104,7 @@ public function saveAdditionalData() ]))->executeAction(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle() { return null; @@ -138,9 +120,7 @@ protected function getAdditionalData() return []; } - /** - * @inheritDoc - */ + #[\Override] public static function getSupportedPositions() { if (!empty(static::$supportedPositions)) { diff --git a/wcfsetup/install/files/lib/system/box/AbstractCategoriesBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractCategoriesBoxController.class.php index 3aa22cd841e..3464090b471 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractCategoriesBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractCategoriesBoxController.class.php @@ -31,9 +31,7 @@ abstract class AbstractCategoriesBoxController extends AbstractBoxController imp protected bool $showChildCategories = false; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { $categoryTree = $this->getNodeTree(); @@ -65,9 +63,7 @@ protected function getResetFilterLink(): string return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readConditions(): void { if (!empty($_POST['showChildCategories'])) { @@ -75,32 +71,22 @@ public function readConditions(): void } } - /** - * @inheritDoc - */ - public function validateConditions(): void - { - } + #[\Override] + public function validateConditions(): void {} - /** - * @inheritDoc - */ + #[\Override] public function getConditionDefinition(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionObjectTypes(): array { return []; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionsTemplate(): string { return WCF::getTPL()->render('wcf', 'boxCategoryConditions', [ @@ -108,9 +94,7 @@ public function getConditionsTemplate(): string ]); } - /** - * @inheritDoc - */ + #[\Override] protected function getAdditionalData(): array { return [ @@ -119,9 +103,9 @@ protected function getAdditionalData(): array } /** - * @inheritDoc * @param bool $setConditionData */ + #[\Override] public function setBox(Box $box, $setConditionData = true): void { parent::setBox($box); diff --git a/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php index 5b69865d50c..23954031ea0 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php @@ -57,9 +57,6 @@ abstract class AbstractCommentListBoxController extends AbstractDatabaseObjectLi */ public $validSortFields = ['time']; - /** - * @inheritDoc - */ public function __construct() { $this->objectType = ObjectTypeCache::getInstance()->getObjectTypeByName( @@ -84,9 +81,7 @@ public function __construct() */ abstract protected function applyObjectTypeFilters(ViewableCommentList $commentList); - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { $commentList = new ViewableCommentList(); @@ -105,9 +100,7 @@ protected function getObjectList() return $commentList; } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return WCF::getTPL()->render('wcf', 'boxSidebarCommentList', [ diff --git a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php index f88d54c534b..a84bafbbbd5 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php @@ -229,9 +229,7 @@ public function getPipGuiElementData(\DOMElement $element, $saveData = false) return $data; } - /** - * @inheritDoc - */ + #[\Override] protected function getAdditionalData() { return [ @@ -241,25 +239,19 @@ protected function getAdditionalData() ]; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionDefinition() { return $this->conditionDefinition; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionObjectTypes() { return $this->conditionObjectTypes; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionsTemplate() { if ($this->defaultLimit !== null || !empty($this->validSortFields) || !empty($this->conditionObjectTypes)) { @@ -294,9 +286,7 @@ abstract protected function getObjectList(); */ abstract protected function getTemplate(); - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { EventHandler::getInstance()->fireAction($this, 'hasContent'); @@ -308,9 +298,7 @@ public function hasContent() return $this->objectList !== null && \count($this->objectList) > 0; } - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { EventHandler::getInstance()->fireAction($this, 'beforeLoadContent'); @@ -343,9 +331,7 @@ protected function loadContent() EventHandler::getInstance()->fireAction($this, 'afterLoadContent'); } - /** - * @inheritDoc - */ + #[\Override] public function readConditions() { if (isset($_POST['limit'])) { @@ -375,9 +361,7 @@ protected function readObjects() $this->objectList->readObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function saveAdditionalData() { parent::saveAdditionalData(); @@ -401,6 +385,7 @@ public function saveAdditionalData() * @param bool $setConditionData if true, the condition object types are populated with the box conditions' data * @return void */ + #[\Override] public function setBox(Box $box, $setConditionData = true) { parent::setBox($box); @@ -430,9 +415,7 @@ public function setBox(Box $box, $setConditionData = true) } } - /** - * @inheritDoc - */ + #[\Override] public function validateConditions() { if ($this->defaultLimit !== null) { diff --git a/wcfsetup/install/files/lib/system/box/ArticleCategoriesBoxController.class.php b/wcfsetup/install/files/lib/system/box/ArticleCategoriesBoxController.class.php index d3f8a4a7b2c..3be2593ea81 100644 --- a/wcfsetup/install/files/lib/system/box/ArticleCategoriesBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/ArticleCategoriesBoxController.class.php @@ -21,11 +21,13 @@ */ class ArticleCategoriesBoxController extends AbstractCategoriesBoxController { + #[\Override] protected function getNodeTree(): CategoryNodeTree { return new ArticleCategoryNodeTree('com.woltlab.wcf.article.category'); } + #[\Override] protected function getActiveCategory(): ?AbstractDecoratedCategory { $activeCategory = null; @@ -40,6 +42,7 @@ protected function getActiveCategory(): ?AbstractDecoratedCategory return $activeCategory; } + #[\Override] protected function getResetFilterLink(): string { return LinkHandler::getInstance()->getControllerLink(ArticleListPage::class); diff --git a/wcfsetup/install/files/lib/system/box/ArticleCommentListBoxController.class.php b/wcfsetup/install/files/lib/system/box/ArticleCommentListBoxController.class.php index 94d3c6a7145..0b5049631b6 100644 --- a/wcfsetup/install/files/lib/system/box/ArticleCommentListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/ArticleCommentListBoxController.class.php @@ -22,9 +22,7 @@ class ArticleCommentListBoxController extends AbstractCommentListBoxController */ protected $objectTypeName = 'com.woltlab.wcf.articleComment'; - /** - * @inheritDoc - */ + #[\Override] protected function applyObjectTypeFilters(ViewableCommentList $commentList) { $accessibleCategoryIDs = ArticleCategory::getAccessibleCategoryIDs(); diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index c4c5a87a40b..105343d840a 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -44,9 +44,7 @@ class BoxHandler extends SingletonFactory */ protected static $disablePageLayout = false; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $pageID = 0; diff --git a/wcfsetup/install/files/lib/system/box/FollowingsOnlineBoxController.class.php b/wcfsetup/install/files/lib/system/box/FollowingsOnlineBoxController.class.php index 5b9cf8675cb..bf1128b796d 100644 --- a/wcfsetup/install/files/lib/system/box/FollowingsOnlineBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/FollowingsOnlineBoxController.class.php @@ -28,9 +28,7 @@ class FollowingsOnlineBoxController extends AbstractDatabaseObjectListBoxControl */ protected static $supportedPositions = ['sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { $objectList = new UsersOnlineList(); @@ -42,17 +40,13 @@ protected function getObjectList() return $objectList; } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return WCF::getTPL()->render('wcf', 'boxFollowingsOnline', ['usersOnlineList' => $this->objectList]); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList') || empty(UserProfileHandler::getInstance()->getFollowingUsers())) { diff --git a/wcfsetup/install/files/lib/system/box/PageCommentListBoxController.class.php b/wcfsetup/install/files/lib/system/box/PageCommentListBoxController.class.php index 6c4154676a0..a3c3836a2a9 100644 --- a/wcfsetup/install/files/lib/system/box/PageCommentListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/PageCommentListBoxController.class.php @@ -23,9 +23,7 @@ class PageCommentListBoxController extends AbstractDatabaseObjectListBoxControll */ protected static $supportedPositions = ['contentTop', 'contentBottom']; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { $commentObjectTypeID = CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.page'); @@ -39,9 +37,7 @@ protected function getObjectList() ); } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return WCF::getTPL()->render('wcf', 'boxPageComments', [ @@ -54,9 +50,7 @@ protected function getTemplate() ]); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { return RequestHandler::getInstance()->getActiveRequest() && (WCF::getSession()->getPermission('user.page.canAddComment') || parent::hasContent()); diff --git a/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php b/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php index 4a7dbd3ce74..1f9ecebaa70 100644 --- a/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/PaidSubscriptionsBoxController.class.php @@ -22,25 +22,19 @@ class PaidSubscriptionsBoxController extends AbstractBoxController */ protected static $supportedPositions = ['contentTop', 'contentBottom', 'sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('PaidSubscriptionList'); } - /** - * @inheritDoc - */ + #[\Override] public function hasLink() { return true; } - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { if (MODULE_PAID_SUBSCRIPTION) { diff --git a/wcfsetup/install/files/lib/system/box/ProfileCommentListBoxController.class.php b/wcfsetup/install/files/lib/system/box/ProfileCommentListBoxController.class.php index 2c3f2aee43a..3aa915d03d9 100644 --- a/wcfsetup/install/files/lib/system/box/ProfileCommentListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/ProfileCommentListBoxController.class.php @@ -23,9 +23,7 @@ class ProfileCommentListBoxController extends AbstractCommentListBoxController */ protected $objectTypeName = 'com.woltlab.wcf.user.profileComment'; - /** - * @inheritDoc - */ + #[\Override] protected function applyObjectTypeFilters(ViewableCommentList $commentList) { $commentList->decoratorClassName = ViewableUserProfileComment::class; diff --git a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php index 6a046357f49..009311bd661 100644 --- a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php @@ -63,9 +63,6 @@ class RecentActivityListBoxController extends AbstractDatabaseObjectListBoxContr */ protected static $supportedPositions = ['contentTop', 'contentBottom', 'sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ public function __construct() { if (WCF::getUser()->userID && \count(UserProfileHandler::getInstance()->getFollowingUsers())) { @@ -79,26 +76,22 @@ public function __construct() parent::__construct(); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('RecentActivityList'); } /** - * @inheritDoc * @return ViewableUserActivityEventList */ + #[\Override] protected function getObjectList() { return new ViewableUserActivityEventList(); } - /** - * @inheritDoc - */ + #[\Override] public function getTemplate() { if ($this->getBox()->position == 'contentTop' || $this->getBox()->position == 'contentBottom') { @@ -117,17 +110,13 @@ public function getTemplate() } } - /** - * @inheritDoc - */ + #[\Override] public function hasLink() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { $hasContent = parent::hasContent(); @@ -142,9 +131,7 @@ public function hasContent() return $hasContent; } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { // apply filter diff --git a/wcfsetup/install/files/lib/system/box/RegisterButtonBoxController.class.php b/wcfsetup/install/files/lib/system/box/RegisterButtonBoxController.class.php index 5374e36ab51..b358a7e696b 100644 --- a/wcfsetup/install/files/lib/system/box/RegisterButtonBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/RegisterButtonBoxController.class.php @@ -20,9 +20,7 @@ class RegisterButtonBoxController extends AbstractBoxController */ protected static $supportedPositions = ['contentTop', 'contentBottom', 'sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { if ( diff --git a/wcfsetup/install/files/lib/system/box/SignedInAsBoxController.class.php b/wcfsetup/install/files/lib/system/box/SignedInAsBoxController.class.php index ce272351a9a..01f38dd6644 100644 --- a/wcfsetup/install/files/lib/system/box/SignedInAsBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/SignedInAsBoxController.class.php @@ -19,9 +19,7 @@ class SignedInAsBoxController extends AbstractBoxController */ protected static $supportedPositions = ['sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { if (WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php b/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php index 700e6b945f1..ed3259a433c 100644 --- a/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php @@ -22,9 +22,7 @@ class StaffOnlineListBoxController extends AbstractDatabaseObjectListBoxControll */ protected static $supportedPositions = ['sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { $objectList = new UsersOnlineList(); @@ -44,17 +42,13 @@ protected function getObjectList() return $objectList; } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return WCF::getTPL()->render('wcf', 'boxStaffOnline', ['usersOnlineList' => $this->objectList]); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { diff --git a/wcfsetup/install/files/lib/system/box/StatisticsBoxController.class.php b/wcfsetup/install/files/lib/system/box/StatisticsBoxController.class.php index 0fd0a6364c1..c02a157f6cf 100644 --- a/wcfsetup/install/files/lib/system/box/StatisticsBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/StatisticsBoxController.class.php @@ -20,9 +20,7 @@ class StatisticsBoxController extends AbstractBoxController */ protected static $supportedPositions = ['sidebarLeft', 'sidebarRight']; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { if (WCF::getSession()->getPermission('user.profile.canViewStatistics')) { diff --git a/wcfsetup/install/files/lib/system/box/TagCloudBoxController.class.php b/wcfsetup/install/files/lib/system/box/TagCloudBoxController.class.php index 0afb52711c8..a72fd35d683 100644 --- a/wcfsetup/install/files/lib/system/box/TagCloudBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/TagCloudBoxController.class.php @@ -33,9 +33,7 @@ abstract class TagCloudBoxController extends AbstractBoxController */ protected $neededPermission = ''; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { if (MODULE_TAGGING && WCF::getSession()->getPermission('user.tag.canViewTag')) { diff --git a/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php b/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php index d42ef6aca41..391a4ff3a1d 100644 --- a/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php @@ -59,25 +59,19 @@ class TodaysBirthdaysBoxController extends AbstractDatabaseObjectListBoxControll 'registrationDate', ]; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { parent::hasContent(); @@ -85,9 +79,7 @@ public function hasContent() return AbstractBoxController::hasContent(); } - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { // get current date diff --git a/wcfsetup/install/files/lib/system/box/TodaysFollowingBirthdaysBoxController.class.php b/wcfsetup/install/files/lib/system/box/TodaysFollowingBirthdaysBoxController.class.php index f54931ddf42..11316844f1d 100644 --- a/wcfsetup/install/files/lib/system/box/TodaysFollowingBirthdaysBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/TodaysFollowingBirthdaysBoxController.class.php @@ -26,9 +26,7 @@ class TodaysFollowingBirthdaysBoxController extends TodaysBirthdaysBoxController */ protected $templateName = 'boxTodaysFollowingBirthdays'; - /** - * @inheritDoc - */ + #[\Override] protected function filterUserIDs(&$userIDs) { $userIDs = \array_intersect($userIDs, UserProfileHandler::getInstance()->getFollowingUsers()); diff --git a/wcfsetup/install/files/lib/system/box/TrophyCategoriesBoxController.class.php b/wcfsetup/install/files/lib/system/box/TrophyCategoriesBoxController.class.php index d32cdb08bd6..45ef838132a 100644 --- a/wcfsetup/install/files/lib/system/box/TrophyCategoriesBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/TrophyCategoriesBoxController.class.php @@ -30,9 +30,7 @@ class TrophyCategoriesBoxController extends AbstractBoxController 'footer', ]; - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { $categories = TrophyCategoryCache::getInstance()->getEnabledCategories(); diff --git a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php index d1ed4f443f2..9fb2d03af4e 100644 --- a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php @@ -76,9 +76,6 @@ class UserListBoxController extends AbstractDatabaseObjectListBoxController 'registrationDate', ]; - /** - * @inheritDoc - */ public function __construct() { $this->cacheHandlers = [ @@ -110,9 +107,7 @@ public function __construct() parent::__construct(); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { if (MODULE_MEMBERS_LIST) { @@ -127,9 +122,7 @@ public function getLink(): string return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { // use specialized cache builders @@ -158,9 +151,7 @@ protected function getObjectList() return new UserProfileList(); } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { $templateName = 'boxUserList'; @@ -188,9 +179,7 @@ protected function getTemplate() ]); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { $hasContent = parent::hasContent(); @@ -202,17 +191,13 @@ public function hasContent() return $hasContent; } - /** - * @inheritDoc - */ + #[\Override] public function hasLink() { return MODULE_MEMBERS_LIST == 1; } - /** - * @inheritDoc - */ + #[\Override] public function readObjects() { if ($this->userIDs === null) { diff --git a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php index 6764536de14..d2beb780585 100644 --- a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php @@ -61,25 +61,19 @@ class UserOnlineListBoxController extends AbstractDatabaseObjectListBoxControlle */ public $validSortFields = ['username', 'lastActivityTime', 'requestURI']; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('UsersOnlineList'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { return new UsersOnlineList(); } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { EventHandler::getInstance()->fireAction($this, 'readObjects'); @@ -99,9 +93,7 @@ protected function readObjects() $this->objectList->readObjects(); } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { $templateName = 'boxUsersOnlineSidebar'; @@ -116,9 +108,7 @@ protected function getTemplate() ); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { @@ -131,17 +121,13 @@ public function hasContent() return $this->objectList->stats['total'] > 0; } - /** - * @inheritDoc - */ + #[\Override] public function hasLink() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle() { return $this->title; diff --git a/wcfsetup/install/files/lib/system/box/UserTrophyListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserTrophyListBoxController.class.php index f1963413bd5..e0db7a6ad60 100644 --- a/wcfsetup/install/files/lib/system/box/UserTrophyListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserTrophyListBoxController.class.php @@ -62,9 +62,7 @@ class UserTrophyListBoxController extends AbstractDatabaseObjectListBoxControlle */ protected $conditionDefinition = 'com.woltlab.wcf.box.userTrophyList.condition'; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { $list = new UserTrophyList(); @@ -137,9 +135,7 @@ protected function getObjectList() return $list; } - /** - * @inheritDoc - */ + #[\Override] public function getTemplate() { $userIDs = []; diff --git a/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php b/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php index 10bbfa7f380..3c4d6b18869 100644 --- a/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php @@ -49,17 +49,13 @@ class WhoWasOnlineBoxController extends AbstractDatabaseObjectListBoxController */ public $users = []; - /** - * @inheritDoc - */ + #[\Override] protected function getObjectList() { return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getTemplate() { return WCF::getTPL()->render('wcf', 'boxWhoWasOnline', [ @@ -68,9 +64,7 @@ protected function getTemplate() ]); } - /** - * @inheritDoc - */ + #[\Override] public function hasContent() { if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { @@ -82,9 +76,7 @@ public function hasContent() return \count($this->users) > 0; } - /** - * @inheritDoc - */ + #[\Override] protected function loadContent() { $this->readObjects(); @@ -92,9 +84,7 @@ protected function loadContent() $this->content = $this->getTemplate(); } - /** - * @inheritDoc - */ + #[\Override] protected function readObjects() { EventHandler::getInstance()->fireAction($this, 'readObjects'); diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php index 4b3db2c2e2f..5cea617df47 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php @@ -80,9 +80,7 @@ private function loadBreadcrumbs(): void } } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { if (!isset($this->items)) { @@ -92,41 +90,31 @@ public function count(): int return \count($this->items); } - /** - * @inheritDoc - */ + #[\Override] public function current(): Breadcrumb { return $this->items[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function key(): int { return $this->index; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->items[$this->index]); } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; diff --git a/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessableObjectType.class.php b/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessableObjectType.class.php index 11e241f9df7..fa4eda6d92c 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessableObjectType.class.php @@ -40,9 +40,7 @@ abstract class AbstractBulkProcessableObjectType extends AbstractObjectTypeProce */ protected $templateName = ''; - /** - * @inheritDoc - */ + #[\Override] public function getActionObjectTypeDefinition() { if (empty($this->actionObjectTypeDefinition)) { @@ -52,17 +50,13 @@ public function getActionObjectTypeDefinition() return $this->actionObjectTypeDefinition; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionHTML() { return WCF::getTPL()->render(\explode('\\', static::class)[0], $this->templateName, []); } - /** - * @inheritDoc - */ + #[\Override] public function getConditionObjectTypeDefinition() { if (empty($this->conditionObjectTypeDefinition)) { @@ -72,9 +66,7 @@ public function getConditionObjectTypeDefinition() return $this->conditionObjectTypeDefinition; } - /** - * @inheritDoc - */ + #[\Override] public function getLanguageItemPrefix() { if (empty($this->languageItemPrefix)) { diff --git a/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessingAction.class.php index 671cf89cb55..22f9654ecd8 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/AbstractBulkProcessingAction.class.php @@ -18,41 +18,31 @@ */ abstract class AbstractBulkProcessingAction extends AbstractObjectTypeProcessor implements IBulkProcessingAction { - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function reset() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/bulk/processing/TReasonedBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/TReasonedBulkProcessingAction.class.php index 5b62ac8cee9..bcf15658e1a 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/TReasonedBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/TReasonedBulkProcessingAction.class.php @@ -21,9 +21,7 @@ trait TReasonedBulkProcessingAction */ protected $reason = ''; - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'reasonedBulkProcessingAction', [ @@ -39,9 +37,7 @@ public function getHTML() */ abstract protected function getReasonFieldName(); - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->getReasonFieldName()])) { @@ -49,9 +45,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->reason = ''; diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserBulkProcessingAction.class.php index ea4d5837f74..7c10f239077 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserBulkProcessingAction.class.php @@ -21,9 +21,7 @@ */ abstract class AbstractUserBulkProcessingAction extends AbstractBulkProcessingAction { - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { return new UserList(); diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php index bf04eb3bc22..741d7d7913e 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php @@ -40,9 +40,6 @@ abstract class AbstractUserGroupsUserBulkProcessingAction extends AbstractUserBu */ public $userGroupIDs = []; - /** - * @inheritDoc - */ public function __construct(DatabaseObject $object) { parent::__construct($object); @@ -53,9 +50,7 @@ public function __construct(DatabaseObject $object) ); } - /** - * @inheritDoc - */ + #[\Override] public function executeAction(DatabaseObjectList $objectList) { $users = $this->getAccessibleUsers($objectList); @@ -79,9 +74,7 @@ public function executeAction(DatabaseObjectList $objectList) */ abstract protected function executeUserAction(UserEditor $user); - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'userGroupListUserBulkProcessing', [ @@ -91,17 +84,13 @@ public function getHTML() ]); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return !empty($this->availableUserGroups); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->inputName])) { @@ -109,17 +98,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->userGroupIDs = []; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (empty($this->userGroupIDs)) { diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/AssignToUserGroupsUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/AssignToUserGroupsUserBulkProcessingAction.class.php index 1d834cfe8cb..acedf41346c 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/AssignToUserGroupsUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/AssignToUserGroupsUserBulkProcessingAction.class.php @@ -19,9 +19,7 @@ class AssignToUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUserB */ public $inputName = 'assignToUserGroupIDs'; - /** - * @inheritDoc - */ + #[\Override] protected function executeUserAction(UserEditor $user) { $user->addToGroups($this->userGroupIDs, false, false); diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/DeleteUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/DeleteUserBulkProcessingAction.class.php index 1d577eecd71..e98a4295a2e 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/DeleteUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/DeleteUserBulkProcessingAction.class.php @@ -16,9 +16,7 @@ */ class DeleteUserBulkProcessingAction extends AbstractUserBulkProcessingAction { - /** - * @inheritDoc - */ + #[\Override] public function executeAction(DatabaseObjectList $objectList) { $users = $this->getAccessibleUsers($objectList); @@ -29,9 +27,7 @@ public function executeAction(DatabaseObjectList $objectList) } } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $userList = parent::getObjectList(); diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php index f04d8133880..b0162881607 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php @@ -40,9 +40,7 @@ class ExportMailAddressUserBulkProcessingAction extends AbstractUserBulkProcessi */ private $executed = false; - /** - * @inheritDoc - */ + #[\Override] public function executeAction(DatabaseObjectList $objectList) { $this->executed = true; @@ -72,9 +70,7 @@ public function executeAction(DatabaseObjectList $objectList) } } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'exportMailAddressUserBulkProcessing', [ @@ -84,9 +80,7 @@ public function getHTML() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $userList = parent::getObjectList(); @@ -96,9 +90,7 @@ public function getObjectList() return $userList; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['fileType']) && $_POST['fileType'] == 'xml') { @@ -112,9 +104,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { if (!$this->executed) { diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/RemoveFromUserGroupsUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/RemoveFromUserGroupsUserBulkProcessingAction.class.php index 94abbce28c8..9a3a0cb904e 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/RemoveFromUserGroupsUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/RemoveFromUserGroupsUserBulkProcessingAction.class.php @@ -20,17 +20,13 @@ class RemoveFromUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUse */ public $inputName = 'removeFromUserGroupIDs'; - /** - * @inheritDoc - */ + #[\Override] protected function executeUserAction(UserEditor $user) { $user->removeFromGroups($this->userGroupIDs); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $userList = parent::getObjectList(); diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php index 097ba282395..3709b1df658 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php @@ -41,9 +41,7 @@ class SendMailUserBulkProcessingAction extends AbstractUserBulkProcessingAction */ public $text = ''; - /** - * @inheritDoc - */ + #[\Override] public function executeAction(DatabaseObjectList $objectList) { if (\count($objectList)) { @@ -67,9 +65,7 @@ public function executeAction(DatabaseObjectList $objectList) } } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'sendMailUserBulkProcessing', [ @@ -80,9 +76,7 @@ public function getHTML() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['enableHTML'])) { @@ -96,9 +90,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (empty($this->subject)) { diff --git a/wcfsetup/install/files/lib/system/cache/builder/ACLOptionCategoryCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ACLOptionCategoryCacheBuilder.class.php index 3485634c2df..3003d40723f 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ACLOptionCategoryCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ACLOptionCategoryCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ACLOptionCategoryCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $list = new ACLOptionCategoryList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php index 93e857e1f55..d2435193e3c 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ACPMenuCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/ACPSearchProviderCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ACPSearchProviderCacheBuilder.class.php index 1a3c27febf2..72614fbe28b 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ACPSearchProviderCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ACPSearchProviderCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ACPSearchProviderCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $providerList = new ACPSearchProviderList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php index 2907fb75dd9..f500b4c75cc 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php @@ -27,9 +27,7 @@ abstract class AbstractCacheBuilder extends SingletonFactory implements ICacheBu */ protected $maxLifetime = 0; - /** - * @inheritDoc - */ + #[\Override] public function getData(array $parameters = [], string $arrayIndex = '') { $index = CacheHandler::getInstance()->getCacheIndex($parameters); @@ -56,17 +54,13 @@ public function getData(array $parameters = [], string $arrayIndex = '') return $this->cache[$index]; } - /** - * @inheritDoc - */ + #[\Override] public function getMaxLifetime() { return $this->maxLifetime; } - /** - * @inheritDoc - */ + #[\Override] public function reset(array $parameters = []) { CacheHandler::getInstance()->flush($this, $parameters); diff --git a/wcfsetup/install/files/lib/system/cache/builder/AdCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/AdCacheBuilder.class.php index f91fc51e657..d100a09796c 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AdCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AdCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class AdCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $adList = new AdList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/ArticleCategoryLabelCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ArticleCategoryLabelCacheBuilder.class.php index 670c322fc08..61aa6e91375 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ArticleCategoryLabelCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ArticleCategoryLabelCacheBuilder.class.php @@ -17,9 +17,7 @@ */ class ArticleCategoryLabelCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $conditionBuilder = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/BBCodeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/BBCodeCacheBuilder.class.php index a61283155f3..fd9c6faa177 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/BBCodeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/BBCodeCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class BBCodeCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $attributes = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/BBCodeMediaProviderCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/BBCodeMediaProviderCacheBuilder.class.php index 803bd7842a4..945043f1ee6 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/BBCodeMediaProviderCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/BBCodeMediaProviderCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class BBCodeMediaProviderCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $providerList = new BBCodeMediaProviderList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/CaptchaQuestionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/CaptchaQuestionCacheBuilder.class.php index 8a91a6f8bb3..5f20ca2b15a 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/CaptchaQuestionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/CaptchaQuestionCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class CaptchaQuestionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $questionList = new CaptchaQuestionList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php index 0188ab39f2d..f31fda74363 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/CategoryACLOptionCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class CategoryACLOptionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/ClipboardActionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ClipboardActionCacheBuilder.class.php index cb30b742e85..b96699126e8 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ClipboardActionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ClipboardActionCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ClipboardActionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $actionList = new ClipboardActionList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/ClipboardPageCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ClipboardPageCacheBuilder.class.php index 57831ccd225..f9f17b78723 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ClipboardPageCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ClipboardPageCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ClipboardPageCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $sql = "SELECT pageClassName, actionID diff --git a/wcfsetup/install/files/lib/system/cache/builder/ConditionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ConditionCacheBuilder.class.php index 3774141c66c..0a8ff077ea4 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ConditionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ConditionCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class ConditionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { if (!isset($parameters['definitionID'])) { diff --git a/wcfsetup/install/files/lib/system/cache/builder/ContactOptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ContactOptionCacheBuilder.class.php index 4e577c562b9..567446c492b 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ContactOptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ContactOptionCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class ContactOptionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $list = new ContactOptionList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/CronjobCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/CronjobCacheBuilder.class.php index b4b64749586..91d02e76b2c 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/CronjobCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/CronjobCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class CronjobCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $sql = "SELECT MIN(nextExec) AS nextExec, diff --git a/wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php index a0b9ebf0da7..693b6107b97 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/EventListenerCacheBuilder.class.php @@ -18,9 +18,7 @@ */ class EventListenerCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $actions = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php index 78ce7aed660..fb4053253b3 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php @@ -21,9 +21,7 @@ */ class LabelCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/MenuCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/MenuCacheBuilder.class.php index a6430e24597..0c31690f57a 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/MenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/MenuCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class MenuCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/NoticeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/NoticeCacheBuilder.class.php index fc0cf38f6fd..ebc1fe99420 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/NoticeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/NoticeCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class NoticeCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $noticeList = new NoticeList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php index 1a05b981d8c..20fd9aa076e 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ObjectTypeCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class ObjectTypeCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php index d0e7fdb6130..f484195a7a0 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php @@ -33,9 +33,7 @@ class OptionCacheBuilder extends AbstractCacheBuilder */ protected $application = 'wcf'; - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/PackageCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/PackageCacheBuilder.class.php index 77d050dcb21..fe9378da95b 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/PackageCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/PackageCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class PackageCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/PackageUpdateCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/PackageUpdateCacheBuilder.class.php index 803f8c97ed1..6b2bf970ad5 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/PackageUpdateCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/PackageUpdateCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class PackageUpdateCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $updates = PackageUpdateDispatcher::getInstance()->getAvailableUpdates(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/PageCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/PageCacheBuilder.class.php index c4489cacc31..38e47eda6b2 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/PageCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/PageCacheBuilder.class.php @@ -16,9 +16,7 @@ */ class PageCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/PaidSubscriptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/PaidSubscriptionCacheBuilder.class.php index 621c3e5152e..715a9f7215c 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/PaidSubscriptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/PaidSubscriptionCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class PaidSubscriptionCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $subscriptionList = new PaidSubscriptionList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/ReactionTypeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ReactionTypeCacheBuilder.class.php index fce79b4c7cf..78b54a2c211 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ReactionTypeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ReactionTypeCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class ReactionTypeCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $reactionTypeList = new ReactionTypeList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php index 2536635ff56..2f807975415 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php @@ -22,9 +22,7 @@ */ class RoutingCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/SimpleAclCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/SimpleAclCacheBuilder.class.php index 0d4a5259fae..df1685dda4b 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/SimpleAclCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/SimpleAclCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class SimpleAclCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/SmileyCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/SmileyCacheBuilder.class.php index bb0060d8c96..5196c913297 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/SmileyCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/SmileyCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class SmileyCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = ['codes' => [], 'smilies' => []]; diff --git a/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php index e50331d6c1d..61f74d041fa 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class StyleCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php index da5525759a8..aace7c2c1ab 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php @@ -39,9 +39,7 @@ class TagCloudCacheBuilder extends AbstractCacheBuilder */ protected $objectTypeIDs = []; - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $this->languageIDs = $this->parseLanguageIDs($parameters); diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateGroupCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateGroupCacheBuilder.class.php index 729d565ae6c..89c6dcec424 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TemplateGroupCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TemplateGroupCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class TemplateGroupCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $templateGroupList = new TemplateGroupList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php index 69ff8dff4f3..f10cebdd325 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCodeCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class TemplateListenerCodeCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { // get template codes for specified template diff --git a/wcfsetup/install/files/lib/system/cache/builder/TrophyCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TrophyCacheBuilder.class.php index 61687aa7b16..0915645fa5b 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TrophyCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TrophyCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class TrophyCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $trophyList = new TrophyList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupAssignmentCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupAssignmentCacheBuilder.class.php index 589b86aa876..ce95aefe8d3 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupAssignmentCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupAssignmentCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class UserGroupAssignmentCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $assignmentList = new UserGroupAssignmentList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupCacheBuilder.class.php index 9bc4c7c3509..bdbef9fc047 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class UserGroupCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = [ diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupOptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupOptionCacheBuilder.class.php index 4efc38d8a01..66c49b00fa4 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupOptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupOptionCacheBuilder.class.php @@ -23,9 +23,7 @@ class UserGroupOptionCacheBuilder extends OptionCacheBuilder */ protected $tableName = 'user_group_option'; - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = parent::rebuild($parameters); diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php index 814b903ffad..6b21a125a69 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php @@ -27,9 +27,7 @@ class UserGroupPermissionCacheBuilder extends AbstractCacheBuilder */ protected $typeObjects = []; - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $data = $excludedInTinyBuild = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserMenuCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserMenuCacheBuilder.class.php index a4919fdb318..33417320f28 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserMenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserMenuCacheBuilder.class.php @@ -15,9 +15,7 @@ */ class UserMenuCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserNotificationEventCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserNotificationEventCacheBuilder.class.php index da0973c15f5..93669036a2e 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserNotificationEventCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserNotificationEventCacheBuilder.class.php @@ -14,9 +14,7 @@ */ class UserNotificationEventCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $data = []; diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserProfileMenuCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserProfileMenuCacheBuilder.class.php index 8d92c1714d7..ecc5cf352af 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserProfileMenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserProfileMenuCacheBuilder.class.php @@ -13,9 +13,7 @@ */ class UserProfileMenuCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] protected function rebuild(array $parameters) { $itemList = new UserProfileMenuItemList(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserRankCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserRankCacheBuilder.class.php index 878a834d505..f25bc8d08e5 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserRankCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserRankCacheBuilder.class.php @@ -15,9 +15,7 @@ */ final class UserRankCacheBuilder extends AbstractCacheBuilder { - /** - * @inheritDoc - */ + #[\Override] public function rebuild(array $parameters) { $list = new UserRankList(); diff --git a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php index b5e75c00d15..15009d2f94e 100644 --- a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php @@ -14,9 +14,7 @@ */ final class DiskCacheSource implements ICacheSource { - /** - * @inheritDoc - */ + #[\Override] public function flush(string $cacheName, bool $useWildcard) { if ($useWildcard) { @@ -54,9 +52,7 @@ public function flush(string $cacheName, bool $useWildcard) } } - /** - * @inheritDoc - */ + #[\Override] public function flushAll() { $iterator = new \DirectoryIterator(WCF_DIR . 'cache/'); @@ -74,9 +70,7 @@ public function flushAll() WCF::resetZendOpcache(); } - /** - * @inheritDoc - */ + #[\Override] public function get(string $cacheName, int $maxLifetime) { $filename = $this->getFilename($cacheName); @@ -92,9 +86,7 @@ public function get(string $cacheName, int $maxLifetime) } } - /** - * @inheritDoc - */ + #[\Override] public function set(string $cacheName, mixed $value, int $maxLifetime) { $writer = new AtomicWriter($this->getFilename($cacheName)); diff --git a/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php index 2d1fc468420..051fa406e95 100644 --- a/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php @@ -36,9 +36,7 @@ public function __construct() } } - /** - * @inheritDoc - */ + #[\Override] public function flush(string $cacheName, bool $useWildcard) { $parts = \explode('-', $cacheName, 2); @@ -60,9 +58,7 @@ public function flush(string $cacheName, bool $useWildcard) } } - /** - * @inheritDoc - */ + #[\Override] public function flushAll() { // set flush key to current time if it does not exist yet @@ -73,9 +69,7 @@ public function flushAll() $this->redis->incr('cache:_flush'); } - /** - * @inheritDoc - */ + #[\Override] public function get(string $cacheName, int $maxLifetime) { $parts = \explode('-', $cacheName, 2); @@ -117,9 +111,7 @@ protected function getTTL($maxLifetime = 0) return 60 * 60 * 24 * 3; } - /** - * @inheritDoc - */ + #[\Override] public function set(string $cacheName, mixed $value, int $maxLifetime) { // split parameterized cache entry names into cache name and cache index diff --git a/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php b/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php index 5a64d6d8524..a6f460c63da 100644 --- a/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php @@ -63,9 +63,7 @@ public function getObjectTypeByName($objectType) return ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.captcha', $objectType); } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.captcha'); diff --git a/wcfsetup/install/files/lib/system/captcha/CaptchaQuestionHandler.class.php b/wcfsetup/install/files/lib/system/captcha/CaptchaQuestionHandler.class.php index e5321901d14..6944cf62648 100644 --- a/wcfsetup/install/files/lib/system/captcha/CaptchaQuestionHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/CaptchaQuestionHandler.class.php @@ -45,17 +45,13 @@ public function __construct() $this->questions = CaptchaQuestionCacheBuilder::getInstance()->getData(); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return \count($this->questions) > 0; } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement() { if (!isset($this->question)) { @@ -77,9 +73,7 @@ public function getFormElement() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['captchaQuestion'])) { @@ -94,9 +88,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { WCF::getSession()->unregister('captchaQuestion_' . $this->captchaQuestion); @@ -118,9 +110,7 @@ private function readCaptchaQuestion(): void WCF::getSession()->register('captchaQuestion_' . $this->captchaQuestion, $questionID); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $questionID = WCF::getSession()->getVar('captchaQuestion_' . $this->captchaQuestion); diff --git a/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php b/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php index 5b46b5eb7ac..1be30704d3e 100644 --- a/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php @@ -37,9 +37,7 @@ class RecaptchaHandler implements ICaptchaHandler */ public static $forceIsAvailable = false; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement() { if (WCF::getSession()->getVar('recaptchaDone')) { @@ -51,9 +49,7 @@ public function getFormElement() ]); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { if (RECAPTCHA_PUBLICKEY_V3 && RECAPTCHA_PRIVATEKEY_V3) { @@ -73,9 +69,7 @@ public function isAvailable() return true; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['recaptcha-type'])) { @@ -90,17 +84,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { WCF::getSession()->unregister('recaptchaDone'); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (WCF::getSession()->getVar('recaptchaDone')) { diff --git a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php index 7b1b58a3859..2d0082d1e14 100644 --- a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php @@ -60,9 +60,7 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] public function afterDeletion(CategoryEditor $categoryEditor) { $categoryIDs = \array_keys(CategoryHandler::getInstance()->getChildCategories($categoryEditor->categoryID)); @@ -84,57 +82,43 @@ public function afterDeletion(CategoryEditor $categoryEditor) } } - /** - * @inheritDoc - */ + #[\Override] public function beforeDeletion(CategoryEditor $categoryEditor) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function canAddCategory() { return WCF::getSession()->getPermission($this->permissionPrefix . '.canAddCategory'); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteCategory() { return WCF::getSession()->getPermission($this->permissionPrefix . '.canDeleteCategory'); } - /** - * @inheritDoc - */ + #[\Override] public function canEditCategory() { return WCF::getSession()->getPermission($this->permissionPrefix . '.canEditCategory'); } - /** - * @inheritDoc - */ + #[\Override] public function changedParentCategories(array $categoryData) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function forceDescription() { return $this->hasDescription() && $this->forceDescription; } - /** - * @inheritDoc - */ + #[\Override] public function getApplication() { $classParts = \explode('\\', static::class); @@ -142,33 +126,25 @@ public function getApplication() return $classParts[0]; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeName(string $definitionName) { return $this->objectTypes[$definitionName] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function getDescriptionLangVarCategory() { return $this->i18nLangVarCategory; } - /** - * @inheritDoc - */ + #[\Override] public function getI18nLangVarPrefix() { return $this->i18nLangVarCategory . '.category'; } - /** - * @inheritDoc - */ + #[\Override] public function getLanguageVariable(string $name, bool $optional = false) { if ($this->langVarPrefix) { @@ -181,34 +157,28 @@ public function getLanguageVariable(string $name, bool $optional = false) return WCF::getLanguage()->getDynamicVariable('wcf.category.' . $name, [], $optional); } - /** - * @inheritDoc - */ + #[\Override] public function getMaximumNestingLevel() { return $this->maximumNestingLevel; } - /** - * @inheritDoc - */ + #[\Override] public function getTitleLangVarCategory() { return $this->i18nLangVarCategory; } - /** - * @inheritDoc - */ + #[\Override] public function hasDescription() { return $this->hasDescription; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function supportsHtmlDescription() { return false; diff --git a/wcfsetup/install/files/lib/system/category/ArticleCategoryType.class.php b/wcfsetup/install/files/lib/system/category/ArticleCategoryType.class.php index 49ec598a09d..360472c6b7f 100644 --- a/wcfsetup/install/files/lib/system/category/ArticleCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/ArticleCategoryType.class.php @@ -39,9 +39,7 @@ class ArticleCategoryType extends AbstractCategoryType 'com.woltlab.wcf.user.objectWatch' => 'com.woltlab.wcf.article.category', ]; - /** - * @inheritDoc - */ + #[\Override] public function beforeDeletion(CategoryEditor $categoryEditor) { parent::beforeDeletion($categoryEditor); @@ -62,34 +60,28 @@ public function beforeDeletion(CategoryEditor $categoryEditor) } } - /** - * @inheritDoc - */ + #[\Override] public function canAddCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canEditCategory() { return WCF::getSession()->getPermission('admin.content.article.canManageCategory'); } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function supportsHtmlDescription() { return true; diff --git a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php index 5cab9ace104..cde6afe06a6 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php @@ -133,9 +133,7 @@ public function getObjectTypes(): array return $this->objectTypes; } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.category'); diff --git a/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php index 8200996366e..6e0bfdb7953 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php @@ -64,9 +64,7 @@ public function getPermissions(Category $category, ?User $user = null) return $permissions; } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->categoryPermissions = CategoryACLOptionCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/category/MediaCategoryType.class.php b/wcfsetup/install/files/lib/system/category/MediaCategoryType.class.php index e043d50d15a..2077094468f 100644 --- a/wcfsetup/install/files/lib/system/category/MediaCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/MediaCategoryType.class.php @@ -29,25 +29,19 @@ class MediaCategoryType extends AbstractCategoryType */ protected $maximumNestingLevel = 2; - /** - * @inheritDoc - */ + #[\Override] public function canAddCategory() { return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteCategory() { return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); } - /** - * @inheritDoc - */ + #[\Override] public function canEditCategory() { return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); diff --git a/wcfsetup/install/files/lib/system/category/SmileyCategoryType.class.php b/wcfsetup/install/files/lib/system/category/SmileyCategoryType.class.php index aa9782950c3..812bde76d6b 100644 --- a/wcfsetup/install/files/lib/system/category/SmileyCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/SmileyCategoryType.class.php @@ -30,33 +30,25 @@ class SmileyCategoryType extends AbstractCategoryType */ protected $maximumNestingLevel = 0; - /** - * @inheritDoc - */ + #[\Override] public function afterDeletion(CategoryEditor $categoryEditor) { SmileyCacheBuilder::getInstance()->reset(); } - /** - * @inheritDoc - */ + #[\Override] public function canAddCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canEditCategory() { return WCF::getSession()->getPermission('admin.content.smiley.canManageSmiley'); diff --git a/wcfsetup/install/files/lib/system/category/TrophyCategoryType.class.php b/wcfsetup/install/files/lib/system/category/TrophyCategoryType.class.php index a0f6c6f57b0..deb2549b4ff 100644 --- a/wcfsetup/install/files/lib/system/category/TrophyCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/TrophyCategoryType.class.php @@ -32,33 +32,25 @@ class TrophyCategoryType extends AbstractCategoryType */ protected $forceDescription = false; - /** - * @inheritDoc - */ + #[\Override] public function canAddCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteCategory() { return $this->canEditCategory(); } - /** - * @inheritDoc - */ + #[\Override] public function canEditCategory() { return WCF::getSession()->getPermission('admin.trophy.canManageTrophy'); } - /** - * @inheritDoc - */ + #[\Override] public function beforeDeletion(CategoryEditor $categoryEditor) { // update user trophyPoints @@ -82,9 +74,9 @@ public function beforeDeletion(CategoryEditor $categoryEditor) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function supportsHtmlDescription() { return true; diff --git a/wcfsetup/install/files/lib/system/cli/command/ExitCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ExitCLICommand.class.php index 39acbb715a5..20a4ab5536c 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ExitCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ExitCLICommand.class.php @@ -11,17 +11,13 @@ */ class ExitCLICommand implements ICLICommand { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $parameters) { exit; } - /** - * @inheritDoc - */ + #[\Override] public function canAccess() { // everyone may access this command diff --git a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php index 03fd4bff359..e8778a4f384 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -103,17 +103,13 @@ class ImportCLICommand implements ICLICommand */ public $userMergeMode = 0; - /** - * @inheritDoc - */ + #[\Override] public function canAccess() { return WCF::getSession()->getPermission('admin.management.canImportData'); } - /** - * @inheritDoc - */ + #[\Override] public function execute(array $parameters) { CLIWCF::getReader()->setHistoryEnabled(false); diff --git a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php index d406813b2f1..0819cc08231 100644 --- a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php @@ -49,9 +49,7 @@ public function __construct() ]); } - /** - * @inheritDoc - */ + #[\Override] public function execute(array $parameters) { $this->argv->setArguments($parameters); @@ -493,9 +491,7 @@ public function getUsage() ); } - /** - * @inheritDoc - */ + #[\Override] public function canAccess() { return true; diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php index 2a129af4358..0e26127962d 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -64,9 +64,7 @@ class ClipboardHandler extends SingletonFactory */ protected $pageObjectID = 0; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = [ diff --git a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php index beda6f63b4c..bb56a7e9bdd 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php @@ -45,9 +45,7 @@ abstract class AbstractClipboardAction implements IClipboardAction */ protected $supportedActions = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $objects, ClipboardAction $action) { if (!\in_array($action->actionName, $this->supportedActions)) { @@ -79,9 +77,7 @@ public function execute(array $objects, ClipboardAction $action) return $item; } - /** - * @inheritDoc - */ + #[\Override] public function getEditorLabel(array $objects) { return WCF::getLanguage()->getDynamicVariable('wcf.clipboard.label.' . $this->getTypeName() . '.marked', [ @@ -89,9 +85,7 @@ public function getEditorLabel(array $objects) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getReloadPageOnSuccess() { return $this->reloadPageOnSuccess; diff --git a/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php index 97c4f535464..5272f148200 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php @@ -34,9 +34,7 @@ class MediaClipboardAction extends AbstractClipboardAction 'setCategory', ]; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $objects, ClipboardAction $action) { $item = parent::execute($objects, $action); @@ -63,17 +61,13 @@ public function execute(array $objects, ClipboardAction $action) return $item; } - /** - * @inheritDoc - */ + #[\Override] public function getClassName() { return MediaAction::class; } - /** - * @inheritDoc - */ + #[\Override] public function getTypeName() { return 'com.woltlab.wcf.media'; diff --git a/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php index 7f5747fd687..aa8d6680ec2 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php @@ -44,9 +44,7 @@ class UserClipboardAction extends AbstractClipboardAction 'unconfirmEmail', ]; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $objects, ClipboardAction $action) { $item = parent::execute($objects, $action); @@ -101,17 +99,13 @@ public function execute(array $objects, ClipboardAction $action) return $item; } - /** - * @inheritDoc - */ + #[\Override] public function getClassName() { return UserAction::class; } - /** - * @inheritDoc - */ + #[\Override] public function getTypeName() { return 'com.woltlab.wcf.user'; diff --git a/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php index e6e0372df0d..c1f607ccac4 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php @@ -24,9 +24,7 @@ class UserContentClipboardAction extends AbstractClipboardAction */ protected $supportedActions = ['revertContentChanges']; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $objects, ClipboardAction $action) { $item = parent::execute($objects, $action); @@ -45,17 +43,13 @@ public function execute(array $objects, ClipboardAction $action) return $item; } - /** - * @inheritDoc - */ + #[\Override] public function getClassName() { return UserContentAction::class; } - /** - * @inheritDoc - */ + #[\Override] public function getTypeName() { return 'com.woltlab.wcf.user'; diff --git a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php index ac4a63049ae..5583de544a4 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -42,9 +42,7 @@ class CommentHandler extends SingletonFactory */ protected $cache; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = [ diff --git a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php index 8745efce21f..2eafd26647b 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php @@ -71,9 +71,7 @@ abstract class AbstractCommentManager implements ICommentManager */ protected $permissionDisallowedBBCodes = 'user.comment.disallowedBBCodes'; - /** - * @inheritDoc - */ + #[\Override] public function canAdd(int $objectID) { if (VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { @@ -87,9 +85,7 @@ public function canAdd(int $objectID) return WCF::getSession()->getPermission($this->permissionAdd) ? true : false; } - /** - * @inheritDoc - */ + #[\Override] public function canAddWithoutApproval(int $objectID) { if (VISITOR_USE_TINY_BUILD && !WCF::getUser()->userID) { @@ -108,9 +104,7 @@ public function canAddWithoutApproval(int $objectID) return WCF::getSession()->getPermission($this->permissionAddWithoutModeration) ? true : false; } - /** - * @inheritDoc - */ + #[\Override] public function setDisallowedBBCodes() { BBCodeHandler::getInstance()->setDisallowedBBCodes(\explode( @@ -119,41 +113,31 @@ public function setDisallowedBBCodes() )); } - /** - * @inheritDoc - */ + #[\Override] public function canEditComment(Comment $comment) { return $this->canEdit($comment->userID == WCF::getUser()->userID); } - /** - * @inheritDoc - */ + #[\Override] public function canEditResponse(CommentResponse $response) { return $this->canEdit($response->userID == WCF::getUser()->userID); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteComment(Comment $comment) { return $this->canDelete($comment->userID == WCF::getUser()->userID); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteResponse(CommentResponse $response) { return $this->canDelete($response->userID == WCF::getUser()->userID); } - /** - * @inheritDoc - */ + #[\Override] public function canModerate(int $objectTypeID, int $objectID) { return WCF::getSession()->getPermission($this->permissionCanModerate) ? true : false; @@ -209,50 +193,38 @@ protected function canDelete(bool $isOwner) return false; } - /** - * @inheritDoc - */ + #[\Override] public function getCommentsPerPage() { return $this->commentsPerPage; } - /** - * @inheritDoc - */ + #[\Override] public function supportsLike() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function supportsReport() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getCommentLink(Comment $comment) { return $this->getLink($comment->objectTypeID, $comment->objectID) . '#comment' . $comment->commentID; } - /** - * @inheritDoc - */ + #[\Override] public function getResponseLink(CommentResponse $response) { return $this->getLink($response->getComment()->objectTypeID, $response->getComment()->objectID) . '#comment' . $response->commentID . '/response' . $response->responseID; } - /** - * @inheritDoc - */ + #[\Override] public function isContentAuthor(Comment|CommentResponse $commentOrResponse) { return false; diff --git a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php index 1f53d6494fc..8469ea8cf18 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php @@ -60,9 +60,7 @@ class ArticleCommentManager extends AbstractCommentManager implements IViewableL */ protected $permissionCanModerate = 'mod.article.canModerateComment'; - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(int $objectID, bool $validateWritePermission = false) { // check object id @@ -88,9 +86,7 @@ public function canModerateObject(int $objectTypeID, int $objectID, UserProfile return (bool)$user->getPermission($this->permissionCanModerate); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectTypeID, int $objectID) { $articleContent = ViewableArticleContentRuntimeCache::getInstance()->getObject($objectID); @@ -101,9 +97,7 @@ public function getLink(int $objectTypeID, int $objectID) return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = false) { if ($isResponse) { @@ -113,9 +107,7 @@ public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = fa return WCF::getLanguage()->getDynamicVariable('wcf.article.comment'); } - /** - * @inheritDoc - */ + #[\Override] public function updateCounter(int $objectID, int $value) { $editor = new ArticleContentEditor(new ArticleContent($objectID)); @@ -124,9 +116,7 @@ public function updateCounter(int $objectID, int $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $likes) { $commentLikeObjectType = ObjectTypeCache::getInstance() @@ -236,9 +226,7 @@ public function prepare(array $likes) } } - /** - * @inheritDoc - */ + #[\Override] public function isContentAuthor(Comment|CommentResponse $commentOrResponse) { $articleContent = ViewableArticleContentRuntimeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php index 9d6d3208f1a..c9a79afcc25 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php @@ -16,9 +16,7 @@ */ class ModerationQueueCommentManager extends AbstractCommentManager implements ICommentPermissionManager { - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(int $objectID, bool $validateWritePermission = false) { $entry = new ModerationQueue($objectID); @@ -34,17 +32,13 @@ public function canModerateObject(int $objectTypeID, int $objectID, UserProfile return $entry->canEdit($user->getDecoratedObject()); } - /** - * @inheritDoc - */ + #[\Override] public function canAddWithoutApproval(int $objectID) { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectTypeID, int $objectID) { $entry = new ViewableModerationQueue(new ModerationQueue($objectID)); @@ -52,17 +46,13 @@ public function getLink(int $objectTypeID, int $objectID) return $entry->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = false) { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function updateCounter(int $objectID, int $value) { $entry = new ModerationQueue($objectID); @@ -75,9 +65,7 @@ public function updateCounter(int $objectID, int $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function canAdd(int $objectID) { if (!$this->isAccessible($objectID, true)) { @@ -87,33 +75,25 @@ public function canAdd(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] protected function canEdit(bool $isOwner) { return $isOwner; } - /** - * @inheritDoc - */ + #[\Override] protected function canDelete(bool $isOwner) { return $isOwner; } - /** - * @inheritDoc - */ + #[\Override] public function supportsLike() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function supportsReport() { return false; diff --git a/wcfsetup/install/files/lib/system/comment/manager/PageCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/PageCommentManager.class.php index 0815682505d..d787770f538 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/PageCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/PageCommentManager.class.php @@ -57,9 +57,7 @@ class PageCommentManager extends AbstractCommentManager implements IViewableLike */ protected $permissionCanModerate = 'mod.page.canModerateComment'; - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(int $objectID, bool $validateWritePermission = false) { // check object id @@ -85,17 +83,13 @@ public function canModerateObject(int $objectTypeID, int $objectID, UserProfile return (bool)$user->getPermission($this->permissionCanModerate); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectTypeID, int $objectID) { return LinkHandler::getInstance()->getCmsLink($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = false) { if ($isResponse) { @@ -105,14 +99,10 @@ public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = fa return WCF::getLanguage()->getDynamicVariable('wcf.page.comment'); } - /** - * @inheritDoc - */ + #[\Override] public function updateCounter(int $objectID, int $value) {} - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $likes) { $commentLikeObjectType = ObjectTypeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php index fe9b38dc89e..b47f0fde345 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/UserProfileCommentManager.class.php @@ -60,9 +60,7 @@ class UserProfileCommentManager extends AbstractCommentManager implements */ protected $permissionModEdit = 'mod.profileComment.canEditComment'; - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(int $objectID, bool $validateWritePermission = false) { // check object id @@ -115,9 +113,7 @@ public function canModerateObject(int $objectTypeID, int $objectID, UserProfile return (bool)$user->getPermission($this->permissionCanModerate); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectTypeID, int $objectID) { $user = UserRuntimeCache::getInstance()->getObject($objectID); @@ -128,26 +124,20 @@ public function getLink(int $objectTypeID, int $objectID) return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getCommentLink(Comment $comment) { return $this->getLink($comment->objectTypeID, $comment->objectID) . '#wall/comment' . $comment->commentID; } - /** - * @inheritDoc - */ + #[\Override] public function getResponseLink(CommentResponse $response) { return $this->getLink($response->getComment()->objectTypeID, $response->getComment()->objectID) . '#wall/comment' . $response->commentID . '/response' . $response->responseID; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = false) { if ($isResponse) { @@ -157,17 +147,13 @@ public function getTitle(int $objectTypeID, int $objectID, bool $isResponse = fa return WCF::getLanguage()->getDynamicVariable('wcf.user.profile.content.wall.comment'); } - /** - * @inheritDoc - */ + #[\Override] public function updateCounter(int $objectID, int $value) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteComment(Comment $comment) { if ( @@ -180,9 +166,7 @@ public function canDeleteComment(Comment $comment) return parent::canDeleteComment($comment); } - /** - * @inheritDoc - */ + #[\Override] public function canDeleteResponse(CommentResponse $response) { if ( @@ -195,9 +179,7 @@ public function canDeleteResponse(CommentResponse $response) return parent::canDeleteResponse($response); } - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $likes) { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php index 3ee6c5903dd..79b99b9b5e7 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php @@ -30,7 +30,6 @@ abstract class AbstractCheckboxCondition extends AbstractSingleFieldCondition protected $fieldValue = 0; /** - * @inheritDoc * @throws SystemException */ public function __construct(DatabaseObject $object) @@ -42,9 +41,7 @@ public function __construct(DatabaseObject $object) } } - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->fieldValue) { @@ -54,25 +51,19 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldElement() { return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function getLabel() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (!empty($_POST[$this->fieldName])) { @@ -82,17 +73,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->fieldValue = 0; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->fieldValue = $condition->{$this->fieldName}; diff --git a/wcfsetup/install/files/lib/system/condition/AbstractCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractCondition.class.php index bcfe0ce56ac..8b9a01a9dd8 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractCondition.class.php @@ -15,17 +15,13 @@ */ abstract class AbstractCondition extends AbstractObjectTypeProcessor implements ICondition { - /** - * @inheritDoc - */ + #[\Override] public function reset() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php index a52b6dcdf1a..3b2171925a9 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php @@ -45,9 +45,7 @@ abstract class AbstractIntegerCondition extends AbstractSingleFieldCondition */ protected $propertyName = ''; - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -66,9 +64,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getErrorMessageElement() { if ($this->errorMessage) { @@ -108,9 +104,7 @@ protected function getErrorMessageElement() return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldElement() { $greaterThanPlaceHolder = WCF::getLanguage()->get('wcf.condition.greaterThan'); @@ -184,9 +178,7 @@ protected function getMinValue() return null; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if ( @@ -203,27 +195,21 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->lessThan = null; $this->greaterThan = null; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->lessThan = $condition->lessThan; $this->greaterThan = $condition->greaterThan; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->lessThan !== null) { diff --git a/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php index a4f62a1fcc6..87298939d81 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractMultiCategoryCondition.class.php @@ -29,9 +29,7 @@ abstract class AbstractMultiCategoryCondition extends AbstractMultiSelectConditi */ public $nodeTreeClassname = CategoryNodeTree::class; - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $categoryTree = (new $this->nodeTreeClassname($this->objectType))->getIterator(); @@ -54,9 +52,7 @@ protected function getFieldElement() return $fieldElement; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return CategoryHandler::getInstance()->getCategories($this->objectType); diff --git a/wcfsetup/install/files/lib/system/condition/AbstractMultiSelectCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractMultiSelectCondition.class.php index a70ce0b2098..c50917df255 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractMultiSelectCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractMultiSelectCondition.class.php @@ -23,9 +23,7 @@ abstract class AbstractMultiSelectCondition extends AbstractSelectCondition */ protected $fieldValue = []; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if (!empty($this->fieldValue)) { @@ -35,9 +33,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $options = $this->getOptions(); @@ -58,9 +54,7 @@ protected function getFieldElement() return $fieldElement; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptionCode($value, $label) { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->fieldName]) && \is_array($_POST[$this->fieldName])) { @@ -79,17 +71,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->fieldValue = []; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $options = $this->getOptions(); diff --git a/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php index 750cc490cbf..09d30d2b505 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php @@ -41,9 +41,7 @@ abstract class AbstractObjectTextPropertyCondition extends AbstractTextCondition */ protected $propertyName = ''; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $className = $this->getListClassName(); @@ -64,9 +62,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkObject(DatabaseObject $object, array $conditionData) { $className = $this->getClassName(); @@ -87,9 +83,7 @@ protected function getClassName() return $this->className; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $value = parent::getData(); @@ -122,9 +116,7 @@ protected function getPropertyName() return $this->propertyName; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { parent::setData($condition); diff --git a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php index 2871da6e0b0..01ec2ae93fa 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php @@ -34,9 +34,7 @@ abstract class AbstractSelectCondition extends AbstractSingleFieldCondition */ const NO_SELECTION_VALUE = '-1'; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->fieldValue != self::NO_SELECTION_VALUE) { @@ -46,9 +44,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $options = $this->getOptions(); @@ -66,9 +62,7 @@ protected function getFieldElement() return $fieldElement; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { if (empty($this->getOptions())) { @@ -115,9 +109,7 @@ protected function getOptionCode($value, $label) */ abstract protected function getOptions(); - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->fieldName])) { @@ -125,25 +117,19 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->fieldValue = self::NO_SELECTION_VALUE; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->fieldValue = ($condition->conditionData[$this->fieldName] ?? self::NO_SELECTION_VALUE); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->fieldValue != self::NO_SELECTION_VALUE) { diff --git a/wcfsetup/install/files/lib/system/condition/AbstractSingleFieldCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractSingleFieldCondition.class.php index 5837a462341..46d14b6295b 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractSingleFieldCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractSingleFieldCondition.class.php @@ -80,9 +80,7 @@ protected function getErrorMessageElement() */ abstract protected function getFieldElement(); - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return <<fieldValue)) { @@ -38,17 +36,13 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->fieldName])) { @@ -56,17 +50,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->fieldValue = ''; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->fieldValue = $condition->conditionData[$this->fieldName]; diff --git a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php index 71ef2e8e372..c06a42f245b 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractTimestampCondition.class.php @@ -48,9 +48,7 @@ abstract class AbstractTimestampCondition extends AbstractSingleFieldCondition i */ protected $startTime = ''; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $className = $this->getListClassName(); @@ -78,9 +76,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkObject(DatabaseObject $object, array $conditionData) { $className = $this->getClassName(); @@ -114,9 +110,7 @@ protected function getClassName() return $this->className; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -135,9 +129,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $start = WCF::getLanguage()->get('wcf.date.period.start'); @@ -149,9 +141,7 @@ protected function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] protected function getLabel() { return WCF::getLanguage()->get($this->getLanguageItemPrefix() . '.' . $this->getPropertyName()); @@ -184,9 +174,7 @@ protected function getPropertyName() return $this->propertyName; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST[$this->getPropertyName() . 'EndTime'])) { @@ -197,18 +185,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->endTime = ''; $this->startTime = ''; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $endTime = $condition->endTime; @@ -222,9 +206,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $endTime = $startTime = null; diff --git a/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php b/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php index 59f384f51cb..7b364ae5cd7 100644 --- a/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/DaysOfWeekCondition.class.php @@ -30,9 +30,7 @@ class DaysOfWeekCondition extends AbstractMultiSelectCondition implements IConte */ protected $label = 'wcf.date.daysOfWeek'; - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { $options = []; @@ -45,9 +43,7 @@ protected function getOptions() return $options; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { $date = DateUtil::getDateTimeByTimestamp(TIME_NOW); diff --git a/wcfsetup/install/files/lib/system/condition/MultiPageControllerCondition.class.php b/wcfsetup/install/files/lib/system/condition/MultiPageControllerCondition.class.php index a7d4343192f..7c27d295ae2 100644 --- a/wcfsetup/install/files/lib/system/condition/MultiPageControllerCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/MultiPageControllerCondition.class.php @@ -14,25 +14,19 @@ */ class MultiPageControllerCondition extends AbstractMultiSelectCondition implements IContentCondition { - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return []; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { return false; diff --git a/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php b/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php index 676432ae3e8..6172590fc47 100644 --- a/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/TObjectUserCondition.class.php @@ -15,9 +15,7 @@ */ trait TObjectUserCondition { - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { return $this->checkObject($user, $condition->conditionData); diff --git a/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php b/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php index 54ed66a895a..c7310e233db 100644 --- a/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/TimeCondition.class.php @@ -43,9 +43,7 @@ class TimeCondition extends AbstractMultipleFieldsCondition implements IContentC */ protected $timezone = ''; - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -68,9 +66,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { $start = WCF::getLanguage()->get('wcf.date.period.start'); @@ -117,9 +113,7 @@ protected function getTimezoneFieldElement() return $fieldElement; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['endTime'])) { @@ -133,9 +127,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->endTime = '00:00'; @@ -143,9 +135,7 @@ public function reset() $this->timezone = ''; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $endTime = $condition->endTime; @@ -164,9 +154,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->startTime == '00:00' && $this->endTime == '00:00') { @@ -208,9 +196,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { $timezone = WCF::getUser()->getTimeZone(); diff --git a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php index 7190060c1c1..129b6886670 100644 --- a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php @@ -51,9 +51,7 @@ class UserAvatarCondition extends AbstractSelectCondition implements */ const GRAVATAR = 2; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { switch ($conditionData['userAvatar']) { @@ -71,9 +69,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { switch ($condition->userAvatar) { @@ -90,9 +86,7 @@ public function checkUser(Condition $condition, User $user) return false; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return [ @@ -102,9 +96,7 @@ protected function getOptions() ]; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php index b3c7a4f6538..efbf85bd3d9 100644 --- a/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php @@ -21,9 +21,7 @@ class UserBirthdayCondition extends AbstractCondition implements IContentConditi */ protected $birthdayToday = 0; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->birthdayToday) { @@ -33,9 +31,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { $label = WCF::getLanguage()->get('wcf.user.birthdayToday'); @@ -54,9 +50,7 @@ public function getHTML() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['birthdayToday'])) { @@ -64,25 +58,19 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->birthdayToday = 0; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->birthdayToday = $condition->birthdayToday; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php index 32bf661dc75..fcc98d05e62 100644 --- a/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php @@ -47,9 +47,7 @@ class UserCoverPhotoCondition extends AbstractSelectCondition implements */ const COVER_PHOTO = 1; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { switch ($conditionData['userCoverPhoto']) { @@ -67,9 +65,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { switch ($condition->userCoverPhoto) { @@ -83,9 +79,7 @@ public function checkUser(Condition $condition, User $user) return false; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return [ @@ -95,9 +89,7 @@ protected function getOptions() ]; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserEmailCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserEmailCondition.class.php index ed51f71a987..44e300880d4 100644 --- a/wcfsetup/install/files/lib/system/condition/UserEmailCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserEmailCondition.class.php @@ -34,9 +34,7 @@ class UserEmailCondition extends AbstractTextCondition implements */ protected $label = 'wcf.user.email'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add( @@ -45,17 +43,13 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co ); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { return \str_contains($user->email, $condition->email); } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php index f1a771ab99c..63bc85addce 100644 --- a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php @@ -65,9 +65,7 @@ class UserGroupCondition extends AbstractMultipleFieldsCondition implements */ protected $userGroups; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $tableName = 'user_table'; @@ -99,9 +97,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { $groupIDs = $user->getGroupIDs(); @@ -122,9 +118,7 @@ public function checkUser(Condition $condition, User $user) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -143,9 +137,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { if (!empty($this->getUserGroups())) { @@ -216,9 +208,7 @@ protected function getUserGroups() return $this->userGroups; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['groupIDs'])) { @@ -229,18 +219,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->groupIDs = []; $this->notGroupIDs = []; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { if ($condition->groupIDs !== null) { @@ -262,9 +248,7 @@ public function setUserGroups(array $userGroups) $this->userGroups = $userGroups; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $userGroups = $this->getUserGroups(); @@ -290,9 +274,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { return $this->checkUser($condition, WCF::getUser()); diff --git a/wcfsetup/install/files/lib/system/condition/UserIntegerPropertyCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserIntegerPropertyCondition.class.php index 0a958392dc6..30765121820 100644 --- a/wcfsetup/install/files/lib/system/condition/UserIntegerPropertyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserIntegerPropertyCondition.class.php @@ -24,9 +24,7 @@ class UserIntegerPropertyCondition extends AbstractIntegerCondition implements { use TObjectListUserCondition; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData): void { if (isset($conditionData['greaterThan'])) { @@ -43,9 +41,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user): bool { if ( @@ -64,25 +60,19 @@ public function checkUser(Condition $condition, User $user): bool return true; } - /** - * @inheritDoc - */ + #[\Override] protected function getIdentifier(): string { return 'user_' . $this->getDecoratedObject()->propertyname; } - /** - * @inheritDoc - */ + #[\Override] protected function getLabel(): string { return WCF::getLanguage()->get('wcf.user.condition.' . $this->getDecoratedObject()->propertyname); } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition): bool { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php index 4785195a082..13c31b4b4e4 100644 --- a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php @@ -38,17 +38,13 @@ class UserLanguageCondition extends AbstractSingleFieldCondition implements */ protected $languageIDs = []; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add('user_table.languageID IN (?)', [$conditionData['languageIDs']]); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { if ( @@ -61,9 +57,7 @@ public function checkUser(Condition $condition, User $user) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { if (!empty($this->languageIDs)) { @@ -75,9 +69,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $returnValue = ""; @@ -91,9 +83,7 @@ protected function getFieldElement() return $returnValue; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['languageIDs']) && \is_array($_POST['languageIDs'])) { @@ -101,17 +91,13 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->languageIDs = []; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { if (!empty($condition->conditionData['languageIDs'])) { @@ -119,9 +105,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { foreach ($this->languageIDs as $languageID) { @@ -133,9 +117,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php index 5f8da60cc99..45b6246e433 100644 --- a/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php @@ -33,9 +33,7 @@ class UserMobileBrowserCondition extends AbstractSingleFieldCondition implements */ protected $usesNoMobileBrowser = 0; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->usesMobileBrowser || $this->usesNoMobileBrowser) { @@ -49,9 +47,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldElement() { $usesMobileBrowserLabel = WCF::getLanguage()->get('wcf.user.condition.mobileBrowser.usesMobileBrowser'); @@ -72,9 +68,7 @@ public function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['usesMobileBrowser'])) { @@ -85,27 +79,21 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->usesMobileBrowser = 0; $this->usesNoMobileBrowser = 0; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->usesMobileBrowser = $condition->usesMobileBrowser; $this->usesNoMobileBrowser = $condition->usesMobileBrowser ? 0 : 1; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->usesMobileBrowser && $this->usesNoMobileBrowser) { @@ -115,9 +103,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { return ($condition->usesMobileBrowser && UserUtil::usesMobileBrowser()) || (!$condition->usesMobileBrowser && !UserUtil::usesMobileBrowser()); diff --git a/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php index da212448680..c7cae70c937 100644 --- a/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php @@ -43,9 +43,7 @@ class UserMultifactorCondition extends AbstractSingleFieldCondition implements */ protected $multifactorNotActive = 0; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->multifactorActive || $this->multifactorNotActive) { @@ -59,9 +57,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldElement() { $multifactorActiveLabel = WCF::getLanguage()->get('wcf.user.condition.multifactor.multifactorActive'); @@ -82,9 +78,7 @@ public function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['multifactorActive'])) { @@ -95,26 +89,20 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->multifactorActive = $this->multifactorNotActive = 0; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->multifactorActive = $condition->multifactorActive; $this->multifactorNotActive = $condition->multifactorActive ? 0 : 1; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->multifactorActive && $this->multifactorNotActive) { @@ -124,9 +112,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { @@ -136,9 +122,7 @@ public function showContent(Condition $condition) return $this->checkUser($condition, WCF::getUser()); } - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { if (isset($conditionData['multifactorActive'])) { @@ -149,9 +133,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { if ($condition->multifactorActive !== null && $user->multifactorActive != $condition->multifactorActive) { diff --git a/wcfsetup/install/files/lib/system/condition/UserOptionsCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserOptionsCondition.class.php index d5f1344feb7..da03da10332 100644 --- a/wcfsetup/install/files/lib/system/condition/UserOptionsCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserOptionsCondition.class.php @@ -33,9 +33,7 @@ class UserOptionsCondition extends AbstractMultipleFieldsCondition implements */ protected $optionHandler; - /** - * @inheritDoc - */ + #[\Override] public function __construct(DatabaseObject $object) { parent::__construct($object); @@ -45,9 +43,7 @@ public function __construct(DatabaseObject $object) $this->optionHandler->init(); } - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $optionValues = $conditionData['optionValues']; @@ -65,9 +61,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { $optionValues = $condition->optionValues; @@ -93,9 +87,7 @@ public function checkUser(Condition $condition, User $user) return $checkSuccess; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $optionValues = $this->optionHandler->getOptionValues(); @@ -122,9 +114,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'shared_userOptionsCondition', [ @@ -132,33 +122,25 @@ public function getHTML() ]); } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { $this->optionHandler->readUserInput($_POST); } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->optionHandler->setOptionValues([]); } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->optionHandler->setOptionValues($condition->conditionData['optionValues']); } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php index 81b713aab70..d3bc9cf0489 100644 --- a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php @@ -42,9 +42,7 @@ class UserRegistrationDateCondition extends AbstractSingleFieldCondition impleme */ protected $registrationDateStart = ''; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { if (isset($conditionData['registrationDateEnd'])) { @@ -73,9 +71,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { $dateStart = $condition->registrationDateStart; @@ -111,9 +107,7 @@ public function checkUser(Condition $condition, User $user) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -132,9 +126,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $start = WCF::getLanguage()->get('wcf.date.period.start'); @@ -146,9 +138,7 @@ protected function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['registrationDateEnd'])) { @@ -159,18 +149,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->registrationDateEnd = ''; $this->registrationDateStart = ''; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $registrationDateEnd = $condition->registrationDateEnd; @@ -184,9 +170,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $registrationDateEnd = $registrationDateStart = null; @@ -226,9 +210,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php index 83261926a42..eb7e6c2f3a7 100644 --- a/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php @@ -36,9 +36,7 @@ class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition imp */ protected $minValue = 0; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData): void { if (isset($conditionData['greaterThan'])) { @@ -55,9 +53,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user): bool { $greaterThan = $condition->greaterThan; @@ -73,17 +69,13 @@ public function checkUser(Condition $condition, User $user): bool return true; } - /** - * @inheritDoc - */ + #[\Override] protected function getIdentifier(): string { return 'user_registrationDateInterval'; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition): bool { if (!WCF::getUser()->userID) { @@ -94,10 +86,9 @@ public function showContent(Condition $condition): bool } /** - * @inheritDoc - * * @since 3.0 */ + #[\Override] protected function validateConflictingValues(): void { if ($this->lessThan !== null && $this->greaterThan !== null && $this->greaterThan >= $this->lessThan) { diff --git a/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php index 7ecef8d3964..c608e3d219b 100644 --- a/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php @@ -47,9 +47,7 @@ class UserSignatureCondition extends AbstractSelectCondition implements */ const SIGNATURE = 1; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { switch ($conditionData['userSignature']) { @@ -69,9 +67,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { switch ($condition->userSignature) { @@ -85,9 +81,7 @@ public function checkUser(Condition $condition, User $user) return false; } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return [ @@ -97,9 +91,7 @@ protected function getOptions() ]; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php index 1bbb57976cf..0b8f31f5f68 100644 --- a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php @@ -67,9 +67,7 @@ class UserStateCondition extends AbstractSingleFieldCondition implements */ protected $userIsNotEmailConfirmed = 0; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { if (isset($conditionData['userIsBanned'])) { @@ -93,9 +91,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { $userIsBanned = $condition->userIsBanned; @@ -124,9 +120,7 @@ public function checkUser(Condition $condition, User $user) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -169,9 +163,7 @@ protected function getCheckedAttribute($propertyName) return ''; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $userIsNotBanned = WCF::getLanguage()->get('wcf.user.condition.state.isNotBanned'); @@ -191,9 +183,7 @@ protected function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['userIsBanned'])) { @@ -216,9 +206,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->userIsBanned = 0; @@ -229,9 +217,7 @@ public function reset() $this->userIsNotEmailConfirmed = 0; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { /** @var ?int $userIsBanned */ @@ -256,9 +242,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->userIsBanned && $this->userIsNotBanned) { @@ -280,9 +264,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserTimestampPropertyCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserTimestampPropertyCondition.class.php index b00b7b92521..5311257509a 100644 --- a/wcfsetup/install/files/lib/system/condition/UserTimestampPropertyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserTimestampPropertyCondition.class.php @@ -25,25 +25,19 @@ class UserTimestampPropertyCondition extends AbstractTimestampCondition implemen */ protected $className = User::class; - /** - * @inheritDoc - */ + #[\Override] protected function getLanguageItemPrefix() { return 'wcf.user.condition'; } - /** - * @inheritDoc - */ + #[\Override] protected function getPropertyName() { return $this->getDecoratedObject()->propertyname; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php index 8d390903f54..82a725a405d 100644 --- a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php @@ -64,9 +64,7 @@ class UserTrophyCondition extends AbstractMultipleFieldsCondition implements */ protected $trophies; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { if (isset($conditionData['userTrophyIDs'])) { @@ -93,9 +91,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { $userTrophies = UserTrophyList::getUserTrophies([$user->getObjectID()], false)[$user->getObjectID()]; @@ -120,9 +116,7 @@ public function checkUser(Condition $condition, User $user) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -141,9 +135,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { if (!\count($this->getTrophies())) { @@ -213,9 +205,7 @@ protected function getTrophies() return $this->trophies; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['userTrophyIDs'])) { @@ -226,18 +216,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->userTrophyIDs = []; $this->notUserTrophyIDs = []; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { if ($condition->userTrophyIDs !== null) { @@ -248,9 +234,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $trophies = $this->getTrophies(); @@ -276,9 +260,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { return $this->checkUser($condition, WCF::getUser()); diff --git a/wcfsetup/install/files/lib/system/condition/UserUserIDCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserUserIDCondition.class.php index f9df62b3941..f1fa5042841 100644 --- a/wcfsetup/install/files/lib/system/condition/UserUserIDCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserUserIDCondition.class.php @@ -34,25 +34,19 @@ class UserUserIDCondition extends AbstractSingleFieldCondition implements */ protected $userID; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add('user_table.userID = ?', [$conditionData['userID']]); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { return $user->userID == $condition->userID; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { @@ -62,17 +56,13 @@ public function showContent(Condition $condition) return $this->checkUser($condition, WCF::getUser()); } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (!empty($_POST['userID'])) { @@ -80,9 +70,7 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function getData() { if ($this->userID !== null) { @@ -92,9 +80,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $this->userID = $condition->conditionData['userID']; diff --git a/wcfsetup/install/files/lib/system/condition/UserUsernameCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserUsernameCondition.class.php index e3312cd261c..e617b3684d0 100644 --- a/wcfsetup/install/files/lib/system/condition/UserUsernameCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserUsernameCondition.class.php @@ -34,9 +34,7 @@ class UserUsernameCondition extends AbstractTextCondition implements */ protected $label = 'wcf.user.username'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add( @@ -45,17 +43,13 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co ); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(Condition $condition, User $user) { return \str_contains($user->username, $condition->username); } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { if (!WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/condition/article/ArticleCategoryCondition.class.php b/wcfsetup/install/files/lib/system/condition/article/ArticleCategoryCondition.class.php index 2212e1a0f56..98ab9fb6436 100644 --- a/wcfsetup/install/files/lib/system/condition/article/ArticleCategoryCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/article/ArticleCategoryCondition.class.php @@ -34,9 +34,7 @@ class ArticleCategoryCondition extends AbstractMultiCategoryCondition implements */ protected $label = 'wcf.global.category'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add('article.categoryID IN (?)', [$conditionData[$this->fieldName]]); diff --git a/wcfsetup/install/files/lib/system/condition/page/MultiPageCondition.class.php b/wcfsetup/install/files/lib/system/condition/page/MultiPageCondition.class.php index c351294533b..b23716b77b9 100644 --- a/wcfsetup/install/files/lib/system/condition/page/MultiPageCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/page/MultiPageCondition.class.php @@ -39,9 +39,7 @@ class MultiPageCondition extends AbstractMultiSelectCondition implements IConten */ protected $reverseLogic = false; - /** - * @inheritDoc - */ + #[\Override] public function getData() { if (!empty($this->fieldValue)) { @@ -54,9 +52,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { return WCF::getTPL()->render('wcf', 'shared_scrollablePageCheckboxList', [ @@ -67,9 +63,7 @@ protected function getFieldElement() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getHTML() { return WCF::getTPL()->render('wcf', 'shared_multiPageCondition', [ @@ -80,17 +74,13 @@ public function getHTML() ]); } - /** - * @inheritDoc - */ + #[\Override] protected function getOptions() { return []; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { parent::readFormParameters(); @@ -100,18 +90,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->fieldValue = []; $this->reverseLogic = false; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { parent::setData($condition); @@ -121,9 +107,7 @@ public function setData(Condition $condition) $this->reverseLogic = $condition->conditionData[$this->fieldName . '_reverseLogic'] ?? false; } - /** - * @inheritDoc - */ + #[\Override] public function showContent(Condition $condition) { $pageID = RequestHandler::getInstance()->getActivePageID(); @@ -144,9 +128,7 @@ public function showContent(Condition $condition) return false; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { foreach ($this->fieldValue as $value) { diff --git a/wcfsetup/install/files/lib/system/condition/user/UserLastActivityTimeIntervalDaysCondition.class.php b/wcfsetup/install/files/lib/system/condition/user/UserLastActivityTimeIntervalDaysCondition.class.php index 89a21942bdb..7779c9658e3 100644 --- a/wcfsetup/install/files/lib/system/condition/user/UserLastActivityTimeIntervalDaysCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/user/UserLastActivityTimeIntervalDaysCondition.class.php @@ -46,9 +46,7 @@ class UserLastActivityTimeIntervalDaysCondition extends AbstractSingleFieldCondi */ protected $startDays = ''; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { if ($this->object->ignoreZeroTime) { @@ -68,9 +66,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co } } - /** - * @inheritDoc - */ + #[\Override] public function checkObject(DatabaseObject $object, array $conditionData) { if (!($object instanceof User) && !ClassUtil::isDecoratedInstanceOf($object, User::class)) { @@ -101,9 +97,7 @@ public function checkObject(DatabaseObject $object, array $conditionData) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { $data = []; @@ -122,9 +116,7 @@ public function getData() return null; } - /** - * @inheritDoc - */ + #[\Override] protected function getFieldElement() { $start = WCF::getLanguage()->get('wcf.date.period.start'); @@ -143,9 +135,7 @@ protected function getFieldElement() HTML; } - /** - * @inheritDoc - */ + #[\Override] public function readFormParameters() { if (isset($_POST['userLastActivityTimeIntervalEndDays'])) { @@ -156,18 +146,14 @@ public function readFormParameters() } } - /** - * @inheritDoc - */ + #[\Override] public function reset() { $this->endDays = ''; $this->startDays = ''; } - /** - * @inheritDoc - */ + #[\Override] public function setData(Condition $condition) { $endDays = $condition->endDays; @@ -181,9 +167,7 @@ public function setData(Condition $condition) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $endDays = $startDays = null; diff --git a/wcfsetup/install/files/lib/system/condition/user/activity/event/UserActivityEventExcludedObjectTypeCondition.class.php b/wcfsetup/install/files/lib/system/condition/user/activity/event/UserActivityEventExcludedObjectTypeCondition.class.php index d485b3b247c..01405e093c5 100644 --- a/wcfsetup/install/files/lib/system/condition/user/activity/event/UserActivityEventExcludedObjectTypeCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/user/activity/event/UserActivityEventExcludedObjectTypeCondition.class.php @@ -36,9 +36,7 @@ class UserActivityEventExcludedObjectTypeCondition extends AbstractMultiSelectCo */ protected $label = 'wcf.user.recentActivity.condition.excludedObjectType'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add( @@ -47,9 +45,7 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co ); } - /** - * @inheritDoc - */ + #[\Override] public function getOptions() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.recentActivityEvent'); diff --git a/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophiesCondition.class.php b/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophiesCondition.class.php index 5ff75c52f31..af938b1ddd9 100644 --- a/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophiesCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophiesCondition.class.php @@ -35,17 +35,13 @@ class UserTrophyExcludedTrophiesCondition extends AbstractMultiSelectCondition i */ protected $label = 'wcf.user.trophy.condition.excludedTrophies'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add('user_trophy.trophyID NOT IN (?)', [$conditionData[$this->fieldName]]); } - /** - * @inheritDoc - */ + #[\Override] public function getOptions() { $trophies = TrophyCache::getInstance()->getTrophies(); diff --git a/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophyCategoriesCondition.class.php b/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophyCategoriesCondition.class.php index 0e43b3fd33c..4cd26e55f2d 100644 --- a/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophyCategoriesCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/user/trophy/UserTrophyExcludedTrophyCategoriesCondition.class.php @@ -35,17 +35,13 @@ class UserTrophyExcludedTrophyCategoriesCondition extends AbstractMultiSelectCon */ protected $label = 'wcf.user.trophy.condition.excludedTrophyCategories'; - /** - * @inheritDoc - */ + #[\Override] public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) { $objectList->getConditionBuilder()->add('trophy.categoryID NOT IN (?)', [$conditionData[$this->fieldName]]); } - /** - * @inheritDoc - */ + #[\Override] public function getOptions() { $categories = TrophyCategoryCache::getInstance()->getCategories(); diff --git a/wcfsetup/install/files/lib/system/cronjob/AbstractCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/AbstractCronjob.class.php index f2f9e512ad3..0c893b17b42 100644 --- a/wcfsetup/install/files/lib/system/cronjob/AbstractCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/AbstractCronjob.class.php @@ -14,9 +14,7 @@ */ abstract class AbstractCronjob implements ICronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { EventHandler::getInstance()->fireAction($this, 'execute'); diff --git a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php index 08bddee5491..480b561bc89 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ArticlePublicationCronjob.class.php @@ -18,9 +18,7 @@ */ class ArticlePublicationCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/AssignTrophiesCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/AssignTrophiesCronjob.class.php index 8d5acd6ed13..709b6cf664d 100644 --- a/wcfsetup/install/files/lib/system/cronjob/AssignTrophiesCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/AssignTrophiesCronjob.class.php @@ -15,9 +15,7 @@ */ class AssignTrophiesCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/AttachmentCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/AttachmentCleanUpCronjob.class.php index 4ae7c480579..9b3c54d1aaf 100644 --- a/wcfsetup/install/files/lib/system/cronjob/AttachmentCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/AttachmentCleanUpCronjob.class.php @@ -16,9 +16,7 @@ */ class AttachmentCleanUpCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/BackgroundQueueCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/BackgroundQueueCleanUpCronjob.class.php index e54c8fec778..bdb1fcd7c36 100644 --- a/wcfsetup/install/files/lib/system/cronjob/BackgroundQueueCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/BackgroundQueueCleanUpCronjob.class.php @@ -18,9 +18,7 @@ */ class BackgroundQueueCleanUpCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 623160739ba..a0f116eae0d 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -29,9 +29,7 @@ final class CronjobScheduler extends SingletonFactory */ private array $cache; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->loadCache(); diff --git a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php index 57a744dfb9e..752fe49025e 100644 --- a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php @@ -19,9 +19,7 @@ */ class DailyCleanUpCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php index 0ac5f2cf35c..517a9091b92 100644 --- a/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/DailyMailNotificationCronjob.class.php @@ -31,9 +31,7 @@ */ class DailyMailNotificationCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php index ab5269865b6..1dc2767c2e2 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php @@ -21,9 +21,7 @@ */ class ExceptionMailerCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/ExpiringPaidSubscriptionUserCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ExpiringPaidSubscriptionUserCronjob.class.php index b35e884a568..52655663fea 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ExpiringPaidSubscriptionUserCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ExpiringPaidSubscriptionUserCronjob.class.php @@ -20,9 +20,7 @@ */ class ExpiringPaidSubscriptionUserCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php index 099b2132899..7cae60aebe9 100644 --- a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php @@ -14,9 +14,7 @@ */ class GetUpdateInfoCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/HourlyCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/HourlyCleanUpCronjob.class.php index df62e9802e7..ea2448101fc 100644 --- a/wcfsetup/install/files/lib/system/cronjob/HourlyCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/HourlyCleanUpCronjob.class.php @@ -15,9 +15,7 @@ */ class HourlyCleanUpCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/LastActivityCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/LastActivityCronjob.class.php index a788d8233ac..f51f4923488 100644 --- a/wcfsetup/install/files/lib/system/cronjob/LastActivityCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/LastActivityCronjob.class.php @@ -14,9 +14,7 @@ */ class LastActivityCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/ModerationQueueCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ModerationQueueCronjob.class.php index 2ab37915b01..c3d880b0e83 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ModerationQueueCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ModerationQueueCronjob.class.php @@ -18,9 +18,7 @@ */ class ModerationQueueCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/PruneIpAddressesCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/PruneIpAddressesCronjob.class.php index 0ed0ab1b068..39a3a11d90d 100644 --- a/wcfsetup/install/files/lib/system/cronjob/PruneIpAddressesCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/PruneIpAddressesCronjob.class.php @@ -26,9 +26,7 @@ class PruneIpAddressesCronjob extends AbstractCronjob */ public $columns = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { if (!PRUNE_IP_ADDRESS) { diff --git a/wcfsetup/install/files/lib/system/cronjob/RebuildSitemapCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/RebuildSitemapCronjob.class.php index bd7d67977be..bb97f87e539 100755 --- a/wcfsetup/install/files/lib/system/cronjob/RebuildSitemapCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/RebuildSitemapCronjob.class.php @@ -15,9 +15,7 @@ */ class RebuildSitemapCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/SessionCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/SessionCleanUpCronjob.class.php index 965f2dc309c..28319249bef 100644 --- a/wcfsetup/install/files/lib/system/cronjob/SessionCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/SessionCleanUpCronjob.class.php @@ -14,9 +14,7 @@ */ class SessionCleanUpCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/StatDailyBuilderCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/StatDailyBuilderCronjob.class.php index 34c5be80bfb..fc70da2d5b2 100644 --- a/wcfsetup/install/files/lib/system/cronjob/StatDailyBuilderCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/StatDailyBuilderCronjob.class.php @@ -16,9 +16,7 @@ */ class StatDailyBuilderCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/UpdateBlacklistCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/UpdateBlacklistCronjob.class.php index 772dc791579..0185f2845a3 100644 --- a/wcfsetup/install/files/lib/system/cronjob/UpdateBlacklistCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/UpdateBlacklistCronjob.class.php @@ -15,9 +15,7 @@ */ class UpdateBlacklistCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { if (!BLACKLIST_SFS_ENABLE) { diff --git a/wcfsetup/install/files/lib/system/cronjob/UserBanCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/UserBanCronjob.class.php index 3a4d846dd6b..2395452cc42 100644 --- a/wcfsetup/install/files/lib/system/cronjob/UserBanCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/UserBanCronjob.class.php @@ -14,9 +14,7 @@ */ class UserBanCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/UserGroupAssignmentCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/UserGroupAssignmentCronjob.class.php index 8714c867ab6..6dbff56683f 100644 --- a/wcfsetup/install/files/lib/system/cronjob/UserGroupAssignmentCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/UserGroupAssignmentCronjob.class.php @@ -18,9 +18,7 @@ class UserGroupAssignmentCronjob extends AbstractCronjob { const MAXIMUM_ASSIGNMENTS = 1000; - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/cronjob/UserQuitCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/UserQuitCronjob.class.php index 2cccd692c77..2bd132190bb 100644 --- a/wcfsetup/install/files/lib/system/cronjob/UserQuitCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/UserQuitCronjob.class.php @@ -15,9 +15,7 @@ */ class UserQuitCronjob extends AbstractCronjob { - /** - * @inheritDoc - */ + #[\Override] public function execute(Cronjob $cronjob) { parent::execute($cronjob); diff --git a/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php b/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php index 0ac6cb3cae5..561883ad7cd 100644 --- a/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php +++ b/wcfsetup/install/files/lib/system/database/MySQLDatabase.class.php @@ -19,9 +19,7 @@ class MySQLDatabase extends Database */ protected $editorClassName = MySQLDatabaseEditor::class; - /** - * @inheritDoc - */ + #[\Override] public function connect() { if (!$this->port) { @@ -74,17 +72,13 @@ public function connect() } } - /** - * @inheritDoc - */ + #[\Override] public static function isSupported() { return \extension_loaded('PDO') && \extension_loaded('pdo_mysql'); } - /** - * @inheritDoc - */ + #[\Override] protected function setAttributes() { parent::setAttributes(); @@ -97,9 +91,7 @@ protected function setAttributes() } } - /** - * @inheritDoc - */ + #[\Override] public function getVersion() { try { diff --git a/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php b/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php index e389f2fd48f..7fbe87d2e60 100644 --- a/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php +++ b/wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php @@ -17,9 +17,7 @@ */ class MySQLDatabaseEditor extends DatabaseEditor { - /** - * @inheritDoc - */ + #[\Override] public function getTableNames() { $existingTables = []; @@ -33,9 +31,7 @@ public function getTableNames() return $existingTables; } - /** - * @inheritDoc - */ + #[\Override] public function getColumns($tableName) { $columns = []; @@ -103,9 +99,7 @@ public function getColumns($tableName) return $columns; } - /** - * @inheritDoc - */ + #[\Override] public function getForeignKeys($tableName) { $sql = "SELECT CONSTRAINT_NAME, DELETE_RULE, UPDATE_RULE @@ -167,9 +161,7 @@ public function getForeignKeys($tableName) return $foreignKeys; } - /** - * @inheritDoc - */ + #[\Override] public function getIndexInformation($tableName) { $sql = "SHOW INDEX @@ -202,9 +194,7 @@ public function getIndexInformation($tableName) return $indexInformation; } - /** - * @inheritDoc - */ + #[\Override] public function getIndices($tableName) { $indices = []; @@ -218,9 +208,7 @@ public function getIndices($tableName) return \array_unique($indices); } - /** - * @inheritDoc - */ + #[\Override] public function createTable($tableName, $columns, $indices = []) { $columnDefinition = $indexDefinition = ''; @@ -251,9 +239,7 @@ public function createTable($tableName, $columns, $indices = []) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function dropTable($tableName) { $sql = "DROP TABLE IF EXISTS `" . $tableName . "`"; @@ -261,9 +247,7 @@ public function dropTable($tableName) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function addColumn($tableName, $columnName, $columnData) { $sql = "ALTER TABLE `" . $tableName . "` ADD COLUMN " . $this->buildColumnDefinition($columnName, $columnData); @@ -271,9 +255,7 @@ public function addColumn($tableName, $columnName, $columnData) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function alterColumn($tableName, $oldColumnName, $newColumnName, $newColumnData) { $sql = "ALTER TABLE `" . $tableName . "` CHANGE COLUMN `" . $oldColumnName . "` " . $this->buildColumnDefinition( @@ -284,9 +266,7 @@ public function alterColumn($tableName, $oldColumnName, $newColumnName, $newColu $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function alterColumns($tableName, $alterData) { $queries = ""; @@ -320,9 +300,7 @@ public function alterColumns($tableName, $alterData) $this->dbObj->prepare("ALTER TABLE `{$tableName}` " . \rtrim($queries, ','))->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function dropColumn($tableName, $columnName) { try { @@ -339,9 +317,7 @@ public function dropColumn($tableName, $columnName) } } - /** - * @inheritDoc - */ + #[\Override] public function addIndex($tableName, $indexName, $indexData) { $sql = "ALTER TABLE `" . $tableName . "` ADD " . $this->buildIndexDefinition($indexName, $indexData); @@ -349,9 +325,7 @@ public function addIndex($tableName, $indexName, $indexData) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function addForeignKey($tableName, $indexName, $indexData) { $sql = "ALTER TABLE `" . $tableName . "` ADD"; @@ -385,9 +359,7 @@ public function addForeignKey($tableName, $indexName, $indexData) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] public function dropIndex($tableName, $indexName) { try { @@ -404,9 +376,7 @@ public function dropIndex($tableName, $indexName) } } - /** - * @inheritDoc - */ + #[\Override] public function dropPrimaryKey($tableName) { try { @@ -423,9 +393,7 @@ public function dropPrimaryKey($tableName) } } - /** - * @inheritDoc - */ + #[\Override] public function dropForeignKey($tableName, $indexName) { try { diff --git a/wcfsetup/install/files/lib/system/database/exception/DatabaseException.class.php b/wcfsetup/install/files/lib/system/database/exception/DatabaseException.class.php index 3c55eaab8bd..9276c339b97 100644 --- a/wcfsetup/install/files/lib/system/database/exception/DatabaseException.class.php +++ b/wcfsetup/install/files/lib/system/database/exception/DatabaseException.class.php @@ -12,9 +12,6 @@ */ class DatabaseException extends \wcf\system\database\DatabaseException { - /** - * @inheritDoc - */ public function __construct($message, ?\PDOException $previous = null) { \Exception::__construct($message, 0, $previous); diff --git a/wcfsetup/install/files/lib/system/database/exception/DatabaseQueryExecutionException.class.php b/wcfsetup/install/files/lib/system/database/exception/DatabaseQueryExecutionException.class.php index 42b8286d551..b359984cfa4 100644 --- a/wcfsetup/install/files/lib/system/database/exception/DatabaseQueryExecutionException.class.php +++ b/wcfsetup/install/files/lib/system/database/exception/DatabaseQueryExecutionException.class.php @@ -84,9 +84,7 @@ public function getParameters() return $this->parameters; } - /** - * @inheritDoc - */ + #[\Override] public function getExtraInformation() { $i = 0; diff --git a/wcfsetup/install/files/lib/system/database/statement/DebugPreparedStatement.class.php b/wcfsetup/install/files/lib/system/database/statement/DebugPreparedStatement.class.php index c038d71dc42..fe91b6c297b 100644 --- a/wcfsetup/install/files/lib/system/database/statement/DebugPreparedStatement.class.php +++ b/wcfsetup/install/files/lib/system/database/statement/DebugPreparedStatement.class.php @@ -17,9 +17,7 @@ class DebugPreparedStatement extends PreparedStatement */ protected $debugDidExecuteOnce = false; - /** - * @inheritDoc - */ + #[\Override] public function __call($name, $arguments) { if ($name === 'fetchAll' || $name === 'fetchColumn') { @@ -29,9 +27,7 @@ public function __call($name, $arguments) return parent::__call($name, $arguments); } - /** - * @inheritDoc - */ + #[\Override] public function execute(array $parameters = []) { $this->debugDidExecuteOnce = true; @@ -39,9 +35,7 @@ public function execute(array $parameters = []) parent::execute($parameters); } - /** - * @inheritDoc - */ + #[\Override] public function fetchArray($type = null) { $this->debugThrowIfNotExecutedBefore(); @@ -49,9 +43,7 @@ public function fetchArray($type = null) return parent::fetchArray($type); } - /** - * @inheritDoc - */ + #[\Override] public function fetchSingleRow($type = null) { $this->debugThrowIfNotExecutedBefore(); @@ -59,9 +51,7 @@ public function fetchSingleRow($type = null) return parent::fetchSingleRow($type); } - /** - * @inheritDoc - */ + #[\Override] public function fetchSingleColumn($columnNumber = 0) { $this->debugThrowIfNotExecutedBefore(); @@ -69,9 +59,7 @@ public function fetchSingleColumn($columnNumber = 0) return parent::fetchSingleColumn($columnNumber); } - /** - * @inheritDoc - */ + #[\Override] public function fetchObject($className) { $this->debugThrowIfNotExecutedBefore(); @@ -79,9 +67,7 @@ public function fetchObject($className) return parent::fetchObject($className); } - /** - * @inheritDoc - */ + #[\Override] public function fetchSingleObject($className) { $this->debugThrowIfNotExecutedBefore(); @@ -89,9 +75,7 @@ public function fetchSingleObject($className) return parent::fetchSingleObject($className); } - /** - * @inheritDoc - */ + #[\Override] public function fetchObjects($className, $keyProperty = null) { $this->debugThrowIfNotExecutedBefore(); @@ -99,9 +83,7 @@ public function fetchObjects($className, $keyProperty = null) return parent::fetchObjects($className, $keyProperty); } - /** - * @inheritDoc - */ + #[\Override] public function fetchMap($keyColumn, $valueColumn, $uniqueKey = true) { $this->debugThrowIfNotExecutedBefore(); @@ -109,9 +91,6 @@ public function fetchMap($keyColumn, $valueColumn, $uniqueKey = true) return parent::fetchMap($keyColumn, $valueColumn, $uniqueKey); } - /** - * @inheritDoc - */ protected function debugThrowIfNotExecutedBefore(): void { if (!$this->debugDidExecuteOnce) { diff --git a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php index fac53640ceb..6b9e32690ce 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php @@ -36,9 +36,6 @@ abstract class AbstractDatabaseTableColumn implements IDatabaseTableColumn */ protected string $type; - /** - * @inheritDoc - */ #[\Override] public function getData(): array { @@ -94,7 +91,6 @@ public function getData(): array } /** - * @inheritDoc * @since 5.4 */ #[\Override] @@ -103,9 +99,6 @@ public function getNewName(): ?string return $this->newName; } - /** - * @inheritDoc - */ #[\Override] public function getName(): string { @@ -116,9 +109,6 @@ public function getName(): string return $this->name; } - /** - * @inheritDoc - */ #[\Override] public function getType(): string { @@ -131,18 +121,12 @@ public function getType(): string return $this->type; } - /** - * @inheritDoc - */ #[\Override] public function isNotNull(): bool { return $this->notNull; } - /** - * @inheritDoc - */ #[\Override] public function name(string $name): static { @@ -155,9 +139,6 @@ public function name(string $name): static return $this; } - /** - * @inheritDoc - */ #[\Override] public function notNull(bool $notNull = true): static { @@ -167,7 +148,6 @@ public function notNull(bool $notNull = true): static } /** - * @inheritDoc * @since 5.4 */ #[\Override] @@ -183,17 +163,15 @@ public function renameTo(string $newName): static } /** - * @inheritDoc * @return static */ + #[\Override] public static function create(string $name): static { return (new static())->name($name); } - /** - * @inheritDoc - */ + #[\Override] public static function createFromData(string $name, array $data): static { $column = static::create($name) diff --git a/wcfsetup/install/files/lib/system/database/table/column/AbstractDecimalDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/AbstractDecimalDatabaseTableColumn.class.php index 29a280df39e..b2d47282cd9 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/AbstractDecimalDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/AbstractDecimalDatabaseTableColumn.class.php @@ -19,9 +19,6 @@ abstract class AbstractDecimalDatabaseTableColumn extends AbstractDatabaseTableC getDefaultValue as private traitGetDefaultValue; } - /** - * @inheritDoc - */ #[\Override] public function getDefaultValue(): string|null { diff --git a/wcfsetup/install/files/lib/system/database/table/column/AbstractIntDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/AbstractIntDatabaseTableColumn.class.php index 694cbd96d12..62657b94974 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/AbstractIntDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/AbstractIntDatabaseTableColumn.class.php @@ -21,17 +21,11 @@ abstract class AbstractIntDatabaseTableColumn extends AbstractDatabaseTableColum length as private traitLength; } - /** - * @inheritDoc - */ public function getMinimumLength(): int { return 1; } - /** - * @inheritDoc - */ #[\Override] public static function createFromData(string $name, array $data): static { diff --git a/wcfsetup/install/files/lib/system/database/table/column/BigintDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/BigintDatabaseTableColumn.class.php index 72e50a28163..620d579fb32 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/BigintDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/BigintDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class BigintDatabaseTableColumn extends AbstractIntDatabaseTableColumn */ protected string $type = 'bigint'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/BinaryDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/BinaryDatabaseTableColumn.class.php index 4faecbf5fbb..841e69d643b 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/BinaryDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/BinaryDatabaseTableColumn.class.php @@ -22,17 +22,11 @@ final class BinaryDatabaseTableColumn extends AbstractDatabaseTableColumn implem */ protected string $type = 'binary'; - /** - * @inheritDoc - */ public function getMaximumLength(): int { return 255; } - /** - * @inheritDoc - */ public function getMinimumLength(): int { return 1; diff --git a/wcfsetup/install/files/lib/system/database/table/column/CharDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/CharDatabaseTableColumn.class.php index 557a21c24fc..0d7538b347b 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/CharDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/CharDatabaseTableColumn.class.php @@ -22,17 +22,11 @@ final class CharDatabaseTableColumn extends AbstractDatabaseTableColumn implemen */ protected string $type = 'char'; - /** - * @inheritDoc - */ public function getMaximumLength(): int { return 255; } - /** - * @inheritDoc - */ public function getMinimumLength(): int { return 1; diff --git a/wcfsetup/install/files/lib/system/database/table/column/DecimalDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/DecimalDatabaseTableColumn.class.php index f723a90cb4c..31a1b21a3af 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/DecimalDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/DecimalDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class DecimalDatabaseTableColumn extends AbstractDecimalDatabaseTableColum */ protected string $type = 'decimal'; - /** - * @inheritDoc - */ #[\Override] public function decimals(?int $decimals): static { @@ -30,27 +27,18 @@ public function decimals(?int $decimals): static return parent::decimals($decimals); } - /** - * @inheritDoc - */ #[\Override] public function getMaximumDecimals(): int { return 30; } - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { return 65; } - /** - * @inheritDoc - */ #[\Override] public function getMinimumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/DoubleDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/DoubleDatabaseTableColumn.class.php index d04c58bcbea..e3211b4ecce 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/DoubleDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/DoubleDatabaseTableColumn.class.php @@ -17,18 +17,12 @@ final class DoubleDatabaseTableColumn extends AbstractDecimalDatabaseTableColumn */ protected string $type = 'double'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumDecimals(): int { return 30; } - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/FloatDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/FloatDatabaseTableColumn.class.php index 58cf136ea48..1ac3a119e38 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/FloatDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/FloatDatabaseTableColumn.class.php @@ -17,18 +17,12 @@ final class FloatDatabaseTableColumn extends AbstractDecimalDatabaseTableColumn */ protected string $type = 'float'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumDecimals(): int { return 30; } - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/IntDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/IntDatabaseTableColumn.class.php index 174e0b4cb51..dd2efbf9a5a 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/IntDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/IntDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class IntDatabaseTableColumn extends AbstractIntDatabaseTableColumn */ protected string $type = 'int'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/MediumintDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/MediumintDatabaseTableColumn.class.php index a570755eaf0..dbb7652e885 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/MediumintDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/MediumintDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class MediumintDatabaseTableColumn extends AbstractIntDatabaseTableColumn */ protected string $type = 'mediumint'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/SmallintDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/SmallintDatabaseTableColumn.class.php index acb9b284dbb..9d5e837309f 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/SmallintDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/SmallintDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class SmallintDatabaseTableColumn extends AbstractIntDatabaseTableColumn */ protected string $type = 'smallint'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/TinyintDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/TinyintDatabaseTableColumn.class.php index 204293e2946..ba254cae783 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/TinyintDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/TinyintDatabaseTableColumn.class.php @@ -17,9 +17,6 @@ final class TinyintDatabaseTableColumn extends AbstractIntDatabaseTableColumn */ protected string $type = 'tinyint'; - /** - * @inheritDoc - */ #[\Override] public function getMaximumLength(): int { diff --git a/wcfsetup/install/files/lib/system/database/table/column/VarbinaryDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/VarbinaryDatabaseTableColumn.class.php index 39301a9c72c..640aca697ec 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/VarbinaryDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/VarbinaryDatabaseTableColumn.class.php @@ -24,9 +24,6 @@ final class VarbinaryDatabaseTableColumn extends AbstractDatabaseTableColumn imp */ protected string $type = 'varbinary'; - /** - * @inheritDoc - */ #[\Override] public function getLength(): int { @@ -37,9 +34,6 @@ public function getLength(): int return $this->traitGetLength(); } - /** - * @inheritDoc - */ public function getMaximumLength(): int { return 65535; diff --git a/wcfsetup/install/files/lib/system/database/table/column/VarcharDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/VarcharDatabaseTableColumn.class.php index 260b829df89..0418d08c136 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/VarcharDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/VarcharDatabaseTableColumn.class.php @@ -24,9 +24,6 @@ final class VarcharDatabaseTableColumn extends AbstractDatabaseTableColumn imple */ protected string $type = 'varchar'; - /** - * @inheritDoc - */ #[\Override] public function getLength(): int { @@ -37,17 +34,11 @@ public function getLength(): int return $this->traitGetLength(); } - /** - * @inheritDoc - */ public function getMaximumLength(): int { return 65535; } - /** - * @inheritDoc - */ public function getMinimumLength(): int { return 1; diff --git a/wcfsetup/install/files/lib/system/database/table/column/YearDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/YearDatabaseTableColumn.class.php index fb06a85eb7b..e78745122f0 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/YearDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/YearDatabaseTableColumn.class.php @@ -22,9 +22,6 @@ final class YearDatabaseTableColumn extends AbstractDatabaseTableColumn implemen */ protected string $type = 'year'; - /** - * @inheritDoc - */ protected function validateLength(int $length): void { if ($length !== 4) { diff --git a/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php b/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php index f76b8c80007..a16134361ef 100644 --- a/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php +++ b/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php @@ -65,6 +65,7 @@ public function add($condition) /** * Returns the build condition. */ + #[\Override] public function __toString(): string { return (($this->addWhereKeyword && $this->conditions) ? 'WHERE ' : '') . $this->conditions; diff --git a/wcfsetup/install/files/lib/system/database/util/PreparedStatementConditionBuilder.class.php b/wcfsetup/install/files/lib/system/database/util/PreparedStatementConditionBuilder.class.php index b722b4e716e..6b58933eb7d 100644 --- a/wcfsetup/install/files/lib/system/database/util/PreparedStatementConditionBuilder.class.php +++ b/wcfsetup/install/files/lib/system/database/util/PreparedStatementConditionBuilder.class.php @@ -26,6 +26,7 @@ class PreparedStatementConditionBuilder extends ConditionBuilder * @param array $parameters * @return void */ + #[\Override] public function add($condition, array $parameters = []) { if (!empty($parameters)) { diff --git a/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php b/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php index ace3bc8665d..0040ef764be 100644 --- a/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php +++ b/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php @@ -53,9 +53,7 @@ class DevtoolsSetup extends SingletonFactory */ protected $configuration = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { if (empty($_SERVER['DOCUMENT_ROOT'])) { diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsInstaller.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsInstaller.class.php index 576bd240e02..51b401c96f5 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsInstaller.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsInstaller.class.php @@ -24,9 +24,6 @@ class DevtoolsInstaller extends Installer */ protected $project; - /** - * @inheritDoc - */ public function __construct(DevtoolsProject $project, $targetDir, $source, $fileHandler = null, $folder = '') { $this->project = $project; @@ -34,9 +31,7 @@ public function __construct(DevtoolsProject $project, $targetDir, $source, $file parent::__construct($targetDir, $source, $fileHandler, $folder); } - /** - * @inheritDoc - */ + #[\Override] public function getTar($source) { $directory = null; diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php index 8ca110d9ada..2a19e0d1031 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php @@ -31,9 +31,7 @@ public function __construct(string $packageXmlPath) $this->packageXmlPath = $packageXmlPath; } - /** - * @inheritDoc - */ + #[\Override] public function openArchive() { if ($this->tar) { @@ -125,9 +123,7 @@ static function (\SplFileInfo $current, string $key, \RecursiveDirectoryIterator } } - /** - * @inheritDoc - */ + #[\Override] public function extractTar($filename, $tempPrefix = 'package_') { return $filename; diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php index a9eb2f9ee7d..ba9b174de22 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsTar.class.php @@ -53,17 +53,13 @@ public function registerFile($filename, $fullPath) $this->files[$filename] = $fullPath; } - /** - * @inheritDoc - */ + #[\Override] public function getIndexByFilename(string $filename) { return isset($this->files[$filename]) ? $filename : false; } - /** - * @inheritDoc - */ + #[\Override] public function extractToString($index) { if (!isset($this->files[$index])) { @@ -75,9 +71,7 @@ public function extractToString($index) return \file_get_contents($this->files[$index]); } - /** - * @inheritDoc - */ + #[\Override] public function extract($index, string $destination) { // The source file is empty, if the file is a symlink, which yield to an error. @@ -90,9 +84,7 @@ public function extract($index, string $destination) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getContentList() { if (!$this->read) { diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php index f1037f8105b..e354f68ae78 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php @@ -23,9 +23,6 @@ class DevtoolsPackageInstallationDispatcher extends PackageInstallationDispatche */ protected $project; - /** - * @inheritDoc - */ public function __construct(DevtoolsProject $project, ?PackageInstallationQueue $queue = null) { $this->queue = $queue; @@ -34,6 +31,7 @@ public function __construct(DevtoolsProject $project, ?PackageInstallationQueue } $this->nodeBuilder = new class($this) extends PackageInstallationNodeBuilder { + #[\Override] protected function buildOptionalNodes() { // does nothing; optional packages are not supported @@ -46,9 +44,9 @@ protected function buildOptionalNodes() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function createPackage(array $packageData) { $package = parent::createPackage($packageData); @@ -58,41 +56,31 @@ protected function createPackage(array $packageData) return $package; } - /** - * @inheritDoc - */ + #[\Override] public function getArchive() { return $this->project->getPackageArchive(); } - /** - * @inheritDoc - */ + #[\Override] public function getPackage() { return $this->project->getPackage(); } - /** - * @inheritDoc - */ + #[\Override] public function getPackageID() { return $this->project->getPackage()->packageID; } - /** - * @inheritDoc - */ + #[\Override] public function getPackageName() { return $this->project->getPackage()->getName(); } - /** - * @inheritDoc - */ + #[\Override] public function extractFiles($targetDir, $sourceArchive, $fileHandler = null) { return new DevtoolsInstaller($this->project, $targetDir, $sourceArchive, $fileHandler); diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationQueue.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationQueue.class.php index 6519ef5203c..3e20533825f 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationQueue.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationQueue.class.php @@ -16,9 +16,6 @@ */ class DevtoolsPackageInstallationQueue extends PackageInstallationQueue { - /** - * @inheritDoc - */ public function __construct(DevtoolsProject $project) { parent::__construct(null, [ diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPipEntryList.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPipEntryList.class.php index 83143f94dd9..4d54f164004 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPipEntryList.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPipEntryList.class.php @@ -26,9 +26,7 @@ class DevtoolsPipEntryList implements IDevtoolsPipEntryList */ protected $keys; - /** - * @inheritDoc - */ + #[\Override] public function addEntry($id, array $entry) { if ($this->keys === null) { @@ -54,9 +52,7 @@ public function addEntry($id, array $entry) $this->entries[$id] = $entry; } - /** - * @inheritDoc - */ + #[\Override] public function filterEntries($filter) { $filterType = \gettype($filter); @@ -104,9 +100,7 @@ public function filterEntries($filter) } } - /** - * @inheritDoc - */ + #[\Override] public function getEntries(?int $startIndex = null, ?int $entryCount = null) { if ($startIndex !== null && $entryCount !== null) { @@ -116,9 +110,7 @@ public function getEntries(?int $startIndex = null, ?int $entryCount = null) return $this->entries; } - /** - * @inheritDoc - */ + #[\Override] public function getKeys() { if ($this->keys === null) { @@ -128,17 +120,13 @@ public function getKeys() return $this->keys; } - /** - * @inheritDoc - */ + #[\Override] public function hasEntry($id) { return isset($this->entries[$id]); } - /** - * @inheritDoc - */ + #[\Override] public function setKeys(array $keys) { if ($this->keys !== null) { diff --git a/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php index 19ad81c9a70..a517f8b95f1 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php @@ -143,9 +143,9 @@ public function getEntryList() abstract protected function getProjectXmls($createXmlFiles = false); /** - * @inheritDoc * @return void */ + #[\Override] public function setEditedEntryIdentifier(string $identifier) { $editedEntries = []; @@ -253,9 +253,9 @@ public function deleteEntry($identifier, $addDeleteInstruction) } /** - * @inheritDoc * @return void */ + #[\Override] protected function deleteObject(\DOMElement $element) { $sql = "DELETE FROM wcf1_language_item diff --git a/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php index d93e8df6260..9a6f8569666 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php @@ -458,10 +458,9 @@ public function getEntryTypes() } /** - * @inheritDoc - * * @return \DOMNodeList<\DOMElement> */ + #[\Override] protected function getImportElements(\DOMXPath $xpath) { if ($this->entryType !== null) { diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index b2f5e6fd9c4..f160b515cac 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -25,9 +25,7 @@ class EditHistoryManager extends SingletonFactory */ protected $availableObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index b77024a2e78..4872857c517 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -742,6 +742,7 @@ public function send() /** * @see Email::getEmail() */ + #[\Override] public function __toString(): string { return $this->getEmail(); diff --git a/wcfsetup/install/files/lib/system/email/Mailbox.class.php b/wcfsetup/install/files/lib/system/email/Mailbox.class.php index 0c3e5cd984d..9bf166dcb86 100644 --- a/wcfsetup/install/files/lib/system/email/Mailbox.class.php +++ b/wcfsetup/install/files/lib/system/email/Mailbox.class.php @@ -172,6 +172,7 @@ public function getLanguage(): Language /** * Returns a string representation for use in a RFC 5322 message. */ + #[\Override] public function __toString(): string { if ( diff --git a/wcfsetup/install/files/lib/system/email/UserMailbox.class.php b/wcfsetup/install/files/lib/system/email/UserMailbox.class.php index 2a70a244b9d..447fceb9d98 100644 --- a/wcfsetup/install/files/lib/system/email/UserMailbox.class.php +++ b/wcfsetup/install/files/lib/system/email/UserMailbox.class.php @@ -37,6 +37,7 @@ public function __construct(User $user) /** * Returns the User object belonging to this Mailbox. */ + #[\Override] public function getUser(): User { $user = UserRuntimeCache::getInstance()->getObject($this->userID); diff --git a/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php index 82d096fe1c6..c900a647e6b 100644 --- a/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/AbstractMultipartMimePart.class.php @@ -37,17 +37,13 @@ public function __construct() $this->parts = new \SplObjectStorage(); } - /** - * @inheritDoc - */ + #[\Override] public function getContentTransferEncoding() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function setRecipient(?Mailbox $mailbox = null) { foreach ($this->parts as $part) { @@ -103,9 +99,7 @@ protected function getConcatenatedParts($parts) return $content; } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { $content = ""; diff --git a/wcfsetup/install/files/lib/system/email/mime/AttachmentMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/AttachmentMimePart.class.php index c70dda2571b..3a25ec4d801 100644 --- a/wcfsetup/install/files/lib/system/email/mime/AttachmentMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/AttachmentMimePart.class.php @@ -61,17 +61,13 @@ public function __construct($path, $filename = null, $mimeType = null) $this->content = \file_get_contents($this->path); } - /** - * @inheritDoc - */ + #[\Override] public function getContentType() { return $this->mimeType; } - /** - * @inheritDoc - */ + #[\Override] public function getContentTransferEncoding() { return 'base64'; @@ -82,6 +78,7 @@ public function getContentTransferEncoding() * * @see \wcf\system\email\mime\AbstractMimePart::getAdditionalHeaders() */ + #[\Override] public function getAdditionalHeaders() { if (StringUtil::isASCII($this->filename)) { @@ -103,9 +100,7 @@ public function getAdditionalHeaders() ]; } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { return $this->content; diff --git a/wcfsetup/install/files/lib/system/email/mime/MimePartFacade.class.php b/wcfsetup/install/files/lib/system/email/mime/MimePartFacade.class.php index 2e7c4aa196a..5d614ffda32 100644 --- a/wcfsetup/install/files/lib/system/email/mime/MimePartFacade.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/MimePartFacade.class.php @@ -51,9 +51,7 @@ public function __construct(array $texts, array $attachments = []) } } - /** - * @inheritDoc - */ + #[\Override] public function setRecipient(?Mailbox $mailbox = null) { if ($this->mimePart instanceof IRecipientAwareMimePart) { @@ -61,25 +59,19 @@ public function setRecipient(?Mailbox $mailbox = null) } } - /** - * @inheritDoc - */ + #[\Override] public function getContentType() { return $this->mimePart->getContentType(); } - /** - * @inheritDoc - */ + #[\Override] public function getContentTransferEncoding() { return $this->mimePart->getContentTransferEncoding(); } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { return $this->mimePart->getContent(); diff --git a/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php index 1d6dbba62e7..468e6985924 100644 --- a/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php @@ -12,17 +12,13 @@ */ class MultipartAlternativeMimePart extends AbstractMultipartMimePart { - /** - * @inheritDoc - */ + #[\Override] public function getContentType() { return "multipart/alternative;\r\n boundary=\"" . $this->boundary . "\""; } - /** - * @inheritDoc - */ + #[\Override] protected function getConcatenatedParts($parts) { \assert($parts instanceof \SplObjectStorage); @@ -54,6 +50,7 @@ protected function getConcatenatedParts($parts) * @throws \DomainException */ // @codingStandardsIgnoreStart + #[\Override] public function addMimePart(AbstractMimePart $part, $data = 1000) { parent::addMimePart($part, $data); diff --git a/wcfsetup/install/files/lib/system/email/mime/MultipartMixedMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/MultipartMixedMimePart.class.php index 4210624c3e3..8457c6221d2 100644 --- a/wcfsetup/install/files/lib/system/email/mime/MultipartMixedMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/MultipartMixedMimePart.class.php @@ -12,9 +12,7 @@ */ class MultipartMixedMimePart extends AbstractMultipartMimePart { - /** - * @inheritDoc - */ + #[\Override] public function getContentType() { return "multipart/mixed;\r\n boundary=\"" . $this->boundary . "\""; @@ -31,6 +29,7 @@ public function getContentType() * @throws \DomainException */ // @codingStandardsIgnoreStart + #[\Override] public function addMimePart(AbstractMimePart $part, $data = null) { parent::addMimePart($part, $data); diff --git a/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php index c81d68a482c..144aa4c94c4 100644 --- a/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php @@ -57,17 +57,13 @@ public function __construct($mimeType, $template, $application = 'wcf', $content $this->application = $application; } - /** - * @inheritDoc - */ + #[\Override] public function setRecipient(?Mailbox $mailbox = null) { $this->mailbox = $mailbox; } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { $language = WCF::getLanguage(); diff --git a/wcfsetup/install/files/lib/system/email/mime/TextMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/TextMimePart.class.php index 4dca4ce0de2..c9712304f37 100644 --- a/wcfsetup/install/files/lib/system/email/mime/TextMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/TextMimePart.class.php @@ -37,25 +37,19 @@ public function __construct($content, $mimeType) $this->content = $content; } - /** - * @inheritDoc - */ + #[\Override] public function getContentType() { return $this->mimeType . "; charset=UTF-8"; } - /** - * @inheritDoc - */ + #[\Override] public function getContentTransferEncoding() { return 'quoted-printable'; } - /** - * @inheritDoc - */ + #[\Override] public function getContent() { return $this->content; diff --git a/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php index 6921cd88dfc..e9b21ff5cbb 100644 --- a/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php @@ -38,6 +38,7 @@ public function __construct(?string $mbox = null) /** * Writes the given $email into the mbox. */ + #[\Override] public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo): void { $this->mbox->write(\sprintf( diff --git a/wcfsetup/install/files/lib/system/email/transport/DebugFolderEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/DebugFolderEmailTransport.class.php index 69663189636..c7acc24e4fa 100644 --- a/wcfsetup/install/files/lib/system/email/transport/DebugFolderEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/DebugFolderEmailTransport.class.php @@ -43,6 +43,7 @@ public function __construct(?string $folder = null) /** * Writes the given $email into the folder. */ + #[\Override] public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo): string { $eml = "Return-Path: <" . $envelopeFrom->getAddress() . ">\r\n"; diff --git a/wcfsetup/install/files/lib/system/email/transport/IStatusReportingEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/IStatusReportingEmailTransport.class.php index 4f31af8a10f..10747776d7d 100644 --- a/wcfsetup/install/files/lib/system/email/transport/IStatusReportingEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/IStatusReportingEmailTransport.class.php @@ -15,8 +15,6 @@ */ interface IStatusReportingEmailTransport extends IEmailTransport { - /** - * @inheritDoc - */ + #[\Override] public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo): string; } diff --git a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php index 21f5ced26d0..4c1fda94b07 100644 --- a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php @@ -23,6 +23,7 @@ final class PhpEmailTransport implements IEmailTransport * * @throws TransientFailure */ + #[\Override] public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo): void { $headers = \array_filter($email->getHeaders(), static function ($item) { diff --git a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php index dc0f0a67acb..87a436e9835 100644 --- a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php @@ -103,9 +103,6 @@ public function __construct( } } - /** - * @inheritDoc - */ public function __destruct() { $this->disconnect(); @@ -450,6 +447,7 @@ private function disconnect(): void * @throws \Exception * @throws PermanentFailure */ + #[\Override] public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo): string { // delivery is locked diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/ChangeShowOrder.class.php index 51d702de057..6db64693bcf 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/ChangeShowOrder.class.php @@ -26,6 +26,7 @@ #[PostRequest('/core/ads/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertAdCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/DisableAd.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/DisableAd.class.php index 4dfc515707f..2096cb666dd 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/DisableAd.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/DisableAd.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/ads/{id:\d+}/disable")] final class DisableAd implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $ad = Helper::fetchObjectFromRequestParameter($variables['id'], Ad::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/EnableAd.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/EnableAd.class.php index b5f779afbe7..ef654389f0e 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/EnableAd.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/EnableAd.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/ads/{id:\d+}/enable")] class EnableAd implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $ad = Helper::fetchObjectFromRequestParameter($variables['id'], Ad::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/GetShowOrder.class.php index 996c25c18bb..a3aab3bfa74 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/ads/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/ads/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertAdCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/ChangeShowOrder.class.php index e68bd15df44..de93ccbfef4 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/ChangeShowOrder.class.php @@ -25,6 +25,7 @@ #[PostRequest('/core/contact/options/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertOptionCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/DisableOption.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/DisableOption.class.php index 90ea35209fb..de1293812bb 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/DisableOption.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/DisableOption.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/contact/options/{id:\d+}/disable")] final class DisableOption implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertOptionCanBeDisabled(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/EnableOption.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/EnableOption.class.php index 1e27dd0b949..ba77a2f4a46 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/EnableOption.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/EnableOption.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/contact/options/{id:\d+}/enable")] final class EnableOption implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertOptionCanBeEnabled(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/GetShowOrder.class.php index 4dc1319e845..b161bbfc5e3 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/options/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/contact/options/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertOptionCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/ChangeShowOrder.class.php index 6e03d30156a..205f3d8a8db 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/ChangeShowOrder.class.php @@ -25,6 +25,7 @@ #[PostRequest('/core/contact/recipients/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertRecipientCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/DisableRecipient.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/DisableRecipient.class.php index 88fca8b7381..9ca07c7e0ba 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/DisableRecipient.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/DisableRecipient.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/contact/recipients/{id:\d+}/disable")] final class DisableRecipient implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertRecipientCanBeDisabled(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/EnableRecipient.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/EnableRecipient.class.php index ff9f776a503..cb0bc77968b 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/EnableRecipient.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/EnableRecipient.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/contact/recipients/{id:\d+}/enable")] final class EnableRecipient implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertRecipientCanBeEnabled(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/GetShowOrder.class.php index 275b8ae76e3..ae8f1dce308 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/contact/recipients/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/contact/recipients/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertRecipientCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/GenerateThumbnails.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/GenerateThumbnails.class.php index b206da32e9e..8e58577fdba 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/GenerateThumbnails.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/GenerateThumbnails.class.php @@ -24,6 +24,7 @@ #[PostRequest('/core/files/{id:\d+}/generate-thumbnails')] final class GenerateThumbnails implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $file = Helper::fetchObjectFromRequestParameter($variables['id'], File::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/PrepareUpload.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/PrepareUpload.class.php index 1b3b43111b5..e842ef89ca0 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/PrepareUpload.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/PrepareUpload.class.php @@ -27,6 +27,7 @@ #[PostRequest('/core/files/upload')] final class PrepareUpload implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $parameters = Helper::mapApiParameters($request, PostUploadParameters::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/upload/SaveChunk.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/upload/SaveChunk.class.php index 4f90be14267..c4e4a154418 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/files/upload/SaveChunk.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/files/upload/SaveChunk.class.php @@ -32,6 +32,7 @@ final class SaveChunk implements IController */ private const FREAD_BUFFER_SIZE = 10 * 1_024 * 1_024; + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $fileTemporary = Helper::fetchObjectFromRequestParameter($variables['identifier'], FileTemporary::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeLabelShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeLabelShowOrder.class.php index 97235004cd0..23a1f02ceed 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeLabelShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeLabelShowOrder.class.php @@ -28,6 +28,7 @@ #[PostRequest('/core/labels/groups/{id:\d+}/labels/show-order')] final class ChangeLabelShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.content.label.canManageLabel']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeShowOrder.class.php index 5374a616168..c6562486569 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/ChangeShowOrder.class.php @@ -24,6 +24,7 @@ #[PostRequest('/core/labels/groups/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.content.label.canManageLabel']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetLabelShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetLabelShowOrder.class.php index f5a4b7e5d14..177f59a0f2a 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetLabelShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetLabelShowOrder.class.php @@ -26,6 +26,7 @@ #[GetRequest('/core/labels/groups/{id:\d+}/labels/show-order')] final class GetLabelShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.content.label.canManageLabel']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetShowOrder.class.php index 2d52220f5a2..6f272cdead9 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/labels/groups/GetShowOrder.class.php @@ -23,6 +23,7 @@ #[GetRequest('/core/labels/groups/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.content.label.canManageLabel']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/ChangeShowOrder.class.php index edfb8b0fb3a..2c46a579149 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/ChangeShowOrder.class.php @@ -25,6 +25,7 @@ #[PostRequest('/core/notices/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.notice.canManageNotice']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DisableNotice.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DisableNotice.class.php index 29346f5698c..d73935c0822 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DisableNotice.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DisableNotice.class.php @@ -22,6 +22,7 @@ #[PostRequest("/core/notices/{id:\d+}/disable")] final class DisableNotice implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $notice = Helper::fetchObjectFromRequestParameter($variables['id'], Notice::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DismissNotice.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DismissNotice.class.php index 87b295f9a4d..d8a3020d172 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DismissNotice.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/DismissNotice.class.php @@ -22,6 +22,7 @@ #[PostRequest('/core/notices/{id:\d+}/dismiss')] final class DismissNotice implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $notice = Helper::fetchObjectFromRequestParameter($variables['id'], Notice::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/EnableNotice.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/EnableNotice.class.php index 047e40d769d..8b25b41ba9a 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/EnableNotice.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/EnableNotice.class.php @@ -22,6 +22,7 @@ #[PostRequest("/core/notices/{id:\d+}/enable")] final class EnableNotice implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $notice = Helper::fetchObjectFromRequestParameter($variables['id'], Notice::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/GetShowOrder.class.php index b0642ffaa57..b41151102c3 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/notices/GetShowOrder.class.php @@ -23,6 +23,7 @@ #[GetRequest('/core/notices/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { WCF::getSession()->checkPermissions(['admin.notice.canManageNotice']); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/ChangeShowOrder.class.php index dbd375605d3..cd96f764b88 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/ChangeShowOrder.class.php @@ -26,6 +26,7 @@ #[PostRequest('/core/reactions/types/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertReactionTypeCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/DisableType.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/DisableType.class.php index 4ec74ca974d..5b5eb042f58 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/DisableType.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/DisableType.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/reactions/types/{id:\d+}/disable")] final class DisableType implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $reactionType = Helper::fetchObjectFromRequestParameter($variables['id'], ReactionType::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/EnableType.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/EnableType.class.php index 46efa33a9f9..ce678145a57 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/EnableType.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/EnableType.class.php @@ -24,6 +24,7 @@ #[PostRequest("/core/reactions/types/{id:\d+}/enable")] final class EnableType implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $reactionType = Helper::fetchObjectFromRequestParameter($variables['id'], ReactionType::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/GetShowOrder.class.php index 47e0a1d41fd..9ffc43e56b9 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/reactions/types/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/reactions/types/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertReactionTypeCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/ChangeShowOrder.class.php index c2a9aa776f6..c8be6096d86 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/ChangeShowOrder.class.php @@ -26,6 +26,7 @@ #[PostRequest('/core/smilies/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertSmileyCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/GetShowOrder.class.php index 0b3df4a3886..aa93443eda1 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/smilies/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertSmileyCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/ChangeSmileyShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/ChangeSmileyShowOrder.class.php index 362eb78157d..59eb31b5fc3 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/ChangeSmileyShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/ChangeSmileyShowOrder.class.php @@ -28,6 +28,7 @@ #[PostRequest('/core/smilies/categories/{id:\d+}/show-order')] final class ChangeSmileyShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $smileyCategory = Helper::fetchObjectFromRequestParameter($variables['id'], Category::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/GetSmileyShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/GetSmileyShowOrder.class.php index 178bf9bea81..d3be8558a65 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/GetSmileyShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/smilies/categories/GetSmileyShowOrder.class.php @@ -26,6 +26,7 @@ #[GetRequest('/core/smilies/categories/{id:\d+}/show-order')] final class GetSmileyShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $smileyCategory = Helper::fetchObjectFromRequestParameter($variables['id'], Category::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/ChangeShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/ChangeShowOrder.class.php index a4d17efed22..e8eaedfcdee 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/ChangeShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/ChangeShowOrder.class.php @@ -26,6 +26,7 @@ #[PostRequest('/core/trophies/show-order')] final class ChangeShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertTrophyCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/DisableTrophy.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/DisableTrophy.class.php index 73488a192e1..385d6d87daf 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/DisableTrophy.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/DisableTrophy.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/trophies/{id:\d+}/disable")] final class DisableTrophy implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $trophy = Helper::fetchObjectFromRequestParameter($variables['id'], Trophy::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/EnableTrophy.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/EnableTrophy.class.php index f5cf328a514..415c218dd37 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/EnableTrophy.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/EnableTrophy.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/trophies/{id:\d+}/enable")] final class EnableTrophy implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $trophy = Helper::fetchObjectFromRequestParameter($variables['id'], Trophy::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/GetShowOrder.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/GetShowOrder.class.php index d2e52411811..b1a82e30fd4 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/GetShowOrder.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/trophies/GetShowOrder.class.php @@ -24,6 +24,7 @@ #[GetRequest('/core/trophies/show-order')] final class GetShowOrder implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertTrophyCanBeSorted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DeleteAssignment.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DeleteAssignment.class.php index 7e1415d21cd..d769fea6541 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DeleteAssignment.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DeleteAssignment.class.php @@ -23,6 +23,7 @@ #[DeleteRequest("/core/users/groups/assignments/{id:\d+}")] final class DeleteAssignment implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $this->assertAssignmentCanBeDeleted(); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DisableAssignment.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DisableAssignment.class.php index c2919d0973d..2277d633efa 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DisableAssignment.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/DisableAssignment.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/users/groups/assignments/{id:\d+}/disable")] final class DisableAssignment implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $assignment = Helper::fetchObjectFromRequestParameter($variables['id'], UserGroupAssignment::class); diff --git a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/EnableAssignment.class.php b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/EnableAssignment.class.php index 37e3302993b..7ebeadfff5b 100644 --- a/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/EnableAssignment.class.php +++ b/wcfsetup/install/files/lib/system/endpoint/controller/core/users/groups/assignments/EnableAssignment.class.php @@ -23,6 +23,7 @@ #[PostRequest("/core/users/groups/assignments/{id:\d+}/enable")] final class EnableAssignment implements IController { + #[\Override] public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface { $assignment = Helper::fetchObjectFromRequestParameter($variables['id'], UserGroupAssignment::class); diff --git a/wcfsetup/install/files/lib/system/event/EventHandler.class.php b/wcfsetup/install/files/lib/system/event/EventHandler.class.php index 6ec41ccae01..39dd66cc7b4 100644 --- a/wcfsetup/install/files/lib/system/event/EventHandler.class.php +++ b/wcfsetup/install/files/lib/system/event/EventHandler.class.php @@ -61,6 +61,7 @@ final class EventHandler extends SingletonFactory /** * Loads all registered actions of the active package. */ + #[\Override] protected function init(): void { $environment = ((\class_exists('wcf\system\WCFACP', false) || \class_exists( diff --git a/wcfsetup/install/files/lib/system/event/listener/AbstractEventListener.class.php b/wcfsetup/install/files/lib/system/event/listener/AbstractEventListener.class.php index b178155e341..802d4e16ae6 100644 --- a/wcfsetup/install/files/lib/system/event/listener/AbstractEventListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/AbstractEventListener.class.php @@ -38,9 +38,7 @@ abstract class AbstractEventListener implements IParameterizedEventListener 'validateAction', ]; - /** - * @inheritDoc - */ + #[\Override] final public function execute($eventObj, $className, $eventName, array &$parameters) { $methodName = 'on' . \ucfirst($eventName); diff --git a/wcfsetup/install/files/lib/system/event/listener/AbstractUserActionRenameListener.class.php b/wcfsetup/install/files/lib/system/event/listener/AbstractUserActionRenameListener.class.php index 045f03e1c4d..2c93e5bf67e 100644 --- a/wcfsetup/install/files/lib/system/event/listener/AbstractUserActionRenameListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/AbstractUserActionRenameListener.class.php @@ -28,9 +28,7 @@ abstract class AbstractUserActionRenameListener implements IParameterizedEventLi */ protected $databaseTables = []; - /** - * @inheritDoc - */ + #[\Override] public function execute($eventObj, $className, $eventName, array &$parameters) { /** @var UserAction $eventObj */ diff --git a/wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php b/wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php index a9948210905..8ef18c6441c 100644 --- a/wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/AbstractUserMergeListener.class.php @@ -32,9 +32,7 @@ abstract class AbstractUserMergeListener implements IParameterizedEventListener */ protected $databaseTables = []; - /** - * @inheritDoc - */ + #[\Override] public function execute($eventObj, $className, $eventName, array &$parameters) { \assert($eventObj instanceof UserMergeForm); diff --git a/wcfsetup/install/files/lib/system/event/listener/ArticleLinkHtmlInputNodeProcessorListener.class.php b/wcfsetup/install/files/lib/system/event/listener/ArticleLinkHtmlInputNodeProcessorListener.class.php index 85a49025aaa..3e63d73970e 100644 --- a/wcfsetup/install/files/lib/system/event/listener/ArticleLinkHtmlInputNodeProcessorListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/ArticleLinkHtmlInputNodeProcessorListener.class.php @@ -18,9 +18,7 @@ */ class ArticleLinkHtmlInputNodeProcessorListener extends AbstractHtmlInputNodeProcessorListener { - /** - * @inheritDoc - */ + #[\Override] public function execute($eventObj, $className, $eventName, array &$parameters) { /** @var HtmlInputNodeProcessor $eventObj */ diff --git a/wcfsetup/install/files/lib/system/event/listener/UserLinkHtmlInputNodeProcessorListener.class.php b/wcfsetup/install/files/lib/system/event/listener/UserLinkHtmlInputNodeProcessorListener.class.php index 1191a37d0ce..94ce0aec06e 100644 --- a/wcfsetup/install/files/lib/system/event/listener/UserLinkHtmlInputNodeProcessorListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/UserLinkHtmlInputNodeProcessorListener.class.php @@ -17,9 +17,7 @@ */ class UserLinkHtmlInputNodeProcessorListener extends AbstractHtmlInputNodeProcessorListener { - /** - * @inheritDoc - */ + #[\Override] public function execute($eventObj, $className, $eventName, array &$parameters) { /** @var HtmlInputNodeProcessor $eventObj */ diff --git a/wcfsetup/install/files/lib/system/exception/ErrorException.class.php b/wcfsetup/install/files/lib/system/exception/ErrorException.class.php index df6fa22108c..08096b715a7 100644 --- a/wcfsetup/install/files/lib/system/exception/ErrorException.class.php +++ b/wcfsetup/install/files/lib/system/exception/ErrorException.class.php @@ -42,7 +42,6 @@ public function __construct( } /** - * @inheritDoc * @return int */ public function getSeverity() diff --git a/wcfsetup/install/files/lib/system/exception/IllegalLinkException.class.php b/wcfsetup/install/files/lib/system/exception/IllegalLinkException.class.php index f2fcf828091..9de6aa3ef49 100644 --- a/wcfsetup/install/files/lib/system/exception/IllegalLinkException.class.php +++ b/wcfsetup/install/files/lib/system/exception/IllegalLinkException.class.php @@ -21,9 +21,7 @@ public function __construct() parent::__construct(WCF::getLanguage()->getDynamicVariable('wcf.page.error.illegalLink')); } - /** - * @inheritDoc - */ + #[\Override] public function show() { @\header('HTTP/1.1 404 Not Found'); diff --git a/wcfsetup/install/files/lib/system/exception/NamedUserException.class.php b/wcfsetup/install/files/lib/system/exception/NamedUserException.class.php index c97ebf44920..9808b7451ab 100644 --- a/wcfsetup/install/files/lib/system/exception/NamedUserException.class.php +++ b/wcfsetup/install/files/lib/system/exception/NamedUserException.class.php @@ -40,6 +40,7 @@ public function getHtmlString(): ?HtmlString /** * Shows a styled page with the given error message. */ + #[\Override] public function show() { if (!\class_exists(WCFACP::class, false)) { diff --git a/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php b/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php index 6c648a0f1f3..d7d4a616a74 100644 --- a/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php +++ b/wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php @@ -34,6 +34,7 @@ public function __construct($message = null) /** * Prints a permission denied exception. */ + #[\Override] public function show() { if (!\class_exists(WCFACP::class, false)) { diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 0f3030e9597..200f2f49d28 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -53,9 +53,7 @@ public function getDescription() return $this->description; } - /** - * @inheritDoc - */ + #[\Override] public function getExtraInformation() { if ($this->description) { diff --git a/wcfsetup/install/files/lib/system/exception/UserException.class.php b/wcfsetup/install/files/lib/system/exception/UserException.class.php index 9a4c17b4d43..f955bc1486f 100644 --- a/wcfsetup/install/files/lib/system/exception/UserException.class.php +++ b/wcfsetup/install/files/lib/system/exception/UserException.class.php @@ -13,9 +13,7 @@ */ abstract class UserException extends \Exception implements IPrintableException { - /** - * @inheritDoc - */ + #[\Override] public function show() { if (WCF::debugModeIsEnabled()) { diff --git a/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php b/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php index 1b2c5bd5e73..7023f90a861 100644 --- a/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php +++ b/wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php @@ -68,9 +68,7 @@ public function getFieldName() return $this->fieldName; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->message; diff --git a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php index 11efc64c65b..ad860875581 100644 --- a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php @@ -87,9 +87,7 @@ abstract class AbstractExporter implements IExporter */ protected $selectedData = []; - /** - * @inheritDoc - */ + #[\Override] public function setData( $databaseHost, $databaseUser, @@ -109,9 +107,7 @@ public function setData( $this->additionalData = $additionalData; } - /** - * @inheritDoc - */ + #[\Override] public function init() { $host = $this->databaseHost; @@ -131,25 +127,19 @@ public function init() ); } - /** - * @inheritDoc - */ + #[\Override] public function validateDatabaseAccess() { $this->init(); } - /** - * @inheritDoc - */ + #[\Override] public function getDefaultDatabasePrefix() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function countLoops($objectType) { if (!isset($this->methods[$objectType]) || !\method_exists($this, 'count' . $this->methods[$objectType])) { @@ -162,9 +152,7 @@ public function countLoops($objectType) return (int)\ceil($count / $limit); } - /** - * @inheritDoc - */ + #[\Override] public function exportData($objectType, $loopCount = 0) { if (!isset($this->methods[$objectType]) || !\method_exists($this, 'export' . $this->methods[$objectType])) { @@ -175,9 +163,7 @@ public function exportData($objectType, $loopCount = 0) \call_user_func([$this, 'export' . $this->methods[$objectType]], $loopCount * $limit, $limit); } - /** - * @inheritDoc - */ + #[\Override] public function validateSelectedData(array $selectedData) { $this->selectedData = $selectedData; diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php index 3e923858ad4..aa214ac4b94 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php @@ -49,9 +49,7 @@ class UploadHandler extends SingletonFactory */ protected $fields = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cleanupStorage(); diff --git a/wcfsetup/install/files/lib/system/form/builder/CustomFormNode.class.php b/wcfsetup/install/files/lib/system/form/builder/CustomFormNode.class.php index cd7b5c35f79..484ff4b116d 100644 --- a/wcfsetup/install/files/lib/system/form/builder/CustomFormNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/CustomFormNode.class.php @@ -46,17 +46,13 @@ public function getContent() return $this->content; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return $this->getContent(); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/builder/DialogFormDocument.class.php b/wcfsetup/install/files/lib/system/form/builder/DialogFormDocument.class.php index bc981c31aa1..36b907ccd64 100644 --- a/wcfsetup/install/files/lib/system/form/builder/DialogFormDocument.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/DialogFormDocument.class.php @@ -48,9 +48,7 @@ public function cancelable($cancelable = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] protected function createDefaultButton() { parent::createDefaultButton(); diff --git a/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php b/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php index 152e0546a0f..9b29c076452 100644 --- a/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php @@ -153,9 +153,7 @@ public function __destruct() $this->cleanup(); } - /** - * @inheritDoc - */ + #[\Override] public function action(string $action) { $this->action = $action; @@ -163,9 +161,7 @@ public function action(string $action) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addButton(IFormButton $button) { if (isset($this->buttons[$button->getId()])) { @@ -179,9 +175,7 @@ public function addButton(IFormButton $button) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addDefaultButton(bool $addDefaultButton = true) { if ($this->isBuilt) { @@ -193,9 +187,7 @@ public function addDefaultButton(bool $addDefaultButton = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function ajax(bool $ajax = true) { $this->ajax = $ajax; @@ -203,9 +195,7 @@ public function ajax(bool $ajax = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function build() { if ($this->isBuilt) { @@ -273,17 +263,13 @@ protected function createDefaultButton() ); } - /** - * @inheritDoc - */ + #[\Override] public function didReadValues() { return $this->didReadValues; } - /** - * @inheritDoc - */ + #[\Override] public function errorMessage($languageItem = null, array $variables = []) { if ($languageItem === null) { @@ -307,9 +293,7 @@ public function errorMessage($languageItem = null, array $variables = []) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function formMode(string $formMode) { if ($this->formMode !== null) { @@ -325,9 +309,7 @@ public function formMode(string $formMode) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getAction() { if ($this->action === null && !$this->isAjax()) { @@ -337,9 +319,7 @@ public function getAction() return $this->action; } - /** - * @inheritDoc - */ + #[\Override] public function getButton(string $buttonId) { if (!$this->hasButton($buttonId)) { @@ -349,17 +329,13 @@ public function getButton(string $buttonId) return $this->buttons[$buttonId]; } - /** - * @inheritDoc - */ + #[\Override] public function getButtons() { return $this->buttons; } - /** - * @inheritDoc - */ + #[\Override] public function getData() { if (!$this->didReadValues()) { @@ -369,9 +345,7 @@ public function getData() return $this->getDataHandler()->getFormData($this); } - /** - * @inheritDoc - */ + #[\Override] public function getDataHandler() { if ($this->dataHandler === null) { @@ -382,17 +356,13 @@ public function getDataHandler() return $this->dataHandler; } - /** - * @inheritDoc - */ + #[\Override] public function getDocument() { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getEnctype() { if ($this->enctype === '') { @@ -411,9 +381,7 @@ public function getEnctype() return $this->enctype; } - /** - * @inheritDoc - */ + #[\Override] public function getErrorMessage() { if ($this->errorMessage === null) { @@ -423,9 +391,7 @@ public function getErrorMessage() return $this->errorMessage; } - /** - * @inheritDoc - */ + #[\Override] public function getFormMode() { if ($this->formMode === null) { @@ -435,9 +401,7 @@ public function getFormMode() return $this->formMode; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { if (!$this->isBuilt) { @@ -451,17 +415,13 @@ public function getHtml() ); } - /** - * @inheritDoc - */ + #[\Override] public function getMethod() { return $this->method; } - /** - * @inheritDoc - */ + #[\Override] public function getPrefix() { if ($this->prefix === null) { @@ -471,9 +431,7 @@ public function getPrefix() return $this->prefix . '_'; } - /** - * @inheritDoc - */ + #[\Override] public function getRequestData($index = null) { if ($this->requestData === null) { @@ -491,9 +449,7 @@ public function getRequestData($index = null) return $this->requestData; } - /** - * @inheritDoc - */ + #[\Override] public function getSuccessMessage() { if ($this->successMessage === null) { @@ -508,33 +464,25 @@ public function getSuccessMessage() return $this->successMessage; } - /** - * @inheritDoc - */ + #[\Override] public function hasButton(string $buttonId) { return isset($this->buttons[$buttonId]); } - /** - * @inheritDoc - */ + #[\Override] public function hasDefaultButton() { return $this->addDefaultButton; } - /** - * @inheritDoc - */ + #[\Override] public function hasValidationErrors(): bool { return $this->isInvalid() || $this->traitHasValidationErrors(); } - /** - * @inheritDoc - */ + #[\Override] public function hasRequestData($index = null) { $requestData = $this->getRequestData(); @@ -546,9 +494,7 @@ public function hasRequestData($index = null) return !empty($requestData); } - /** - * @inheritDoc - */ + #[\Override] public function invalid(bool $invalid = true) { $this->invalid = $invalid; @@ -556,26 +502,22 @@ public function invalid(bool $invalid = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function isAjax() { return $this->ajax; } - /** - * @inheritDoc - */ + #[\Override] public function isInvalid() { return $this->invalid; } /** - * @inheritDoc * @since 5.4 */ + #[\Override] public function markRequiredFields(bool $markRequiredFields = true) { $this->markRequiredFields = $markRequiredFields; @@ -584,18 +526,18 @@ public function markRequiredFields(bool $markRequiredFields = true) } /** - * @inheritDoc * @since 5.4 */ + #[\Override] public function marksRequiredFields(): bool { return $this->markRequiredFields; } /** - * @inheritDoc * @since 5.3 */ + #[\Override] public function needsRequiredFieldsInfo() { if (!$this->marksRequiredFields()) { @@ -620,9 +562,7 @@ public function needsRequiredFieldsInfo() return false; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(IStorableObject $object, $loadValues = true) { if ($this->formMode === null) { @@ -655,9 +595,7 @@ public function updatedObject(IStorableObject $object, $loadValues = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function method(string $method) { if ($method !== 'get' && $method !== 'post') { @@ -669,9 +607,7 @@ public function method(string $method) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function prefix(string $prefix) { static::validateId($prefix); @@ -681,9 +617,7 @@ public function prefix(string $prefix) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValues(): static { if ($this->requestData === null) { @@ -695,9 +629,7 @@ public function readValues(): static return $this->traitReadValues(); } - /** - * @inheritDoc - */ + #[\Override] public function requestData(array $requestData) { if ($this->requestData !== null) { @@ -709,9 +641,7 @@ public function requestData(array $requestData) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function showErrorMessage(bool $showErrorMessage = true) { $this->showErrorMessage = $showErrorMessage; @@ -719,9 +649,7 @@ public function showErrorMessage(bool $showErrorMessage = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function showSuccessMessage(bool $showSuccessMessage = true) { $this->showSuccessMessage = $showSuccessMessage; @@ -729,25 +657,19 @@ public function showSuccessMessage(bool $showSuccessMessage = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function showsErrorMessage() { return $this->showErrorMessage; } - /** - * @inheritDoc - */ + #[\Override] public function showsSuccessMessage() { return $this->showSuccessMessage; } - /** - * @inheritDoc - */ + #[\Override] public function successMessage($languageItem = null, array $variables = []) { if ($languageItem === null) { @@ -771,9 +693,7 @@ public function successMessage($languageItem = null, array $variables = []) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // check security token @@ -786,9 +706,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function getFormField(string $nodeId): ?IFormField { $node = $this->getNodeById($nodeId); diff --git a/wcfsetup/install/files/lib/system/form/builder/LanguageItemFormNode.class.php b/wcfsetup/install/files/lib/system/form/builder/LanguageItemFormNode.class.php index 1111a519941..a1f0081538a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/LanguageItemFormNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/LanguageItemFormNode.class.php @@ -29,9 +29,7 @@ class LanguageItemFormNode implements IFormChildNode */ protected $variables = []; - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getLanguage()->getDynamicVariable($this->getLanguageItem(), $this->getVariables()); @@ -73,9 +71,7 @@ public function languageItem(string $languageItem) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/builder/NoticeFormNode.class.php b/wcfsetup/install/files/lib/system/form/builder/NoticeFormNode.class.php index 19fa232bf99..9460c41650a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/NoticeFormNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/NoticeFormNode.class.php @@ -14,9 +14,7 @@ class NoticeFormNode extends LanguageItemFormNode { protected NoticeFormNodeType $type = NoticeFormNodeType::Info; - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return '' . parent::getHtml() . ''; diff --git a/wcfsetup/install/files/lib/system/form/builder/Psr15DialogForm.class.php b/wcfsetup/install/files/lib/system/form/builder/Psr15DialogForm.class.php index cc759fadf08..003e9a890ba 100644 --- a/wcfsetup/install/files/lib/system/form/builder/Psr15DialogForm.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/Psr15DialogForm.class.php @@ -63,33 +63,25 @@ public function toResponse(): ResponseInterface ]); } - /** - * @inheritDoc - */ + #[\Override] public function addButton(IFormButton $button) { throw new \LogicException(self::class . ' does not support custom buttons.'); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $this->traitValidate(); } - /** - * @inheritDoc - */ + #[\Override] protected function createDefaultButton() { /* Buttons are implicitly added by the dialog API. */ } - /** - * @inheritDoc - */ + #[\Override] public function ajax(bool $ajax = true) { /* This implementation forces `$ajax = true`. */ diff --git a/wcfsetup/install/files/lib/system/form/builder/TemplateFormNode.class.php b/wcfsetup/install/files/lib/system/form/builder/TemplateFormNode.class.php index 1e3e75b0368..7c216a70756 100644 --- a/wcfsetup/install/files/lib/system/form/builder/TemplateFormNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/TemplateFormNode.class.php @@ -74,9 +74,7 @@ public function getApplication() return $this->application; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render( @@ -127,9 +125,7 @@ public function templateName($templateName) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php b/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php index caa627daff7..82752bb3e29 100644 --- a/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php @@ -36,9 +36,7 @@ class FormButton implements IFormButton */ protected $templateName = 'shared_formButton'; - /** - * @inheritDoc - */ + #[\Override] public function accessKey(?string $accessKey = null) { // the value [of the accesskey attribute] must be an ordered set of unique @@ -61,17 +59,13 @@ public function accessKey(?string $accessKey = null) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getAccessKey() { return $this->accessKey; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render( @@ -83,17 +77,13 @@ public function getHtml() ); } - /** - * @inheritDoc - */ + #[\Override] public function isSubmit() { return $this->submit; } - /** - * @inheritDoc - */ + #[\Override] public function submit(bool $submit = true) { $this->submit = $submit; @@ -105,9 +95,7 @@ public function submit(bool $submit = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php b/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php index bf2a8b715fb..06307cddc12 100644 --- a/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php @@ -51,9 +51,7 @@ public function getObjectId() return $this->objectId; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.message'; diff --git a/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php index a1d120504e5..66c4ffc5c38 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/FormContainer.class.php @@ -41,17 +41,12 @@ class FormContainer implements IFormContainer */ protected $templateApplication = 'wcf'; - /** - * @inheritDoc - */ public function __construct() { $this->addClass('section'); } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render( @@ -64,17 +59,15 @@ public function getHtml() } /** - * @inheritDoc * @since 5.3 */ + #[\Override] public function markAsRequired() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, bool $loadValues = true) { // does nothing @@ -82,9 +75,7 @@ public function updatedObject(array $data, IStorableObject $object, bool $loadVa return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validateChild(IFormChildNode $child): void { $this->defaultValidateChild($child); @@ -93,7 +84,7 @@ public function validateChild(IFormChildNode $child): void if (!($child instanceof ITabFormContainer)) { throw new \InvalidArgumentException( "Cannot append non-tab container " . \get_class($child) - . "('{$child->getId()}') to container '{$this->getId()}'" + . "('{$child->getId()}') to container '{$this->getId()}'" ); } @@ -113,7 +104,7 @@ public function validateChild(IFormChildNode $child): void if ($this instanceof ITabFormContainer && !($child instanceof IFormContainer)) { throw new \InvalidArgumentException( "Child " . \get_class($child) - . "('{$child->getId()}') has to be a form container to be appended to tab container '{$this->getId()}'." + . "('{$child->getId()}') has to be a form container to be appended to tab container '{$this->getId()}'." ); } diff --git a/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php index 4088f3a9ca5..0d6efb669d3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/RowFormContainer.class.php @@ -20,9 +20,6 @@ class RowFormContainer extends FormContainer */ protected $templateName = 'shared_rowFormContainer'; - /** - * @inheritDoc - */ public function __construct() { $this->addClasses(['row', 'rowColGap', 'formGrid']); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/RowFormFieldContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/RowFormFieldContainer.class.php index 13a50199d8f..1a0f93d9e3c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/RowFormFieldContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/RowFormFieldContainer.class.php @@ -24,17 +24,12 @@ class RowFormFieldContainer extends FormContainer */ protected $templateName = 'shared_rowFormFieldContainer'; - /** - * @inheritDoc - */ public function __construct() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function appendChild(IFormChildNode $child): static { if ((!$child instanceof IFormField)) { diff --git a/wcfsetup/install/files/lib/system/form/builder/container/SuffixFormFieldContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/SuffixFormFieldContainer.class.php index e5107ea7cbe..343a03c2750 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/SuffixFormFieldContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/SuffixFormFieldContainer.class.php @@ -64,9 +64,7 @@ public function getField() return $this->field; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render('wcf', 'shared_suffixFormFieldContainer', [ diff --git a/wcfsetup/install/files/lib/system/form/builder/container/TabFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/TabFormContainer.class.php index ebfa8d2e819..cc431874277 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/TabFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/TabFormContainer.class.php @@ -17,9 +17,6 @@ class TabFormContainer extends FormContainer implements ITabFormContainer */ protected $templateName = 'shared_tabFormContainer'; - /** - * @inheritDoc - */ public function __construct() { $this->addClass('tabMenuContent'); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php index 07e0ccf3dca..25ad96aafa1 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php @@ -23,9 +23,6 @@ class TabMenuFormContainer extends FormContainer implements ITabMenuFormContaine */ protected $useAnchors = true; - /** - * @inheritDoc - */ public function __construct() { $this->addClass('section') diff --git a/wcfsetup/install/files/lib/system/form/builder/container/TabTabMenuFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/TabTabMenuFormContainer.class.php index 793a2641fe4..dcc7b871e03 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/TabTabMenuFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/TabTabMenuFormContainer.class.php @@ -17,9 +17,6 @@ class TabTabMenuFormContainer extends TabMenuFormContainer implements ITabFormCo */ protected $templateName = 'shared_tabTabMenuFormContainer'; - /** - * @inheritDoc - */ public function __construct() { $this->addClasses(['tabMenuContainer', 'tabMenuContent']); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php index f7c6592789d..83fa0c70432 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php @@ -141,9 +141,9 @@ class WysiwygFormContainer extends FormContainer protected WysiwygQuoteFormContainer $quoteContainer; /** - * @inheritDoc * @return static */ + #[\Override] public static function create($id) { // the actual id is used for the form field containing the text @@ -359,9 +359,7 @@ public function getWysiwygField() return $this->wysiwygField; } - /** - * @inheritDoc - */ + #[\Override] public function id($id) { $this->wysiwygId(\substr($id, 0, -\strlen('Container'))); @@ -395,8 +393,8 @@ public function isPreviewButtonEnabled() /** * @since 5.3 - * @inheritDoc */ + #[\Override] public function markAsRequired() { return $this->getWysiwygField()->isRequired(); @@ -431,9 +429,7 @@ public function messageObjectType($messageObjectType) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, bool $loadValues = true) { $this->objectId = $object->{$object::getDatabaseTableIndexName()}; @@ -469,9 +465,7 @@ public function pollObjectType($pollObjectType) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php index a321c074a8d..d972e8cd052 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygPollFormContainer.class.php @@ -166,9 +166,7 @@ public function getMaxVotesField() return $this->maxVotesField; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.poll'; @@ -243,17 +241,13 @@ public function getSortByVotesField() return $this->sortByVotesField; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return parent::isAvailable() && $this->objectType !== null; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, bool $loadValues = true) { if ($loadValues && $object instanceof IPollContainer && $object->getPollID() !== null) { @@ -278,9 +272,7 @@ public function updatedObject(array $data, IStorableObject $object, bool $loadVa return parent::updatedObject($data, $object); } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygSmileyFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygSmileyFormContainer.class.php index 460fe38851e..5cb8495c721 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygSmileyFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygSmileyFormContainer.class.php @@ -38,9 +38,7 @@ public function __construct() ->attribute('data-collapsible', 'false'); } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygTabMenuFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygTabMenuFormContainer.class.php index b44d6cd8370..44c1b781bcb 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygTabMenuFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygTabMenuFormContainer.class.php @@ -30,9 +30,7 @@ public function __construct() ->addClass('messageTabMenu'); } - /** - * @inheritDoc - */ + #[\Override] public function appendChild(IFormChildNode $child): static { $child->removeClass('tabMenuContent') diff --git a/wcfsetup/install/files/lib/system/form/builder/data/FormDataHandler.class.php b/wcfsetup/install/files/lib/system/form/builder/data/FormDataHandler.class.php index 339743958cc..1e8f44894e8 100644 --- a/wcfsetup/install/files/lib/system/form/builder/data/FormDataHandler.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/data/FormDataHandler.class.php @@ -24,9 +24,7 @@ class FormDataHandler implements IFormDataHandler */ protected $processors = []; - /** - * @inheritDoc - */ + #[\Override] public function addProcessor(IFormDataProcessor $processor) { $this->processors[] = $processor; @@ -34,9 +32,7 @@ public function addProcessor(IFormDataProcessor $processor) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getFormData(IFormDocument $document) { $parameters = []; @@ -56,9 +52,7 @@ public function getFormData(IFormDocument $document) return $parameters; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectData(IFormDocument $document, IStorableObject $object) { $data = $object->getData(); diff --git a/wcfsetup/install/files/lib/system/form/builder/data/processor/AbstractFormDataProcessor.class.php b/wcfsetup/install/files/lib/system/form/builder/data/processor/AbstractFormDataProcessor.class.php index 4cf235933d3..ae4bbf60dc9 100644 --- a/wcfsetup/install/files/lib/system/form/builder/data/processor/AbstractFormDataProcessor.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/data/processor/AbstractFormDataProcessor.class.php @@ -18,17 +18,13 @@ */ abstract class AbstractFormDataProcessor implements IFormDataProcessor { - /** - * @inheritDoc - */ + #[\Override] public function processFormData(IFormDocument $document, array $parameters) { return $parameters; } - /** - * @inheritDoc - */ + #[\Override] public function processObjectData(IFormDocument $document, array $data, IStorableObject $object) { return $data; diff --git a/wcfsetup/install/files/lib/system/form/builder/data/processor/CustomFormDataProcessor.class.php b/wcfsetup/install/files/lib/system/form/builder/data/processor/CustomFormDataProcessor.class.php index d34dde45409..c566f61ce51 100644 --- a/wcfsetup/install/files/lib/system/form/builder/data/processor/CustomFormDataProcessor.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/data/processor/CustomFormDataProcessor.class.php @@ -152,9 +152,7 @@ public function getId(): string return $this->id; } - /** - * @inheritDoc - */ + #[\Override] public function processFormData(IFormDocument $document, array $parameters) { if ($this->formDataProcessor === null) { @@ -170,9 +168,7 @@ public function processFormData(IFormDocument $document, array $parameters) return $parameters; } - /** - * @inheritDoc - */ + #[\Override] public function processObjectData(IFormDocument $document, array $data, IStorableObject $object) { if ($this->objectDataProcessor === null) { diff --git a/wcfsetup/install/files/lib/system/form/builder/data/processor/DefaultFormDataProcessor.class.php b/wcfsetup/install/files/lib/system/form/builder/data/processor/DefaultFormDataProcessor.class.php index 130a96d8ae9..e7645ffb3ad 100644 --- a/wcfsetup/install/files/lib/system/form/builder/data/processor/DefaultFormDataProcessor.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/data/processor/DefaultFormDataProcessor.class.php @@ -19,9 +19,7 @@ */ final class DefaultFormDataProcessor extends AbstractFormDataProcessor { - /** - * @inheritDoc - */ + #[\Override] public function processFormData(IFormDocument $document, array $parameters) { $parameters['data'] = []; diff --git a/wcfsetup/install/files/lib/system/form/builder/data/processor/VoidFormDataProcessor.class.php b/wcfsetup/install/files/lib/system/form/builder/data/processor/VoidFormDataProcessor.class.php index ba90ec645d9..eb2b2c4c5d3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/data/processor/VoidFormDataProcessor.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/data/processor/VoidFormDataProcessor.class.php @@ -36,9 +36,7 @@ public function __construct(string $property, bool $isDataProperty = true) $this->isDataProperty = $isDataProperty; } - /** - * @inheritDoc - */ + #[\Override] public function processFormData(IFormDocument $document, array $parameters) { if ($this->isDataProperty) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php index a856f9d4113..0b2bbceba0f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php @@ -71,9 +71,7 @@ abstract class AbstractFormField implements IFormField */ protected $value; - /** - * @inheritDoc - */ + #[\Override] public function addValidationError(IFormFieldValidationError $error) { if (empty($this->validationErrors)) { @@ -85,9 +83,7 @@ public function addValidationError(IFormFieldValidationError $error) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addValidator(IFormFieldValidator $validator) { if ($this->hasValidator($validator->getId())) { @@ -99,9 +95,7 @@ public function addValidator(IFormFieldValidator $validator) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldHtml() { if ($this->templateName === null) { @@ -117,9 +111,7 @@ public function getFieldHtml() ); } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { if ($this->requiresLabel() && $this->getLabel() === null) { @@ -133,17 +125,13 @@ public function getHtml() ); } - /** - * @inheritDoc - */ + #[\Override] public function getJavaScriptDataHandlerModule() { return $this->javaScriptDataHandlerModule; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectProperty() { if ($this->objectProperty !== null) { @@ -153,41 +141,31 @@ public function getObjectProperty() return $this->getId(); } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { return $this->getValue(); } - /** - * @inheritDoc - */ + #[\Override] public function getValidationErrors() { return $this->validationErrors; } - /** - * @inheritDoc - */ + #[\Override] public function getValidators() { return $this->validators; } - /** - * @inheritDoc - */ + #[\Override] public function getValue() { return $this->value; } - /** - * @inheritDoc - */ + #[\Override] public function hasValidator(string $validatorId) { FormFieldValidator::validateId($validatorId); @@ -195,25 +173,19 @@ public function hasValidator(string $validatorId) return isset($this->validators[$validatorId]); } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function isRequired() { return $this->required; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { if ($this instanceof IImmutableFormField && $this->isImmutable()) { @@ -228,9 +200,9 @@ public function updatedObject(array $data, IStorableObject $object, $loadValues } /** - * @inheritDoc * @return static */ + #[\Override] public function objectProperty($objectProperty) { if ($objectProperty === '') { @@ -244,9 +216,7 @@ public function objectProperty($objectProperty) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function removeValidator(string $validatorId) { if (!$this->hasValidator($validatorId)) { @@ -259,9 +229,9 @@ public function removeValidator(string $validatorId) } /** - * @inheritDoc * @return static */ + #[\Override] public function required($required = true) { $this->required = $required; @@ -269,9 +239,7 @@ public function required($required = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { $this->value = $value; @@ -279,9 +247,7 @@ public function value(mixed $value) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php index 12bcf9126a9..3f897d3b72f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php @@ -29,9 +29,7 @@ public function __construct(IFormField $field) $this->field = $field; } - /** - * @inheritDoc - */ + #[\Override] public function addValidationError(IFormFieldValidationError $error) { $this->field->addValidationError($error); @@ -39,9 +37,7 @@ public function addValidationError(IFormFieldValidationError $error) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addValidator(IFormFieldValidator $validator) { $this->field->addValidator($validator); @@ -49,89 +45,67 @@ public function addValidator(IFormFieldValidator $validator) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldHtml() { return $this->field->getFieldHtml(); } - /** - * @inheritDoc - */ + #[\Override] public function getJavaScriptDataHandlerModule() { return $this->field->getJavaScriptDataHandlerModule(); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectProperty() { return $this->field->getObjectProperty(); } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { return $this->field->getSaveValue(); } - /** - * @inheritDoc - */ + #[\Override] public function getValidationErrors() { return $this->field->getValidationErrors(); } - /** - * @inheritDoc - */ + #[\Override] public function getValidators() { return $this->field->getValidators(); } - /** - * @inheritDoc - */ + #[\Override] public function getValue() { return $this->field->getValue(); } - /** - * @inheritDoc - */ + #[\Override] public function hasValidator(string $validatorId) { return $this->field->hasValidator($validatorId); } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return $this->field->hasSaveValue(); } - /** - * @inheritDoc - */ + #[\Override] public function isRequired() { return $this->field->isRequired(); } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { $this->field->updatedObject($data, $object, $loadValues); @@ -139,9 +113,7 @@ public function updatedObject(array $data, IStorableObject $object, $loadValues return $this; } - /** - * @inheritDoc - */ + #[\Override] public function objectProperty($objectProperty) { $this->field->objectProperty($objectProperty); @@ -149,9 +121,7 @@ public function objectProperty($objectProperty) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { $this->field->readValue(); @@ -159,9 +129,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function removeValidator(string $validatorId) { $this->field->removeValidator($validatorId); @@ -169,9 +137,7 @@ public function removeValidator(string $validatorId) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function required($required = true) { $this->field->required($required); @@ -179,9 +145,7 @@ public function required($required = true) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { $this->field->value($value); @@ -189,17 +153,13 @@ public function value(mixed $value) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getParent() { return $this->field->getParent(); } - /** - * @inheritDoc - */ + #[\Override] public function parent(IFormParentNode $parentNode) { $this->field->parent($parentNode); @@ -207,9 +167,7 @@ public function parent(IFormParentNode $parentNode) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addClass(string $class): static { $this->field->addClass($class); @@ -217,9 +175,7 @@ public function addClass(string $class): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addClasses(array $classes): static { $this->field->addClasses($classes); @@ -227,9 +183,7 @@ public function addClasses(array $classes): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function addDependency(IFormFieldDependency $dependency): static { $this->field->addDependency($dependency); @@ -237,9 +191,7 @@ public function addDependency(IFormFieldDependency $dependency): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function attribute(string $name, ?string $value = null): static { $this->field->attribute($name, $value); @@ -247,9 +199,7 @@ public function attribute(string $name, ?string $value = null): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function available(bool $available = true): static { $this->field->available($available); @@ -257,9 +207,7 @@ public function available(bool $available = true): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function cleanup(): static { $this->field->cleanup(); @@ -267,113 +215,85 @@ public function cleanup(): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function checkDependencies(): bool { return $this->field->checkDependencies(); } - /** - * @inheritDoc - */ + #[\Override] public function getAttribute(string $name): mixed { return $this->field->getAttribute($name); } - /** - * @inheritDoc - */ + #[\Override] public function getAttributes(): array { return $this->field->getAttributes(); } - /** - * @inheritDoc - */ + #[\Override] public function getClasses(): array { return $this->field->getClasses(); } - /** - * @inheritDoc - */ + #[\Override] public function getDependencies() { return $this->field->getDependencies(); } - /** - * @inheritDoc - */ + #[\Override] public function getDocument() { return $this->field->getDocument(); } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return $this->field->getHtml(); } - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { return $this->field->getHtmlVariables(); } - /** - * @inheritDoc - */ + #[\Override] public function getId() { return $this->field->getId(); } - /** - * @inheritDoc - */ + #[\Override] public function getPrefixedId() { return $this->field->getPrefixedId(); } - /** - * @inheritDoc - */ + #[\Override] public function hasAttribute(string $name) { return $this->field->hasAttribute($name); } - /** - * @inheritDoc - */ + #[\Override] public function hasClass(string $class) { return $this->field->hasClass($class); } - /** - * @inheritDoc - */ + #[\Override] public function hasDependency(string $dependencyId) { return $this->field->hasDependency($dependencyId); } - /** - * @inheritDoc - */ + #[\Override] public function id(string $id) { $this->field->id($id); @@ -381,17 +301,13 @@ public function id(string $id) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return $this->field->isAvailable(); } - /** - * @inheritDoc - */ + #[\Override] public function populate() { $this->field->populate(); @@ -399,9 +315,7 @@ public function populate() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function removeAttribute(string $name) { $this->field->removeAttribute($name); @@ -409,9 +323,7 @@ public function removeAttribute(string $name) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function removeClass(string $class) { $this->field->removeClass($class); @@ -419,9 +331,7 @@ public function removeClass(string $class) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function removeDependency(string $dependencyId) { $this->field->removeDependency($dependencyId); @@ -429,17 +339,13 @@ public function removeDependency(string $dependencyId) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $this->field->validate(); } - /** - * @inheritDoc - */ + #[\Override] public function description($languageItem = null, array $variables = []) { $this->field->description($languageItem, $variables); @@ -447,25 +353,19 @@ public function description($languageItem = null, array $variables = []) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getDescription() { return $this->field->getDescription(); } - /** - * @inheritDoc - */ + #[\Override] public function getLabel() { return $this->field->getLabel(); } - /** - * @inheritDoc - */ + #[\Override] public function label($languageItem = null, array $variables = []) { $this->field->label($languageItem, $variables); @@ -473,9 +373,7 @@ public function label($languageItem = null, array $variables = []) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function requiresLabel() { return $this->field->requiresLabel(); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AbstractNumericFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AbstractNumericFormField.class.php index 4ef5a0542e2..dd5d3f68b3f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AbstractNumericFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AbstractNumericFormField.class.php @@ -84,9 +84,7 @@ protected function getDefaultStep() } } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->getValue() === null && !$this->isNullable()) { @@ -130,9 +128,7 @@ protected function getValidInputModes(): array return ['decimal']; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -185,9 +181,7 @@ public function step($step = null) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->getValue() === null) { @@ -213,9 +207,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { if ($value !== null) { @@ -238,7 +230,6 @@ public function value(mixed $value) } /** - * @inheritDoc * @return string[] * @since 5.4 */ diff --git a/wcfsetup/install/files/lib/system/form/builder/field/BooleanFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/BooleanFormField.class.php index 738de4fcd1f..e1e11e835e4 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/BooleanFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/BooleanFormField.class.php @@ -34,17 +34,13 @@ class BooleanFormField extends AbstractFormField implements */ protected $templateName = 'shared_booleanFormField'; - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { return $this->value ? 1 : 0; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -54,17 +50,13 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function requiresLabel() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired() && !$this->getValue()) { @@ -74,9 +66,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { if (\is_string($value) && \in_array($value, ['0', '1', 'true', 'false'])) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ButtonFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ButtonFormField.class.php index 1589e7a9f8d..7308d521565 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ButtonFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ButtonFormField.class.php @@ -60,9 +60,7 @@ public function getButtonLabel(): string return $this->buttonLabel; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { if ($this->buttonLabel === null) { @@ -72,17 +70,13 @@ public function getHtml() return parent::getHtml(); } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -101,9 +95,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { // The value of the button is set when setting up the form and has to be unset diff --git a/wcfsetup/install/files/lib/system/form/builder/field/CaptchaFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/CaptchaFormField.class.php index e8814bd5a7f..481f761629a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/CaptchaFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/CaptchaFormField.class.php @@ -45,9 +45,7 @@ final class CaptchaFormField extends AbstractFormField implements IObjectTypeFor */ protected $validationError; - /** - * @inheritDoc - */ + #[\Override] public function cleanup(): static { try { @@ -62,9 +60,7 @@ public function cleanup(): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { $variables = [ @@ -92,33 +88,25 @@ function (IFormFieldValidationError $validationError) { return $variables; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.captcha'; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return $this->objectType !== null && parent::isAvailable(); } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function objectType(string $objectType) { // ignore empty object type which is the case if no captcha has been set @@ -139,9 +127,7 @@ public function objectType(string $objectType) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { /** @var ICaptchaHandler $captcha */ @@ -166,9 +152,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { /** @var ICaptchaHandler $captcha */ @@ -183,9 +167,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'captcha'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php index a47d88c6893..a1d42f188b2 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ClassNameFormField.class.php @@ -183,9 +183,7 @@ public function parentClass($parentClass) return $this; } - /** - * @inheritDoc - */ + #[\Override] protected function validateText($text, ?Language $language = null) { parent::validateText($text, $language); @@ -251,9 +249,7 @@ protected function validateText($text, ?Language $language = null) } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'className'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ColorFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ColorFormField.class.php index 92d7d13ea28..8b5ab411910 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ColorFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ColorFormField.class.php @@ -26,9 +26,7 @@ final class ColorFormField extends AbstractFormField implements IImmutableFormFi */ protected $templateName = 'shared_colorFormField'; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -45,9 +43,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php index 13b62e3a28f..e199cc8f1b8 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php @@ -130,9 +130,7 @@ public function getEarliestDate() return $this->earliestDate; } - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { // the date picker JavaScript code requires the `min` and `max` value to have a @@ -224,9 +222,7 @@ protected function getValueDateTimeObject() return $dateTime; } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->getValue() === null) { @@ -282,9 +278,7 @@ public function latestDate($latestDate = null) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -383,9 +377,7 @@ public function supportsTime() return $this->supportsTime; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->getValue() === null) { @@ -441,9 +433,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { parent::value($value); @@ -469,7 +459,6 @@ public function value(mixed $value) } /** - * @inheritDoc * @return string[] * @since 5.4 */ diff --git a/wcfsetup/install/files/lib/system/form/builder/field/DateRangeFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/DateRangeFormField.class.php index 4d004a5e651..d7e706ba588 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/DateRangeFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/DateRangeFormField.class.php @@ -45,9 +45,7 @@ class DateRangeFormField extends AbstractFormField implements const TIME_FORMAT = 'Y-m-d\TH:i:sP'; - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if (!$this->getFromValue() && !$this->getToValue() && $this->isNullable()) { @@ -57,9 +55,7 @@ public function getSaveValue() return $this->getFromValue() . ';' . $this->getToValue(); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -101,9 +97,7 @@ public function supportsTime(): bool return $this->supportsTime; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired() && (!$this->getFromValue() || !$this->getToValue())) { @@ -131,9 +125,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { $values = \explode(';', $value); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/DescriptionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/DescriptionFormField.class.php index 749f456f962..e645c79300a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/DescriptionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/DescriptionFormField.class.php @@ -23,9 +23,9 @@ public function __construct() } /** - * @inheritDoc * @return string */ + #[\Override] protected static function getDefaultId() { return 'description'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/EmailFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/EmailFormField.class.php index 1f6c7250d35..2103ed58739 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/EmailFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/EmailFormField.class.php @@ -52,9 +52,6 @@ class EmailFormField extends AbstractFormField implements */ protected $templateName = 'shared_emailFormField'; - /** - * @inheritDoc - */ public function __construct() { $this->label('wcf.form.field.email'); @@ -63,7 +60,6 @@ public function __construct() } /** - * @inheritDoc * @return string[] * @since 5.4 */ @@ -82,9 +78,7 @@ protected function getValidInputModes(): array return ['email']; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isI18n()) { @@ -134,7 +128,6 @@ protected function validateEmail($email, ?Language $language = null) } /** - * @inheritDoc * @return string[] * @since 5.4 */ diff --git a/wcfsetup/install/files/lib/system/form/builder/field/FloatFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/FloatFormField.class.php index 2ab9378c0dd..2bc8891fff4 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/FloatFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/FloatFormField.class.php @@ -15,10 +15,10 @@ class FloatFormField extends AbstractNumericFormField { /** - * @inheritDoc * @return string[] * @since 5.4 */ + #[\Override] protected function getValidAutoCompleteTokens(): array { return [ diff --git a/wcfsetup/install/files/lib/system/form/builder/field/HiddenFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/HiddenFormField.class.php index 775ad1ca5dc..f4d33fba839 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/HiddenFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/HiddenFormField.class.php @@ -22,9 +22,7 @@ final class HiddenFormField extends AbstractFormField */ protected $templateName = 'shared_hiddenFormField'; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/IconFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/IconFormField.class.php index 9e6f5d4c36e..7ca864e4178 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/IconFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/IconFormField.class.php @@ -34,9 +34,7 @@ class IconFormField extends AbstractFormField implements IImmutableFormField */ protected static $includeJavaScript = true; - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { $value = static::$includeJavaScript; @@ -49,9 +47,7 @@ public function getHtmlVariables() ]; } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->getValue()) { @@ -61,9 +57,7 @@ public function getSaveValue() return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -73,9 +67,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -92,9 +84,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { if (\str_starts_with($value, 'fa-')) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/IntegerFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/IntegerFormField.class.php index 2b18371ae77..f322716dfc0 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/IntegerFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/IntegerFormField.class.php @@ -20,10 +20,10 @@ class IntegerFormField extends AbstractNumericFormField protected $integerValues = true; /** - * @inheritDoc * @return string[] * @since 5.4 */ + #[\Override] protected function getValidAutoCompleteTokens(): array { return [ diff --git a/wcfsetup/install/files/lib/system/form/builder/field/IsDisabledFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/IsDisabledFormField.class.php index 28ee53cc55a..e5745f840b9 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/IsDisabledFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/IsDisabledFormField.class.php @@ -15,9 +15,9 @@ class IsDisabledFormField extends BooleanFormField use TDefaultIdFormField; /** - * @inheritDoc * @return string */ + #[\Override] protected static function getDefaultId() { return 'isDisabled'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php index 315975d5e62..cfc9835a921 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ItemListFormField.class.php @@ -72,18 +72,13 @@ class ItemListFormField extends AbstractFormField implements */ const SAVE_VALUE_TYPE_SSV = 'ssv'; - /** - * @inheritDoc - */ public function __construct() { $this->multiple(); $this->addFieldClass('long'); } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { switch ($this->getSaveValueType()) { @@ -120,18 +115,14 @@ public function getSaveValueType() return $this->saveValueType; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { // arrays cannot be returned as a simple save value return $this->getSaveValueType() !== self::SAVE_VALUE_TYPE_ARRAY; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -153,9 +144,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -199,9 +188,7 @@ public function saveValueType($saveValueType) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { switch ($this->getSaveValueType()) { @@ -252,9 +239,7 @@ public function value(mixed $value) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (\is_array($this->getValue())) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/MultilineTextFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/MultilineTextFormField.class.php index 0364e32a57a..dabfc409920 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/MultilineTextFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/MultilineTextFormField.class.php @@ -24,10 +24,10 @@ class MultilineTextFormField extends TextFormField protected $templateName = 'shared_multilineTextFormField'; /** - * @inheritDoc * @return string[] * @since 5.4 */ + #[\Override] protected function getValidAutoCompleteTokens(): array { return \array_merge( @@ -67,9 +67,9 @@ public function rows($rows) } /** - * @inheritDoc * @since 5.4 */ + #[\Override] protected static function getReservedFieldAttributes(): array { return \array_merge( diff --git a/wcfsetup/install/files/lib/system/form/builder/field/MultipleSelectionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/MultipleSelectionFormField.class.php index 40f347a6ba9..2accc0ae75a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/MultipleSelectionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/MultipleSelectionFormField.class.php @@ -48,17 +48,13 @@ class MultipleSelectionFormField extends AbstractFormField implements */ private bool $ignoreInvalidValues = false; - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -83,9 +79,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -101,9 +95,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $value = $this->getValue(); @@ -120,9 +112,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { // ignore `null` as value which can be passed either for nullable diff --git a/wcfsetup/install/files/lib/system/form/builder/field/PasswordFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/PasswordFormField.class.php index df1ddd3d685..741b9666a8e 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/PasswordFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/PasswordFormField.class.php @@ -88,9 +88,7 @@ protected function getValidInputModes(): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -100,9 +98,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $value = $this->getValue(); @@ -132,16 +128,15 @@ public function passwordStrengthMeter(bool $passwordStrengthMeter = true): stati } /** - * @inheritDoc * @return string */ + #[\Override] protected static function getDefaultId() { return 'password'; } /** - * @inheritDoc * @return string[] */ protected function getValidAutoCompleteTokens(): array diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php index dbe0154b47c..a79e219dcbd 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RadioButtonFormField.class.php @@ -33,9 +33,7 @@ class RadioButtonFormField extends AbstractFormField implements */ protected $templateName = 'shared_radioButtonFormField'; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -49,17 +47,13 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function supportsNestedOptions() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired() || $this->getValue() !== '') { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php index 342169486d7..e65661806bf 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php @@ -91,9 +91,7 @@ public function minimum(null|int|float $minimum = null): static return $this->traitMinimum($minimum); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -109,17 +107,13 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'rating'; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->getValue() !== null) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RejectEverythingFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RejectEverythingFormField.class.php index 2a4021c3804..5be44e021d7 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RejectEverythingFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RejectEverythingFormField.class.php @@ -16,49 +16,37 @@ final class RejectEverythingFormField extends AbstractFormField { use TDefaultIdFormField; - /** - * @inheritDoc - */ + #[\Override] public function getFieldHtml(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $this->addValidationError(new FormFieldValidationError('rejectEverything')); } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue(): void { throw new \BadMethodCallException("Form field '{$this->getId()}' rejects everything."); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'rejectEverything'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php index 7426685550f..127f2f0de4c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php @@ -41,9 +41,7 @@ final class SelectFormField extends AbstractFormField implements */ private string|int|null $defaultValue = null; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -57,9 +55,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->getValue() === null) { @@ -78,9 +74,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { if ($value !== null && $value !== '') { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/ShowOrderFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/ShowOrderFormField.class.php index f8b1b5bda67..ae6ec1fa874 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/ShowOrderFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/ShowOrderFormField.class.php @@ -47,9 +47,7 @@ public function __construct() $this->label('wcf.form.field.showOrder'); } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->value !== null) { @@ -66,13 +64,13 @@ public function getSaveValue() } /** - * @inheritDoc * @return static * * There is an additional element prepended to the options with key `0` * and using the language item `wcf.form.field.showOrder.firstPosition` * as value to mark adding it at the first position. */ + #[\Override] public function options($options, $nestedOptions = false, $labelLanguageItems = true) { parent::options($options, $nestedOptions, $labelLanguageItems); @@ -92,9 +90,7 @@ public function options($options, $nestedOptions = false, $labelLanguageItems = return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { $keys = \array_keys($this->getOptions()); @@ -114,9 +110,7 @@ public function value(mixed $value) return parent::value($keys[$value]); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'showOrder'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/SingleSelectionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/SingleSelectionFormField.class.php index bb3d5193bf5..605254de457 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/SingleSelectionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/SingleSelectionFormField.class.php @@ -35,9 +35,7 @@ class SingleSelectionFormField extends AbstractFormField implements */ protected $templateName = 'shared_singleSelectionFormField'; - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ( @@ -51,9 +49,7 @@ public function getSaveValue() return parent::getSaveValue(); } - /** - * @inheritDoc - */ + #[\Override] public function filterable($filterable = true) { if ($filterable) { @@ -65,9 +61,7 @@ public function filterable($filterable = true) return $this->traitFilterable($filterable); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -81,9 +75,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (!isset($this->getOptions()[$this->getValue()])) { @@ -96,9 +88,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { // ignore `null` as value which can be passed either for nullable diff --git a/wcfsetup/install/files/lib/system/form/builder/field/SortOrderFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/SortOrderFormField.class.php index 92deffbedf2..49ce3791c72 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/SortOrderFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/SortOrderFormField.class.php @@ -17,9 +17,6 @@ final class SortOrderFormField extends SingleSelectionFormField { use TDefaultIdFormField; - /** - * @inheritDoc - */ public function __construct() { $this->label('wcf.global.showOrder'); @@ -29,9 +26,7 @@ public function __construct() ]); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'sortOrder'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/SourceCodeFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/SourceCodeFormField.class.php index 7cc8691dc72..ff881456224 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/SourceCodeFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/SourceCodeFormField.class.php @@ -193,9 +193,7 @@ public function language(?string $language): self return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -205,9 +203,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->value === null || $this->value === '') { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TDefaultIdFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TDefaultIdFormField.class.php index 2cea41f9589..4b70377bc64 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TDefaultIdFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TDefaultIdFormField.class.php @@ -17,9 +17,9 @@ trait TDefaultIdFormField { /** - * @inheritDoc * @return static */ + #[\Override] public static function create($id = null) { if ($id === null) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TI18nFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TI18nFormField.class.php index c66a4d5c52b..4a73a69574f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TI18nFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TI18nFormField.class.php @@ -273,9 +273,7 @@ public function languageItemPattern($pattern) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { if ($this instanceof IImmutableFormField && $this->isImmutable()) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php index 1901d2ddd73..f3440ac3cf0 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php @@ -15,7 +15,6 @@ trait TTextAutoCompleteFormField use TAutoCompleteFormField; /** - * @inheritDoc * @return string[] */ protected function getValidAutoCompleteTokens(): array diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TextFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TextFormField.class.php index bc2275dd988..50a832c5372 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TextFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TextFormField.class.php @@ -77,9 +77,7 @@ protected function getValidInputModes(): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isI18n()) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php index 4a709ed3c0a..b28e1585aa0 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/TitleFormField.class.php @@ -24,9 +24,7 @@ public function __construct() $this->label('wcf.global.title'); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'title'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php index dc5c32837f2..89be71f50b3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php @@ -157,10 +157,10 @@ protected function buildUploadField() } /** - * @inheritDoc * @return UploadFile[] * @throws \BadMethodCallException if the method is called, before the field is populated */ + #[\Override] public function getValue() { if (!$this->isPopulated) { @@ -199,9 +199,9 @@ public function getRemovedFiles($processFiles = false) } /** - * @inheritDoc * @throws \BadMethodCallException if the method is called, before the field is populated */ + #[\Override] public function readValue() { if (!$this->isPopulated) { @@ -213,9 +213,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -346,9 +344,9 @@ public function validate() } /** - * @inheritDoc * @throws \BadMethodCallException if the method is called, before the field is populated */ + #[\Override] public function getHtml() { if (!$this->isPopulated) { @@ -365,9 +363,9 @@ public function getHtml() } /** - * @inheritDoc * @throws \BadMethodCallException if the method is called, before the field is populated */ + #[\Override] public function getFieldHtml() { if (!$this->isPopulated) { @@ -384,10 +382,10 @@ public function getFieldHtml() } /** - * @inheritDoc * * @throws \InvalidArgumentException If the getter for the value or the object's property provides invalid values. */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { if ($loadValues) { @@ -526,13 +524,13 @@ private function readUploadLocations(array $data): array } /** - * @inheritDoc * * @param UploadFile[] $value * * @throws \InvalidArgumentException if the value is not an array * @throws \InvalidArgumentException if the value contains objects, which are not an instance of UploadFile */ + #[\Override] public function value($value) { if (!\is_array($value)) { @@ -556,17 +554,13 @@ public function value($value) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function cleanup(): static { if (!$this->cleaned) { @@ -577,9 +571,7 @@ public function cleanup(): static return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -624,7 +616,6 @@ protected function registerField(): void } /** - * @inheritDoc * * @param ?int $maximum * @return static diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php index cc7b02fb2fc..642e3a3a9db 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php @@ -25,10 +25,10 @@ public function __construct() } /** - * @inheritDoc * @return string[] * @since 5.4 */ + #[\Override] protected function getValidAutoCompleteTokens(): array { return [ @@ -41,14 +41,13 @@ protected function getValidAutoCompleteTokens(): array /** * @return string[] */ + #[\Override] protected function getValidInputModes(): array { return ['url']; } - /** - * @inheritDoc - */ + #[\Override] protected function validateText($text, ?Language $language = null) { if ($this->isRequired() && ($this->getValue() === null || $this->getValue() === '')) { @@ -70,9 +69,7 @@ protected function validateText($text, ?Language $language = null) } } - /** - * @inheritDoc - */ + #[\Override] public function getInputType(): string { return 'url'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/acl/AclFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/acl/AclFormField.class.php index 01ee79d0826..f9a74df249b 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/acl/AclFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/acl/AclFormField.class.php @@ -89,9 +89,7 @@ public function getCategoryName() return $this->categoryName; } - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { ACLHandler::getInstance()->assignVariables($this->getObjectType()->objectTypeID); @@ -116,25 +114,19 @@ public function getObjectID() return $this->objectID; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.acl'; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { $this->objectID = $object->{$object::getDatabaseTableIndexName()}; @@ -148,9 +140,7 @@ public function updatedObject(array $data, IStorableObject $object, $loadValues return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -167,9 +157,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { $valueSource = $_POST[$this->getPrefixedId()] ?? []; @@ -188,9 +176,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function cleanup(): static { ACLHandler::getInstance()->resetValues($this->getObjectType()->objectTypeID); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/acl/simple/SimpleAclFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/acl/simple/SimpleAclFormField.class.php index 44d5ca4ac09..ad39d6a56d5 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/acl/simple/SimpleAclFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/acl/simple/SimpleAclFormField.class.php @@ -35,9 +35,7 @@ final class SimpleAclFormField extends AbstractFormField */ protected $supportInvertedPermissions = false; - /** - * @inheritDoc - */ + #[\Override] public function getHtmlVariables() { return [ @@ -49,17 +47,13 @@ public function getHtmlVariables() ]; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -78,9 +72,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/bbcode/BBCodeAttributesFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/bbcode/BBCodeAttributesFormField.class.php index e884da7c4ae..4f032261664 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/bbcode/BBCodeAttributesFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/bbcode/BBCodeAttributesFormField.class.php @@ -29,17 +29,13 @@ final class BBCodeAttributesFormField extends AbstractFormField */ protected $value = []; - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'attributes'; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -52,9 +48,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { foreach ($this->getValue() as $attributeNumber => $attributeData) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/AbstractFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/AbstractFormFieldDependency.class.php index 5df38af8604..a9c5fce9ee3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/AbstractFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/AbstractFormFieldDependency.class.php @@ -54,9 +54,7 @@ abstract class AbstractFormFieldDependency implements IFormFieldDependency */ protected $templateNameApplication = 'wcf'; - /** - * @inheritDoc - */ + #[\Override] public function dependentNode(IFormNode $node) { $this->dependentNode = $node; @@ -64,9 +62,7 @@ public function dependentNode(IFormNode $node) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function field(IFormField $field) { $this->field = $field; @@ -74,9 +70,7 @@ public function field(IFormField $field) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function fieldId(string $fieldId) { if ($this->getField() !== null) { @@ -88,9 +82,7 @@ public function fieldId(string $fieldId) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function getDependentNode() { if ($this->dependentNode === null) { @@ -100,17 +92,13 @@ public function getDependentNode() return $this->dependentNode; } - /** - * @inheritDoc - */ + #[\Override] public function getField() { return $this->field; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldId() { if ($this->getField() !== null) { @@ -124,17 +112,13 @@ public function getFieldId() return $this->fieldId; } - /** - * @inheritDoc - */ + #[\Override] public function getId() { return $this->id; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { if ($this->templateName === null) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/EmptyFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/EmptyFormFieldDependency.class.php index dd9d5148e5c..1ccc142b89c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/EmptyFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/EmptyFormFieldDependency.class.php @@ -17,9 +17,7 @@ class EmptyFormFieldDependency extends AbstractFormFieldDependency */ protected $templateName = 'shared_emptyFormFieldDependency'; - /** - * @inheritDoc - */ + #[\Override] public function checkDependency() { return empty($this->getField()->getValue()); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/IsNotClickedFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/IsNotClickedFormFieldDependency.class.php index 54a3ec2acd4..2b721b07daa 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/IsNotClickedFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/IsNotClickedFormFieldDependency.class.php @@ -23,9 +23,7 @@ class IsNotClickedFormFieldDependency extends AbstractFormFieldDependency */ protected $templateName = 'shared_isNotClickedFormFieldDependency'; - /** - * @inheritDoc - */ + #[\Override] public function checkDependency() { $form = $this->getField()->getDocument(); @@ -40,9 +38,7 @@ public function checkDependency() return $form->getRequestData($this->getField()->getPrefixedId()) !== $this->getField()->getValue(); } - /** - * @inheritDoc - */ + #[\Override] public function field(IFormField $field) { if (!($field instanceof ButtonFormField)) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/NonEmptyFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/NonEmptyFormFieldDependency.class.php index 3bd14c7e91e..ea247f58fae 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/NonEmptyFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/NonEmptyFormFieldDependency.class.php @@ -17,9 +17,7 @@ class NonEmptyFormFieldDependency extends AbstractFormFieldDependency */ protected $templateName = 'shared_nonEmptyFormFieldDependency'; - /** - * @inheritDoc - */ + #[\Override] public function checkDependency() { return !empty($this->getField()->getValue()); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueFormFieldDependency.class.php index 360b458e3b7..ca3d0113158 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueFormFieldDependency.class.php @@ -33,9 +33,7 @@ class ValueFormFieldDependency extends AbstractFormFieldDependency */ protected $templateName = 'shared_valueFormFieldDependency'; - /** - * @inheritDoc - */ + #[\Override] public function checkDependency() { if (\is_array($this->getField()->getValue())) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueIntervalFormFieldDependency.class.php b/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueIntervalFormFieldDependency.class.php index fe7686f0218..38266cc4ad9 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueIntervalFormFieldDependency.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/dependency/ValueIntervalFormFieldDependency.class.php @@ -32,9 +32,7 @@ final class ValueIntervalFormFieldDependency extends AbstractFormFieldDependency */ protected $templateName = 'shared_valueIntervalFormFieldDependency'; - /** - * @inheritDoc - */ + #[\Override] public function checkDependency() { $value = $this->getField()->getValue(); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectExcludedPackagesFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectExcludedPackagesFormField.class.php index e1f3e911cc7..121a841dd26 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectExcludedPackagesFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectExcludedPackagesFormField.class.php @@ -28,9 +28,7 @@ final class DevtoolsProjectExcludedPackagesFormField extends AbstractFormField */ protected $value = []; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -45,9 +43,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // everything is already validated by JavaScript thus we skip @@ -83,9 +79,7 @@ public function validate() $this->value($excludedPackages); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'excludedPackages'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectInstructionsFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectInstructionsFormField.class.php index e8751eeeea3..4ad9611ac9f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectInstructionsFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectInstructionsFormField.class.php @@ -79,9 +79,7 @@ public function getApplications() return $this->applications; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { if ($this->requiresLabel() && $this->getLabel() === null) { @@ -121,9 +119,7 @@ public function getPackageInstallationPlugins() return $this->packageInstallationPlugins; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -138,9 +134,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // everything is already validated by JavaScript thus we skip @@ -219,9 +213,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'instructions'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php index e0636290bae..4653a14d044 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectOptionalPackagesFormField.class.php @@ -28,9 +28,7 @@ final class DevtoolsProjectOptionalPackagesFormField extends AbstractFormField */ protected $value = []; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -45,9 +43,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // everything is already validated by JavaScript thus we skip @@ -74,9 +70,7 @@ public function validate() $this->value($optionalPackages); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'optionalPackages'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectRequiredPackagesFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectRequiredPackagesFormField.class.php index eca73d6c8fb..ae73064b88b 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectRequiredPackagesFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/devtools/project/DevtoolsProjectRequiredPackagesFormField.class.php @@ -28,9 +28,7 @@ final class DevtoolsProjectRequiredPackagesFormField extends AbstractFormField */ protected $value = []; - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -45,9 +43,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // everything is already validated by JavaScript thus we skip @@ -86,9 +82,7 @@ public function validate() $this->value($requiredPackages); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'requiredPackages'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/label/LabelFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/label/LabelFormField.class.php index 756db316922..6caa6cbd8d8 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/label/LabelFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/label/LabelFormField.class.php @@ -63,17 +63,13 @@ public function getLabelGroup() return $this->labelGroup; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.label.object'; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; @@ -99,9 +95,7 @@ public function labelGroup(ViewableLabelGroup $labelGroup) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { if ($loadValues) { @@ -131,9 +125,7 @@ public function updatedObject(array $data, IStorableObject $object, $loadValues return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -157,9 +149,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -169,9 +159,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired()) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/language/ContentLanguageFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/language/ContentLanguageFormField.class.php index 11253bea16d..0d9bec4051c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/language/ContentLanguageFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/language/ContentLanguageFormField.class.php @@ -46,9 +46,7 @@ public function getContentLanguages() return LanguageFactory::getInstance()->getContentLanguages(); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return LanguageFactory::getInstance()->multilingualismEnabled() @@ -56,9 +54,7 @@ public function isAvailable() && parent::isAvailable(); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -72,9 +68,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired() && LanguageFactory::getInstance()->getLanguage($this->getValue()) === null) { @@ -85,9 +79,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'languageID'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php index aecea622ea6..1e488b27a36 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php @@ -95,9 +95,7 @@ public function isImageOnly() return $this->imageOnly; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -111,9 +109,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php index 4a6ceb09cff..52c8d59e2ac 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/option/OptionFormField.class.php @@ -36,9 +36,7 @@ public function __construct() $this->label('wcf.form.field.option'); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -81,9 +79,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'options'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/poll/PollOptionsFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/poll/PollOptionsFormField.class.php index b2838a3cb03..baf7a3a598e 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/poll/PollOptionsFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/poll/PollOptionsFormField.class.php @@ -47,9 +47,7 @@ public function __construct() ->addClass('pollOptionContainer'); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ( @@ -75,9 +73,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { $pollOptions = []; @@ -103,9 +99,7 @@ public function value(mixed $value) return parent::value($pollOptions); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php index ee1968906d0..94ff26a98d3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php @@ -53,25 +53,19 @@ public function __construct() $this->label('wcf.tagging.tags'); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.tagging.taggableObject'; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function updatedObject(array $data, IStorableObject $object, $loadValues = true) { if ($loadValues) { @@ -108,9 +102,7 @@ public function updatedObject(array $data, IStorableObject $object, $loadValues return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -129,9 +121,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -145,9 +135,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { if (!\is_array($value)) { @@ -192,9 +180,7 @@ public function value(mixed $value) return parent::value($stringTags); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'tags'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php index 96353d8c4e1..4f43f439445 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/UserFormField.class.php @@ -64,9 +64,7 @@ public function getUsers() return $this->users; } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->allowsMultiple()) { @@ -84,9 +82,7 @@ public function getSaveValue() return \current($this->getUsers())->userID; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -107,9 +103,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -143,9 +137,7 @@ static function (?UserProfile $user) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired()) { @@ -232,9 +224,7 @@ static function (?UserProfile $user) { parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] public function value(mixed $value) { // ensure array value for form fields that actually support multiple values; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php index 202a358abb9..ff4a20ccb87 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php @@ -57,16 +57,13 @@ public function __construct() $this->label('wcf.user.password'); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'password'; } /** - * @inheritDoc * @return string[] * @since 5.4 */ @@ -75,17 +72,13 @@ protected function getValidAutoCompleteTokens(): array return ['current-password']; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return WCF::getUser()->userID != 0 && !WCF::getUser()->authData && parent::isAvailable(); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -95,9 +88,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->isRequired() && !$this->getValue()) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/UsernameFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/UsernameFormField.class.php index 4c3feca6304..7ade572236f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/UsernameFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/UsernameFormField.class.php @@ -77,7 +77,6 @@ public function __construct() } /** - * @inheritDoc * @return string[] * @since 5.4 */ @@ -86,9 +85,7 @@ protected function getValidAutoCompleteTokens(): array return ['username']; } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { if ($this->getValue() === null && !$this->isNullable()) { @@ -98,9 +95,7 @@ public function getSaveValue() return parent::getSaveValue(); } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -114,9 +109,7 @@ public function readValue() return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { if ($this->getValue() === '' || $this->getValue() === null) { @@ -145,9 +138,7 @@ public function validate() parent::validate(); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'username'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php index 21f2c5c2234..cf476d7c68c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/group/option/UserGroupOptionFormField.class.php @@ -36,9 +36,7 @@ public function __construct() $this->label('wcf.form.field.userGroupOption'); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { parent::validate(); @@ -71,9 +69,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'permissions'; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidationError.class.php b/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidationError.class.php index 32472f79bdd..a3df3f9a8ad 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidationError.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidationError.class.php @@ -30,9 +30,7 @@ final class FormFieldValidationError implements IFormFieldValidationError */ private string $type; - /** - * @inheritDoc - */ + #[\Override] public function __construct($type, $languageItem = null, array $information = []) { if ($languageItem === null) { @@ -48,9 +46,7 @@ public function __construct($type, $languageItem = null, array $information = [] $this->information = $information; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render('wcf', 'shared_formFieldError', [ @@ -58,25 +54,19 @@ public function getHtml() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getInformation() { return $this->information; } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return WCF::getLanguage()->getDynamicVariable($this->languageItem, $this->information); } - /** - * @inheritDoc - */ + #[\Override] public function getType() { return $this->type; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidator.class.php b/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidator.class.php index 9033114b601..588cc1c984d 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidator.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/validation/FormFieldValidator.class.php @@ -26,9 +26,7 @@ final class FormFieldValidator implements IFormFieldValidator */ protected $validator; - /** - * @inheritDoc - */ + #[\Override] public function __construct(string $id, callable $validator) { static::validateId($id); @@ -62,17 +60,13 @@ public function __construct(string $id, callable $validator) $this->validator = $validator; } - /** - * @inheritDoc - */ + #[\Override] public function __invoke(IFormField $field) { \call_user_func($this->validator, $field); } - /** - * @inheritDoc - */ + #[\Override] public function getId() { return $this->id; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygAttachmentFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygAttachmentFormField.class.php index 57f828ebb54..0c2c5659214 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygAttachmentFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygAttachmentFormField.class.php @@ -104,17 +104,13 @@ public function getAttachmentHandler() return $this->attachmentHandler; } - /** - * @inheritDoc - */ + #[\Override] public function hasSaveValue() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailable() { return parent::isAvailable() @@ -122,9 +118,7 @@ public function isAvailable() && $this->getAttachmentHandler()->canUpload(); } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -143,9 +137,7 @@ function (IFormDocument $document, array $parameters) { return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId() . '_tmpHash')) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php index fe6c6d5e352..52e0e1b89d0 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php @@ -122,9 +122,7 @@ public function getAutosaveId() return $this->autosaveId; } - /** - * @inheritDoc - */ + #[\Override] public function getFieldHtml() { $disallowedBBCodesPermission = $this->getObjectType()->disallowedBBCodesPermission; @@ -140,9 +138,7 @@ public function getFieldHtml() return parent::getFieldHtml(); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeDefinition() { return 'com.woltlab.wcf.message'; @@ -179,9 +175,7 @@ public function getQuoteData($index = null) return ""; } - /** - * @inheritDoc - */ + #[\Override] public function getSaveValue() { return $this->htmlInputProcessor->getHtml(); @@ -200,9 +194,7 @@ public function lastEditTime($lastEditTime) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function populate() { parent::populate(); @@ -244,9 +236,7 @@ public function quoteData($objectType, $actionClass, array $selectors = []) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function readValue() { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -344,9 +334,7 @@ public function supportsQuotes() return $this->supportQuotes; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $disallowedBBCodesPermission = $this->getObjectType()->disallowedBBCodesPermission; @@ -389,7 +377,6 @@ public function validate() } /** - * @inheritDoc * @return string[] * @since 5.4 */ diff --git a/wcfsetup/install/files/lib/system/form/builder/wysiwyg/WysiwygSmileyFormNode.class.php b/wcfsetup/install/files/lib/system/form/builder/wysiwyg/WysiwygSmileyFormNode.class.php index 52a1c6b04b0..f5aa0a33b3d 100644 --- a/wcfsetup/install/files/lib/system/form/builder/wysiwyg/WysiwygSmileyFormNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/wysiwyg/WysiwygSmileyFormNode.class.php @@ -30,9 +30,7 @@ class WysiwygSmileyFormNode implements IFormChildNode */ protected $smilies = []; - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { return WCF::getTPL()->render('wcf', 'shared_wysiwygSmileyFormNode', [ @@ -93,9 +91,7 @@ public function smilies(array $smilies) return $this; } - /** - * @inheritDoc - */ + #[\Override] public function validate() { // does nothing diff --git a/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php index d36f3750007..27faf0f0312 100644 --- a/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php @@ -34,65 +34,49 @@ abstract class AbstractFormElementContainer implements IFormElementContainer */ protected $label = ''; - /** - * @inheritDoc - */ + #[\Override] public function setDescription(string $description) { $this->description = StringUtil::trim($description); } - /** - * @inheritDoc - */ + #[\Override] public function getDescription() { return $this->description; } - /** - * @inheritDoc - */ + #[\Override] public function setLabel(string $label) { $this->label = StringUtil::trim($label); } - /** - * @inheritDoc - */ + #[\Override] public function getLabel() { return $this->label; } - /** - * @inheritDoc - */ + #[\Override] public function appendChild(IFormElement $element) { $this->children[] = $element; } - /** - * @inheritDoc - */ + #[\Override] public function prependChild(IFormElement $element) { \array_unshift($this->children, $element); } - /** - * @inheritDoc - */ + #[\Override] public function getChildren() { return $this->children; } - /** - * @inheritDoc - */ + #[\Override] public function getValue(string $key) { foreach ($this->children as $element) { @@ -104,9 +88,7 @@ public function getValue(string $key) } } - /** - * @inheritDoc - */ + #[\Override] public function handleRequest(array $variables) { foreach ($this->children as $element) { @@ -120,9 +102,7 @@ public function handleRequest(array $variables) } } - /** - * @inheritDoc - */ + #[\Override] public function setError(string $name, string $error) { foreach ($this->children as $element) { diff --git a/wcfsetup/install/files/lib/system/form/container/GroupFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/container/GroupFormElementContainer.class.php index c7ddf60530c..68f4f2181b4 100644 --- a/wcfsetup/install/files/lib/system/form/container/GroupFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/container/GroupFormElementContainer.class.php @@ -11,9 +11,7 @@ */ class GroupFormElementContainer extends AbstractFormElementContainer { - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { $content = ''; diff --git a/wcfsetup/install/files/lib/system/form/container/MultipleSelectionFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/container/MultipleSelectionFormElementContainer.class.php index 5ca0233fe6f..1c354967b02 100644 --- a/wcfsetup/install/files/lib/system/form/container/MultipleSelectionFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/container/MultipleSelectionFormElementContainer.class.php @@ -28,9 +28,7 @@ public function setValue(array $value) $this->value = $value; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { $content = ''; diff --git a/wcfsetup/install/files/lib/system/form/container/SingleSelectionFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/container/SingleSelectionFormElementContainer.class.php index cd04a027bc9..68f09cd2f5f 100644 --- a/wcfsetup/install/files/lib/system/form/container/SingleSelectionFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/container/SingleSelectionFormElementContainer.class.php @@ -30,17 +30,13 @@ public function setValue($value) $this->value = StringUtil::trim($value); } - /** - * @inheritDoc - */ + #[\Override] public function getValue(string $key) { return $this->value; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { $content = ''; diff --git a/wcfsetup/install/files/lib/system/form/element/AbstractFormElement.class.php b/wcfsetup/install/files/lib/system/form/element/AbstractFormElement.class.php index 804c014f633..c55f8b89b7b 100644 --- a/wcfsetup/install/files/lib/system/form/element/AbstractFormElement.class.php +++ b/wcfsetup/install/files/lib/system/form/element/AbstractFormElement.class.php @@ -39,65 +39,49 @@ abstract class AbstractFormElement implements IFormElement */ protected $parent; - /** - * @inheritDoc - */ + #[\Override] public function __construct(IFormElementContainer $parent) { $this->parent = $parent; } - /** - * @inheritDoc - */ + #[\Override] public function setDescription(string $description) { $this->description = StringUtil::trim($description); } - /** - * @inheritDoc - */ + #[\Override] public function getDescription() { return $this->description; } - /** - * @inheritDoc - */ + #[\Override] public function setLabel(string $label) { $this->label = StringUtil::trim($label); } - /** - * @inheritDoc - */ + #[\Override] public function getLabel() { return $this->label; } - /** - * @inheritDoc - */ + #[\Override] public function getParent() { return $this->parent; } - /** - * @inheritDoc - */ + #[\Override] public function setError(string $error) { $this->error = $error; } - /** - * @inheritDoc - */ + #[\Override] public function getError() { return $this->error; diff --git a/wcfsetup/install/files/lib/system/form/element/AbstractNamedFormElement.class.php b/wcfsetup/install/files/lib/system/form/element/AbstractNamedFormElement.class.php index 6778dbddfe8..38003124805 100644 --- a/wcfsetup/install/files/lib/system/form/element/AbstractNamedFormElement.class.php +++ b/wcfsetup/install/files/lib/system/form/element/AbstractNamedFormElement.class.php @@ -37,6 +37,7 @@ abstract class AbstractNamedFormElement extends AbstractFormElement * @param string $description * @return void */ + #[\Override] public function setDescription($description) { $this->description = $description; @@ -47,6 +48,7 @@ public function setDescription($description) * * @return string */ + #[\Override] public function getDescription() { return $this->description; diff --git a/wcfsetup/install/files/lib/system/form/element/LabelFormElement.class.php b/wcfsetup/install/files/lib/system/form/element/LabelFormElement.class.php index 7fee814da3d..dca9913b87b 100644 --- a/wcfsetup/install/files/lib/system/form/element/LabelFormElement.class.php +++ b/wcfsetup/install/files/lib/system/form/element/LabelFormElement.class.php @@ -40,9 +40,7 @@ public function getText() return $this->text; } - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { return <<disabledMessage = $message; } - /** - * @inheritDoc - */ + #[\Override] public function getDescription() { if ($this->disabledMessage) { @@ -57,9 +53,7 @@ public function getDescription() return parent::getDescription(); } - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { $disabled = ''; diff --git a/wcfsetup/install/files/lib/system/form/element/PasswordInputFormElement.class.php b/wcfsetup/install/files/lib/system/form/element/PasswordInputFormElement.class.php index ad5b711e48c..68c637b6c27 100644 --- a/wcfsetup/install/files/lib/system/form/element/PasswordInputFormElement.class.php +++ b/wcfsetup/install/files/lib/system/form/element/PasswordInputFormElement.class.php @@ -11,9 +11,7 @@ */ class PasswordInputFormElement extends AbstractNamedFormElement { - /** - * @inheritDoc - */ + #[\Override] public function getHTML(string $formName) { return <<label('wcf.acp.article.teaserImage') ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof ViewableArticle); @@ -97,6 +98,7 @@ public function applyFilter(DatabaseObjectList $list, string $value): void }) ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof ViewableArticle); diff --git a/wcfsetup/install/files/lib/system/gridView/admin/CronjobLogGridView.class.php b/wcfsetup/install/files/lib/system/gridView/admin/CronjobLogGridView.class.php index e88a04e7ef4..3854767e369 100644 --- a/wcfsetup/install/files/lib/system/gridView/admin/CronjobLogGridView.class.php +++ b/wcfsetup/install/files/lib/system/gridView/admin/CronjobLogGridView.class.php @@ -57,6 +57,7 @@ public function __construct() */ public function __construct(private readonly array $availableCronjobs) {} + #[\Override] public function render(mixed $value, DatabaseObject $row): string { return $this->availableCronjobs[$value]; @@ -81,6 +82,7 @@ public function render(mixed $value, DatabaseObject $row): string )) ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof CronjobLog); diff --git a/wcfsetup/install/files/lib/system/gridView/admin/UserOptionGridView.class.php b/wcfsetup/install/files/lib/system/gridView/admin/UserOptionGridView.class.php index f73a2021caf..5a7a2005158 100644 --- a/wcfsetup/install/files/lib/system/gridView/admin/UserOptionGridView.class.php +++ b/wcfsetup/install/files/lib/system/gridView/admin/UserOptionGridView.class.php @@ -46,6 +46,7 @@ public function __construct() ->titleColumn() ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof UserOption); @@ -59,6 +60,7 @@ public function render(mixed $value, DatabaseObject $row): string ->sortable() ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof UserOption); diff --git a/wcfsetup/install/files/lib/system/gridView/admin/UserRankGridView.class.php b/wcfsetup/install/files/lib/system/gridView/admin/UserRankGridView.class.php index f4c9285461d..b14bb0f7ab0 100644 --- a/wcfsetup/install/files/lib/system/gridView/admin/UserRankGridView.class.php +++ b/wcfsetup/install/files/lib/system/gridView/admin/UserRankGridView.class.php @@ -50,6 +50,7 @@ public function __construct() ->filter(I18nTextFilter::class) ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof UserRank); @@ -65,6 +66,7 @@ public function render(mixed $value, DatabaseObject $row): string ->sortable() ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { \assert($row instanceof UserRank); @@ -83,6 +85,7 @@ public function render(mixed $value, DatabaseObject $row): string )) ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { return StringUtil::encodeHTML(UserGroup::getGroupByID($value)->getName()); @@ -94,6 +97,7 @@ public function render(mixed $value, DatabaseObject $row): string ->sortable() ->renderer([ new class extends DefaultColumnRenderer { + #[\Override] public function render(mixed $value, DatabaseObject $row): string { if (!$value) { diff --git a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php index eae47e95a3d..8248ae5529d 100644 --- a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php @@ -195,6 +195,7 @@ public function enforceQuoteDepth($depth, bool $isFullQuote = false) * * @return string parsed html */ + #[\Override] public function getHtml() { return $this->getHtmlInputNodeProcessor()->getHtml(); diff --git a/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_steam.php b/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_steam.php index a444534ebdb..5d5ee19c786 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_steam.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_steam.php @@ -12,6 +12,7 @@ class HTMLPurifier_URIScheme_steam extends HTMLPurifier_URIScheme * @param HTMLPurifier_Context $context * @return bool */ + #[\Override] public function doValidate(&$uri, $config, $context) { $uri->userinfo = null; diff --git a/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_ts3server.php b/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_ts3server.php index 8779b223fac..ac436f648cc 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_ts3server.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/HTMLPurifier_URIScheme_ts3server.php @@ -12,6 +12,7 @@ class HTMLPurifier_URIScheme_ts3server extends HTMLPurifier_URIScheme * @param HTMLPurifier_Context $context * @return bool */ + #[\Override] public function doValidate(&$uri, $config, $context) { $uri->userinfo = null; diff --git a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php index 3acd06d7660..f3bb695b53b 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php @@ -25,6 +25,7 @@ class MessageHtmlInputFilter implements IHtmlInputFilter * @param string $html unsafe HTML * @return string sanitized HTML */ + #[\Override] public function apply($html) { // work-around for a libxml bug that causes a single space between diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeFont.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeFont.class.php index f48cc271585..9f5721e8930 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeFont.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeFont.class.php @@ -43,9 +43,7 @@ class HtmlInputNodeFont extends AbstractHtmlInputNode '+4' => '48px', ]; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { $allowColor = BBCodeHandler::getInstance()->isAvailableBBCode('color'); @@ -71,9 +69,7 @@ public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) return \array_unique($matches); } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php index 7f838740ab2..e16f5b7da3c 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php @@ -31,9 +31,7 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode */ protected $tagName = 'img'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { if (BBCodeHandler::getInstance()->isAvailableBBCode('img')) { @@ -59,9 +57,7 @@ public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) return ['img']; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { $this->smiliesFound = 0; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeKbd.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeKbd.class.php index ead4bcc562a..6f5d9dc6309 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeKbd.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeKbd.class.php @@ -21,17 +21,13 @@ class HtmlInputNodeKbd extends AbstractHtmlInputNode */ protected $tagName = 'kbd'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { return []; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index 6fd03e23a49..9302b6b8b50 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -190,9 +190,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor */ protected $nodeInterface = IHtmlInputNode::class; - /** - * @inheritDoc - */ + #[\Override] public function process() { $this->plainLinks = []; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSmall.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSmall.class.php index 8b9e663936e..832089044f1 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSmall.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSmall.class.php @@ -21,9 +21,7 @@ class HtmlInputNodeSmall extends AbstractHtmlInputNode */ protected $tagName = 'small'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { if (BBCodeHandler::getInstance()->isAvailableBBCode('size')) { @@ -33,9 +31,7 @@ public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) return ['size']; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSpan.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSpan.class.php index 8841acef441..ae4233e504e 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSpan.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeSpan.class.php @@ -19,17 +19,13 @@ class HtmlInputNodeSpan extends AbstractHtmlInputNode */ protected $tagName = 'span'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { return []; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTable.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTable.class.php index 96280b6ebfc..f2ff5884c21 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTable.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTable.class.php @@ -22,17 +22,13 @@ class HtmlInputNodeTable extends AbstractHtmlInputNode */ protected $tagName = 'table'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { return []; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php index 85eb72d3499..72d68fbf7eb 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php @@ -37,9 +37,7 @@ class HtmlInputNodeWoltlabMetacode extends AbstractHtmlInputNode */ protected $tagName = 'woltlab-metacode'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { $bbcodes = []; @@ -62,9 +60,7 @@ public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) return $disallowedBBCodes; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var IMetacodeConverter[] $converters */ @@ -167,9 +163,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { return $data['parsedTag']; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php index 4ba5f0dc65e..0788699e60a 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php @@ -78,18 +78,14 @@ public function __construct() $this->sourceElements = BBCodeParser::getInstance()->getSourceBBCodes(); } - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { // metacode-marker isn't present at time of validation return []; } - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { // collect pairs diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/AbstractMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/AbstractMetacodeConverter.class.php index 6d5383470d4..72e82b526ae 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/AbstractMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/AbstractMetacodeConverter.class.php @@ -12,9 +12,7 @@ */ abstract class AbstractMetacodeConverter implements IMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { return true; diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php index 9e4a1e860e2..78809ba1d5e 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php @@ -15,9 +15,7 @@ */ class CodeMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('pre'); @@ -134,9 +132,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { // 0-3 attributes diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php index 3b1fc06d92c..3b5545775c8 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ColorMetacodeConverter.class.php @@ -12,9 +12,7 @@ */ class ColorMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('span'); @@ -24,9 +22,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { if (\count($attributes) !== 1) { diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/FontMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/FontMetacodeConverter.class.php index 56f6295c3a0..57ce0da6706 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/FontMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/FontMetacodeConverter.class.php @@ -12,9 +12,7 @@ */ class FontMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('span'); @@ -24,9 +22,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { if (\count($attributes) !== 1) { diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/HtmlMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/HtmlMetacodeConverter.class.php index 2e3798adafb..29cdd3df178 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/HtmlMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/HtmlMetacodeConverter.class.php @@ -15,9 +15,7 @@ */ class HtmlMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('pre'); diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ImgMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ImgMetacodeConverter.class.php index 23b3118b422..c8b3f754e28 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ImgMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ImgMetacodeConverter.class.php @@ -14,9 +14,7 @@ */ class ImgMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('img'); @@ -29,9 +27,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { $count = \count($attributes); diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php index b8f551455d2..a7f032a74ce 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php @@ -15,9 +15,7 @@ */ class ListMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $tagName = 'ul'; diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/MarkMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/MarkMetacodeConverter.class.php index 2f31240ee9a..ac8f7b9ac8e 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/MarkMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/MarkMetacodeConverter.class.php @@ -12,9 +12,7 @@ */ final class MarkMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('mark'); @@ -24,9 +22,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { if (\count($attributes) !== 1) { diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/QuoteMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/QuoteMetacodeConverter.class.php index 07293e3147a..ab4d1d05d0e 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/QuoteMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/QuoteMetacodeConverter.class.php @@ -14,9 +14,7 @@ */ class QuoteMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('woltlab-quote'); @@ -27,9 +25,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { // 0, 1 or 2 attributes diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/SizeMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/SizeMetacodeConverter.class.php index 8cf5fcd2864..f88bf4d01fb 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/SizeMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/SizeMetacodeConverter.class.php @@ -17,9 +17,7 @@ class SizeMetacodeConverter extends AbstractMetacodeConverter */ protected $sizes = [8, 10, 12, 14, 18, 24, 36]; - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('span'); @@ -29,9 +27,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { if (\count($attributes) !== 1) { diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/SpoilerMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/SpoilerMetacodeConverter.class.php index 0b6439c83e5..943268d6bd2 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/SpoilerMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/SpoilerMetacodeConverter.class.php @@ -14,9 +14,7 @@ */ class SpoilerMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('woltlab-spoiler'); @@ -29,9 +27,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { // 0 or 1 attribute diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php index b27b8b8db2d..1ab8ea9c21e 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php @@ -15,9 +15,7 @@ */ class TableMetacodeConverter extends AbstractMetacodeConverter { - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('table'); diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/UrlMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/UrlMetacodeConverter.class.php index efdeacf5335..b433186f9f2 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/UrlMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/UrlMetacodeConverter.class.php @@ -20,9 +20,7 @@ class UrlMetacodeConverter extends AbstractMetacodeConverter */ public static $allowedSchemes = ['http', 'https', 'mailto', 'ftp', 'nntp', 'news', 'tel', 'steam', 'ts3server']; - /** - * @inheritDoc - */ + #[\Override] public function convert(\DOMDocumentFragment $fragment, array $attributes) { $element = $fragment->ownerDocument->createElement('a'); @@ -71,9 +69,7 @@ public function convert(\DOMDocumentFragment $fragment, array $attributes) return $element; } - /** - * @inheritDoc - */ + #[\Override] public function validateAttributes(array $attributes) { if (\count($attributes) > 1) { diff --git a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNode.class.php b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNode.class.php index 4304c22f991..8406555df9d 100644 --- a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNode.class.php +++ b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNode.class.php @@ -24,17 +24,13 @@ abstract class AbstractHtmlNode implements IHtmlNode */ const PLACEHOLDER = ''; - /** - * @inheritDoc - */ + #[\Override] public function getTagName() { return $this->tagName; } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { throw new \BadMethodCallException("Method replaceTag() is not supported by " . static::class); diff --git a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php index 9c049cdb364..cac2cef4ca4 100644 --- a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php @@ -44,9 +44,7 @@ abstract class AbstractHtmlNodeProcessor implements IHtmlNodeProcessor */ protected $xpath; - /** - * @inheritDoc - */ + #[\Override] public function load(IHtmlProcessor $htmlProcessor, string $html) { $this->htmlProcessor = $htmlProcessor; @@ -135,9 +133,7 @@ static function ($matches) use (&$hasMatch) { return $html; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { $html = $this->document->saveHTML($this->document->getElementsByTagName('body')->item(0)); @@ -191,9 +187,7 @@ static function ($matches) use ($data) { return \preg_replace('~>\x{00A0}<~u', '> <', $html); } - /** - * @inheritDoc - */ + #[\Override] public function getDocument() { return $this->document; @@ -323,9 +317,7 @@ public function parseAttributes($attributes) return []; } - /** - * @inheritDoc - */ + #[\Override] public function getHtmlProcessor() { return $this->htmlProcessor; diff --git a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php index fd2820aa167..625528c5bd3 100644 --- a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php @@ -93,9 +93,7 @@ public function setOutputType($outputType) $this->outputType = $outputType; } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { $context = $this->getContext(); @@ -114,6 +112,7 @@ public function getHtml() * @inheritdoc * @throws \InvalidArgumentException */ + #[\Override] public function setContext($objectType, $objectID) { parent::setContext($objectType, $objectID); diff --git a/wcfsetup/install/files/lib/system/html/output/node/AbstractHtmlOutputNode.class.php b/wcfsetup/install/files/lib/system/html/output/node/AbstractHtmlOutputNode.class.php index 01e1826e49e..4f8823bd8f0 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/AbstractHtmlOutputNode.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/AbstractHtmlOutputNode.class.php @@ -21,18 +21,14 @@ abstract class AbstractHtmlOutputNode extends AbstractHtmlNode implements IHtmlO */ protected $outputType = 'text/html'; - /** - * @inheritDoc - */ + #[\Override] public function isAllowed(AbstractHtmlNodeProcessor $htmlNodeProcessor) { // there is no validation for output nodes return []; } - /** - * @inheritDoc - */ + #[\Override] public function setOutputType(string $outputType) { $this->outputType = $outputType; diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeA.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeA.class.php index 9838960df0b..68cb2db7875 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeA.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeA.class.php @@ -28,9 +28,7 @@ class HtmlOutputNodeA extends AbstractHtmlOutputNode */ protected $tagName = 'a'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { // Find links that are nested inside other links. diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php index 52a6d4a9649..1d99e3bd9ff 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php @@ -31,9 +31,7 @@ class HtmlOutputNodeImg extends AbstractHtmlOutputNode */ protected $tagName = 'img'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeKbd.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeKbd.class.php index c6f11eaaa7c..609f30fd73a 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeKbd.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeKbd.class.php @@ -20,9 +20,7 @@ class HtmlOutputNodeKbd extends AbstractHtmlOutputNode */ protected $tagName = 'kbd'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php index 273c2f41acb..6f051259fbe 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php @@ -29,9 +29,7 @@ class HtmlOutputNodePre extends AbstractHtmlOutputNode */ private static $codeIDs = []; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ @@ -79,9 +77,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { // HTML bbcode diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php index 8186fc81f89..507cfb02fac 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php @@ -78,9 +78,7 @@ public function getOutputType() return $this->outputType; } - /** - * @inheritDoc - */ + #[\Override] public function process() { EventHandler::getInstance()->fireAction($this, 'beforeProcess'); @@ -181,9 +179,7 @@ public function process() } } - /** - * @inheritDoc - */ + #[\Override] public function getHtml() { $toc = ''; @@ -297,9 +293,7 @@ protected function hasCodeParent(\DOMText $text) return false; } - /** - * @inheritDoc - */ + #[\Override] protected function invokeHtmlNode(IHtmlNode $htmlNode) { /** @var IHtmlOutputNode $htmlNode */ diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeTable.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeTable.class.php index 1fb60b6ea19..fbfabf76abe 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeTable.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeTable.class.php @@ -19,9 +19,7 @@ class HtmlOutputNodeTable extends AbstractHtmlOutputNode */ protected $tagName = 'table'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { if ($this->outputType === 'text/html' || $this->outputType === 'text/simplified-html') { diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabMetacode.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabMetacode.class.php index d6458758a4d..448f77578ad 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabMetacode.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabMetacode.class.php @@ -20,9 +20,7 @@ class HtmlOutputNodeWoltlabMetacode extends AbstractHtmlOutputNode */ protected $tagName = 'woltlab-metacode'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ @@ -42,9 +40,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { HtmlBBCodeParser::getInstance()->setOutputType($this->outputType); diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabQuote.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabQuote.class.php index ad9ed8f34ad..19d528d0d81 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabQuote.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabQuote.class.php @@ -26,9 +26,7 @@ class HtmlOutputNodeWoltlabQuote extends AbstractHtmlOutputNode */ protected $tagName = 'woltlab-quote'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ @@ -80,9 +78,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { $externalQuoteLink = false; diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabSpoiler.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabSpoiler.class.php index edac41f28bd..12be1c91a3c 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabSpoiler.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeWoltlabSpoiler.class.php @@ -21,9 +21,7 @@ class HtmlOutputNodeWoltlabSpoiler extends AbstractHtmlOutputNode */ protected $tagName = 'woltlab-spoiler'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { /** @var \DOMElement $element */ @@ -50,9 +48,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { return WCF::getTPL()->render('wcf', 'shared_spoilerMetaCode', [ diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputUnfurlUrlNode.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputUnfurlUrlNode.class.php index 18610a048d7..3467408b861 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputUnfurlUrlNode.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputUnfurlUrlNode.class.php @@ -30,9 +30,7 @@ class HtmlOutputUnfurlUrlNode extends AbstractHtmlOutputNode */ protected $tagName = 'a'; - /** - * @inheritDoc - */ + #[\Override] public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProcessor) { if ($this->outputType !== 'text/html') { @@ -76,9 +74,7 @@ public function process(array $elements, AbstractHtmlNodeProcessor $htmlNodeProc } } - /** - * @inheritDoc - */ + #[\Override] public function replaceTag(array $data) { return $this->getUnfurlUrl($data['urlId'])->render($data['enableUgc']); diff --git a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php index 2b1b9b9f32e..c08f6f04205 100644 --- a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php +++ b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php @@ -37,9 +37,7 @@ class HtmlSimpleParser extends SingletonFactory */ protected $regexHandlers = '~\{\{ ((?:[a-z][a-zA-Z]+="(?:\\\\"|[^"])+" ?)*) \}\}~'; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->handlers = MessageEmbeddedObjectManager::getInstance()->getSimpleMessageEmbeddedObjectHandlers(); diff --git a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php index c2589eb074a..f168924230b 100644 --- a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php +++ b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php @@ -133,6 +133,7 @@ public function getDepth(): int /** * Returns the number of children. */ + #[\Override] public function count(): int { return \count($this->children); @@ -168,41 +169,31 @@ public function getOpenParentNodes(): int return $i; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->position = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->children[$this->position]); } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->position++; } - /** - * @inheritDoc - */ + #[\Override] public function current(): self { return $this->children[$this->position]; } - /** - * @inheritDoc - */ + #[\Override] public function key(): int { return $this->position; @@ -211,14 +202,13 @@ public function key(): int /** * @return \RecursiveIterator */ + #[\Override] public function getChildren(): \RecursiveIterator { return $this->children[$this->position]; } - /** - * @inheritDoc - */ + #[\Override] public function hasChildren(): bool { return \count($this->children) > 0; diff --git a/wcfsetup/install/files/lib/system/image/ImageHandler.class.php b/wcfsetup/install/files/lib/system/image/ImageHandler.class.php index c6a4fa8682b..c09fd1c0f63 100644 --- a/wcfsetup/install/files/lib/system/image/ImageHandler.class.php +++ b/wcfsetup/install/files/lib/system/image/ImageHandler.class.php @@ -33,9 +33,7 @@ class ImageHandler extends SingletonFactory */ protected $adapterClassName = ''; - /** - * @inheritDoc - */ + #[\Override] protected function init() { if (!isset($this->imageAdapters[IMAGE_ADAPTER_TYPE])) { diff --git a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php index cffa0dbddc2..17f1ce027ee 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php @@ -72,9 +72,7 @@ public function isImage($image) return (\is_resource($image) && \get_resource_type($image) === 'gd') || (\is_object($image) && $image instanceof \GdImage); } - /** - * @inheritDoc - */ + #[\Override] public function load($image, int $type = 0) { if (!$this->isImage($image)) { @@ -92,9 +90,7 @@ public function load($image, int $type = 0) $this->width = \imagesx($this->image); } - /** - * @inheritDoc - */ + #[\Override] public function loadFile(string $file) { [$this->width, $this->height, $this->type] = \getimagesize($file); @@ -137,9 +133,7 @@ public function loadFile(string $file) } } - /** - * @inheritDoc - */ + #[\Override] public function createEmptyImage(int $width, int $height) { $this->image = \imagecreate($width, $height); @@ -151,9 +145,7 @@ public function createEmptyImage(int $width, int $height) $this->height = $height; } - /** - * @inheritDoc - */ + #[\Override] public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAspectRatio = true) { $x = $y = 0; @@ -203,9 +195,7 @@ public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAsp return $image; } - /** - * @inheritDoc - */ + #[\Override] public function clip(int $originX, int $originY, int $width, int $height) { $image = \imagecreatetruecolor($width, $height); @@ -218,9 +208,7 @@ public function clip(int $originX, int $originY, int $width, int $height) $this->load($image, $this->type); } - /** - * @inheritDoc - */ + #[\Override] public function resize(int $originX, int $originY, int $originWidth, int $originHeight, int $targetWidth = 0, int $targetHeight = 0) { $image = \imagecreatetruecolor($targetWidth, $targetHeight); @@ -244,17 +232,13 @@ public function resize(int $originX, int $originY, int $originWidth, int $origin $this->load($image, $this->type); } - /** - * @inheritDoc - */ + #[\Override] public function drawRectangle(int $startX, int $startY, int $endX, int $endY) { \imagefilledrectangle($this->image, $startX, $startY, $endX, $endY, $this->color); } - /** - * @inheritDoc - */ + #[\Override] public function drawText(string $text, int $x, int $y, $font, int $size, float $opacity = 1.0) { // set opacity @@ -270,9 +254,7 @@ public function drawText(string $text, int $x, int $y, $font, int $size, float $ \imagettftext($this->image, $size, 0, $x, $y, $color, $font, $text); } - /** - * @inheritDoc - */ + #[\Override] public function drawTextRelative(string $text, string $position, int $margin, int $offsetX, int $offsetY, $font, int $size, float $opacity = 1.0) { // split text into multiple lines @@ -332,9 +314,7 @@ public function drawTextRelative(string $text, string $position, int $margin, in $this->drawText($text, $x + $offsetX, $y + $offsetY, $font, $size, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function textFitsImage(string $text, int $margin, $font, int $size) { $box = \imagettfbbox($size, 0, $font, $text); @@ -345,17 +325,13 @@ public function textFitsImage(string $text, int $margin, $font, int $size) return $textWidth + 2 * $margin <= $this->getWidth() && $textHeight + 2 * $margin <= $this->getHeight(); } - /** - * @inheritDoc - */ + #[\Override] public function adjustFontSize(string $text, int $margin, $font, int $size) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function setColor(int $red, int $green, int $blue) { $this->color = \imagecolorallocate($this->image, $red, $green, $blue); @@ -368,17 +344,13 @@ public function setColor(int $red, int $green, int $blue) ]; } - /** - * @inheritDoc - */ + #[\Override] public function hasColor() { return $this->color !== null; } - /** - * @inheritDoc - */ + #[\Override] public function setTransparentColor(int $red, int $green, int $blue) { if ($this->type == \IMAGETYPE_PNG) { @@ -387,9 +359,7 @@ public function setTransparentColor(int $red, int $green, int $blue) } } - /** - * @inheritDoc - */ + #[\Override] public function writeImage($image, ?string $filename) { if (!$this->isImage($image)) { @@ -420,50 +390,38 @@ public function writeImage($image, ?string $filename) \file_put_contents($filename, $stream); } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { return $this->width; } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { return $this->height; } - /** - * @inheritDoc - */ + #[\Override] public function getType() { return $this->type; } - /** - * @inheritDoc - */ + #[\Override] public function getImage() { return $this->image; } - /** - * @inheritDoc - */ + #[\Override] public function rotate($degrees) { // imagerotate interpretes degrees as counter-clockwise return \imagerotate($this->image, 360.0 - $degrees, ($this->color ?: 0)); } - /** - * @inheritDoc - */ + #[\Override] public function overlayImage(string $file, int $x, int $y, float $opacity) { $overlayImage = new self(); @@ -558,17 +516,13 @@ private function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, return true; } - /** - * @inheritDoc - */ + #[\Override] public function overlayImageRelative(string $file, string $position, int $margin, float $opacity) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function saveImageAs(object $image, string $filename, string $type, int $quality = 100): void { if (!$this->isImage($image)) { @@ -611,17 +565,13 @@ public function saveImageAs(object $image, string $filename, string $type, int $ \file_put_contents($filename, $stream); } - /** - * @inheritDoc - */ + #[\Override] public static function isSupported() { return \function_exists('gd_info'); } - /** - * @inheritDoc - */ + #[\Override] public static function supportsWebp(): bool { return !empty(\gd_info()['WebP Support']); diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php index a010271f48e..10384914299 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php @@ -49,17 +49,13 @@ public function __construct($adapterClassName) $this->adapter = new $adapterClassName(); } - /** - * @inheritDoc - */ + #[\Override] public function load($image, int $type = 0) { $this->adapter->load($image, $type); } - /** - * @inheritDoc - */ + #[\Override] public function loadFile(string $file) { if (!\file_exists($file) || !\is_readable($file)) { @@ -85,17 +81,13 @@ public function loadSingleFrameFromFile(string $filename): void $this->adapter->loadSingleFrameFromFile($filename); } - /** - * @inheritDoc - */ + #[\Override] public function createEmptyImage(int $width, int $height) { $this->adapter->createEmptyImage($width, $height); } - /** - * @inheritDoc - */ + #[\Override] public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAspectRatio = true) { if ($maxWidth > $this->getWidth() && $maxHeight > $this->getHeight()) { @@ -116,9 +108,7 @@ public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAsp return $this->adapter->createThumbnail($maxWidth, $maxHeight, $preserveAspectRatio); } - /** - * @inheritDoc - */ + #[\Override] public function clip(int $originX, int $originY, int $width, int $height) { // validate if coordinates and size are within bounds @@ -137,9 +127,7 @@ public function clip(int $originX, int $originY, int $width, int $height) $this->adapter->clip($originX, $originY, $width, $height); } - /** - * @inheritDoc - */ + #[\Override] public function resize(int $originX, int $originY, int $originWidth, int $originHeight, int $targetWidth, int $targetHeight) { // use origin dimensions if target dimensions are both zero @@ -151,9 +139,7 @@ public function resize(int $originX, int $originY, int $originWidth, int $origin $this->adapter->resize($originX, $originY, $originWidth, $originHeight, $targetWidth, $targetHeight); } - /** - * @inheritDoc - */ + #[\Override] public function drawRectangle(int $startX, int $startY, int $endX, int $endY) { if (!$this->adapter->hasColor()) { @@ -163,9 +149,7 @@ public function drawRectangle(int $startX, int $startY, int $endX, int $endY) $this->adapter->drawRectangle($startX, $startY, $endX, $endY); } - /** - * @inheritDoc - */ + #[\Override] public function drawText(string $text, int $x, int $y, $font, int $size, float $opacity = 1.0) { if (!$this->adapter->hasColor()) { @@ -180,9 +164,7 @@ public function drawText(string $text, int $x, int $y, $font, int $size, float $ $this->adapter->drawText($text, $x, $y, $font, $size, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function drawTextRelative(string $text, string $position, int $margin, int $offsetX, int $offsetY, $font, int $size, float $opacity = 1.0) { if (!$this->adapter->hasColor()) { @@ -207,17 +189,13 @@ public function drawTextRelative(string $text, string $position, int $margin, in $this->adapter->drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function textFitsImage(string $text, int $margin, $font, int $size) { return $this->adapter->textFitsImage($text, $margin, $font, $size); } - /** - * @inheritDoc - */ + #[\Override] public function adjustFontSize(string $text, int $margin, $font, int $size) { // adjust font size @@ -228,33 +206,25 @@ public function adjustFontSize(string $text, int $margin, $font, int $size) return $size; } - /** - * @inheritDoc - */ + #[\Override] public function setColor(int $red, int $green, int $blue) { $this->adapter->setColor($red, $green, $blue); } - /** - * @inheritDoc - */ + #[\Override] public function hasColor() { return $this->adapter->hasColor(); } - /** - * @inheritDoc - */ + #[\Override] public function setTransparentColor(int $red, int $green, int $blue) { $this->adapter->setTransparentColor($red, $green, $blue); } - /** - * @inheritDoc - */ + #[\Override] public function writeImage($image, ?string $filename = null) { if ($filename === null) { @@ -265,41 +235,31 @@ public function writeImage($image, ?string $filename = null) $this->adapter->writeImage($image, $filename); } - /** - * @inheritDoc - */ + #[\Override] public function getImage() { return $this->adapter->getImage(); } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { return $this->adapter->getWidth(); } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { return $this->adapter->getHeight(); } - /** - * @inheritDoc - */ + #[\Override] public function getType() { return $this->adapter->getType(); } - /** - * @inheritDoc - */ + #[\Override] public function rotate($degrees) { if ($degrees > 360.0 || $degrees < 0.0) { @@ -309,9 +269,7 @@ public function rotate($degrees) return $this->adapter->rotate($degrees); } - /** - * @inheritDoc - */ + #[\Override] public function overlayImage(string $file, int $x, int $y, float $opacity) { // validate file @@ -327,9 +285,7 @@ public function overlayImage(string $file, int $x, int $y, float $opacity) $this->adapter->overlayImage($file, $x, $y, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function overlayImageRelative(string $file, string $position, int $margin, float $opacity) { // validate file @@ -407,9 +363,7 @@ public function overlayImageRelative(string $file, string $position, int $margin $this->overlayImage($file, $x, $y, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function checkMemoryLimit(int $width, int $height, string $mimeType) { if ($this->adapter instanceof IMemoryAwareImageAdapter) { @@ -421,9 +375,7 @@ public function checkMemoryLimit(int $width, int $height, string $mimeType) return FileUtil::checkMemoryLimit((int)($width * $height * $channels * 2.1)); } - /** - * @inheritDoc - */ + #[\Override] public function saveImageAs(object $image, string $filename, string $type, int $quality = 100): void { switch ($type) { @@ -445,9 +397,7 @@ public function saveImageAs(object $image, string $filename, string $type, int $ $this->adapter->saveImageAs($image, $filename, $type, $quality); } - /** - * @inheritDoc - */ + #[\Override] public static function isSupported() { return false; diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index 700e0db54e7..445e24f0f2d 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -68,9 +68,7 @@ public function __construct() } } - /** - * @inheritDoc - */ + #[\Override] public function load($image, int $type = 0) { // @phpstan-ignore instanceof.alwaysTrue @@ -83,9 +81,7 @@ public function load($image, int $type = 0) $this->readImageDimensions(); } - /** - * @inheritDoc - */ + #[\Override] public function loadFile(string $file) { try { @@ -134,9 +130,7 @@ protected function readImageDimensions() } } - /** - * @inheritDoc - */ + #[\Override] public function createEmptyImage(int $width, int $height) { $this->imagick->newImage($width, $height, 'white'); @@ -145,9 +139,7 @@ public function createEmptyImage(int $width, int $height) $this->height = $height; } - /** - * @inheritDoc - */ + #[\Override] public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAspectRatio = true) { $thumbnail = clone $this->imagick; @@ -173,9 +165,7 @@ public function createThumbnail(int $maxWidth, int $maxHeight, bool $preserveAsp return $thumbnail; } - /** - * @inheritDoc - */ + #[\Override] public function clip(int $originX, int $originY, int $width, int $height) { if (\in_array($this->imagick->getImageFormat(), self::$animatedFormats)) { @@ -190,9 +180,7 @@ public function clip(int $originX, int $originY, int $width, int $height) } } - /** - * @inheritDoc - */ + #[\Override] public function resize(int $originX, int $originY, int $originWidth, int $originHeight, int $targetWidth, int $targetHeight) { if (\in_array($this->imagick->getImageFormat(), self::$animatedFormats)) { @@ -212,9 +200,7 @@ public function resize(int $originX, int $originY, int $originWidth, int $origin } } - /** - * @inheritDoc - */ + #[\Override] public function drawRectangle(int $startX, int $startY, int $endX, int $endY) { $draw = new \ImagickDraw(); @@ -225,9 +211,7 @@ public function drawRectangle(int $startX, int $startY, int $endX, int $endY) $this->imagick->drawImage($draw); } - /** - * @inheritDoc - */ + #[\Override] public function drawText(string $text, int $x, int $y, $font, int $size, float $opacity = 1.0) { $draw = new \ImagickDraw(); @@ -251,9 +235,7 @@ public function drawText(string $text, int $x, int $y, $font, int $size, float $ } } - /** - * @inheritDoc - */ + #[\Override] public function drawTextRelative(string $text, string $position, int $margin, int $offsetX, int $offsetY, $font, int $size, float $opacity = 1.0) { // split text into multiple lines @@ -316,9 +298,7 @@ public function drawTextRelative(string $text, string $position, int $margin, in $this->drawText($text, $x + $offsetX, $y + $offsetY, $font, $size, $opacity); } - /** - * @inheritDoc - */ + #[\Override] public function textFitsImage(string $text, int $margin, $font, int $size) { $draw = new \ImagickDraw(); @@ -329,26 +309,20 @@ public function textFitsImage(string $text, int $margin, $font, int $size) return $metrics['textWidth'] + 2 * $margin <= $this->getWidth() && $metrics['textHeight'] + 2 * $margin <= $this->getHeight(); } - /** - * @inheritDoc - */ + #[\Override] public function adjustFontSize(string $text, int $margin, $font, int $size) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function setColor(int $red, int $green, int $blue) { $this->color = new \ImagickPixel(); $this->color->setColor('rgb(' . $red . ',' . $green . ',' . $blue . ')'); } - /** - * @inheritDoc - */ + #[\Override] public function hasColor() { if ($this->color instanceof \ImagickPixel) { @@ -358,26 +332,20 @@ public function hasColor() return false; } - /** - * @inheritDoc - */ + #[\Override] public function setTransparentColor(int $red, int $green, int $blue) { $color = 'rgb(' . $red . ',' . $green . ',' . $blue . ')'; $this->imagick->paintTransparentImage($color, 0.0, 0); } - /** - * @inheritDoc - */ + #[\Override] public function getImage() { return $this->imagick; } - /** - * @inheritDoc - */ + #[\Override] public function writeImage($image, ?string $filename) { if (!($image instanceof \Imagick)) { @@ -397,33 +365,25 @@ public function writeImage($image, ?string $filename) $image->writeImages($filename, true); } - /** - * @inheritDoc - */ + #[\Override] public function getHeight() { return $this->height; } - /** - * @inheritDoc - */ + #[\Override] public function getWidth() { return $this->width; } - /** - * @inheritDoc - */ + #[\Override] public function getType() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function rotate($degrees) { $image = clone $this->imagick; @@ -432,9 +392,7 @@ public function rotate($degrees) return $image; } - /** - * @inheritDoc - */ + #[\Override] public function overlayImage(string $file, int $x, int $y, float $opacity) { try { @@ -463,9 +421,7 @@ public function overlayImage(string $file, int $x, int $y, float $opacity) } } - /** - * @inheritDoc - */ + #[\Override] public function overlayImageRelative(string $file, string $position, int $margin, float $opacity) { // does nothing @@ -490,9 +446,7 @@ protected function getResizeFilter() return $filter; } - /** - * @inheritDoc - */ + #[\Override] public static function isSupported() { return \class_exists('\Imagick', false); @@ -508,9 +462,7 @@ public static function getVersion() return $match['version']; } - /** - * @inheritDoc - */ + #[\Override] public function saveImageAs(object $image, string $filename, string $type, int $quality = 100): void { if (!($image instanceof \Imagick)) { @@ -571,9 +523,7 @@ public static function supportsAnimatedGIFs($version) return \version_compare($version, '6.3.6') >= 0; } - /** - * @inheritDoc - */ + #[\Override] public static function supportsWebp(): bool { return \in_array('WEBP', \Imagick::queryFormats()); diff --git a/wcfsetup/install/files/lib/system/image/cover/photo/CoverPhotoImage.class.php b/wcfsetup/install/files/lib/system/image/cover/photo/CoverPhotoImage.class.php index e0ac1cf8a02..a755e2b30fe 100644 --- a/wcfsetup/install/files/lib/system/image/cover/photo/CoverPhotoImage.class.php +++ b/wcfsetup/install/files/lib/system/image/cover/photo/CoverPhotoImage.class.php @@ -102,16 +102,19 @@ protected static function getDefaultCoverPhoto() { if (self::$defaultCoverPhotoImage === null) { self::$defaultCoverPhotoImage = new class implements ICoverPhotoImage { + #[\Override] public function getCoverPhotoCaption() { return ''; } + #[\Override] public function getCoverPhotoLocation() { return StyleHandler::getInstance()->getStyle()->getCoverPhotoLocation(); } + #[\Override] public function getCoverPhotoUrl() { return StyleHandler::getInstance()->getStyle()->getCoverPhotoUrl(); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php index 1d5266829b3..437333f1672 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php @@ -45,9 +45,7 @@ public function __construct() $this->options = $statement->fetchMap('optionName', 'optionID'); } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if (!isset($this->options[$additionalData['optionName']])) { diff --git a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php index 88efd9a4dd1..410d8811f17 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php @@ -27,9 +27,7 @@ class AbstractAttachmentImporter extends AbstractImporter */ protected $objectTypeID = 0; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { // check file location diff --git a/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php index 0ffa6a1ab24..eb9dc13cf83 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php @@ -34,9 +34,7 @@ class AbstractCategoryImporter extends AbstractImporter */ protected $objectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if (!empty($data['parentCategoryID'])) { diff --git a/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php index e45c5a6eadd..07a82689191 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php @@ -31,9 +31,7 @@ class AbstractCommentImporter extends AbstractImporter */ protected $objectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractCommentResponseImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractCommentResponseImporter.class.php index 231317ee7a9..d2147853a37 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractCommentResponseImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractCommentResponseImporter.class.php @@ -26,9 +26,7 @@ class AbstractCommentResponseImporter extends AbstractImporter */ protected $objectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php index e58317c8bd4..ee9773995a1 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php @@ -25,9 +25,7 @@ abstract class AbstractImporter implements IImporter */ protected $className = ''; - /** - * @inheritDoc - */ + #[\Override] public function getClassName() { return $this->className; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php index 7ba435971e5..71928a7d161 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php @@ -35,9 +35,7 @@ class AbstractLikeImporter extends AbstractImporter */ protected static $dislikeReactionTypeID; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if ($data['objectUserID']) { diff --git a/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php index dc6d7e09927..4ef3925f737 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php @@ -31,9 +31,7 @@ class AbstractPollImporter extends AbstractImporter */ protected $objectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $poll = PollEditor::create(\array_merge($data, ['objectTypeID' => $this->objectTypeID])); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionImporter.class.php index 7e73996cceb..060bfcc4818 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionImporter.class.php @@ -31,9 +31,7 @@ class AbstractPollOptionImporter extends AbstractImporter */ protected $pollObjectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['pollID'] = ImportHandler::getInstance()->getNewID($this->pollObjectTypeName, $data['pollID']); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php index 973ef7bea72..a58e3454e5f 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php @@ -25,9 +25,7 @@ class AbstractPollOptionVoteImporter extends AbstractImporter */ protected $pollObjectTypeName = ''; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php index e06ca9df9c6..1b458af4873 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php @@ -26,9 +26,7 @@ class AbstractWatchedObjectImporter extends AbstractImporter */ protected $objectTypeID = 0; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php index 99ef14fe5ec..ee42b6e4df8 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleCommentImporter.class.php @@ -29,9 +29,7 @@ public function __construct() $this->objectTypeID = $objectType->objectTypeID; } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $articleID = ImportHandler::getInstance() diff --git a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php index 004ca28ee26..303b8579741 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php @@ -30,9 +30,7 @@ class ArticleImporter extends AbstractImporter */ private $importCategoryID = 0; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php index 734548b4111..b6d6e33c8c7 100644 --- a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php +++ b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php @@ -57,9 +57,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction */ public static $allowInvoke = ['resetMapping']; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.importer'); diff --git a/wcfsetup/install/files/lib/system/importer/LabelGroupImporter.class.php b/wcfsetup/install/files/lib/system/importer/LabelGroupImporter.class.php index a9baac98396..9a0c6d7af4d 100644 --- a/wcfsetup/install/files/lib/system/importer/LabelGroupImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/LabelGroupImporter.class.php @@ -20,9 +20,7 @@ class LabelGroupImporter extends AbstractImporter */ protected $className = LabelGroup::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { // save label group diff --git a/wcfsetup/install/files/lib/system/importer/LabelImporter.class.php b/wcfsetup/install/files/lib/system/importer/LabelImporter.class.php index 8ad03020f7d..7483658cfb2 100644 --- a/wcfsetup/install/files/lib/system/importer/LabelImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/LabelImporter.class.php @@ -19,9 +19,7 @@ class LabelImporter extends AbstractImporter */ protected $className = Label::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.label.group', $data['groupID']); diff --git a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php index 23b66ee934f..e534000ee37 100644 --- a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php @@ -23,9 +23,7 @@ class MediaImporter extends AbstractImporter */ protected $className = Media::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { // check file location diff --git a/wcfsetup/install/files/lib/system/importer/PageImporter.class.php b/wcfsetup/install/files/lib/system/importer/PageImporter.class.php index 56addd4db20..4f93f511f87 100644 --- a/wcfsetup/install/files/lib/system/importer/PageImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/PageImporter.class.php @@ -22,9 +22,7 @@ class PageImporter extends AbstractImporter */ protected $className = Page::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $contents = []; diff --git a/wcfsetup/install/files/lib/system/importer/ReactionTypeImporter.class.php b/wcfsetup/install/files/lib/system/importer/ReactionTypeImporter.class.php index 7866d95a2ac..0334d90ff14 100644 --- a/wcfsetup/install/files/lib/system/importer/ReactionTypeImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ReactionTypeImporter.class.php @@ -20,9 +20,7 @@ class ReactionTypeImporter extends AbstractImporter */ protected $className = ReactionType::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { // copy reaction type image diff --git a/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php b/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php index c2999c05896..4ef9a3689ba 100644 --- a/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php @@ -50,9 +50,7 @@ public function __construct() } } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { // copy smiley diff --git a/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php b/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php index 32f208d2f55..733f1ba3f98 100644 --- a/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php @@ -29,9 +29,7 @@ class TrophyImporter extends AbstractImporter */ private $importCategoryID = 0; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if (isset($data['categoryID'])) { diff --git a/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php index fc8f21b539e..cc53c4c159d 100644 --- a/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php @@ -45,6 +45,7 @@ public function import(mixed $oldID, array $data, array $additionalData = []) return $file->fileID; } + #[\Override] protected function isValidFile(File $file): bool { return $file->isImage(); diff --git a/wcfsetup/install/files/lib/system/importer/UserCommentImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserCommentImporter.class.php index 8f2f063a96f..ab1b3ad2741 100644 --- a/wcfsetup/install/files/lib/system/importer/UserCommentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserCommentImporter.class.php @@ -28,9 +28,7 @@ public function __construct() $this->objectTypeID = $objectType->objectTypeID; } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['objectID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['objectID']); diff --git a/wcfsetup/install/files/lib/system/importer/UserCoverPhotoImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserCoverPhotoImporter.class.php index 9e737954152..038a6f9c096 100644 --- a/wcfsetup/install/files/lib/system/importer/UserCoverPhotoImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserCoverPhotoImporter.class.php @@ -45,6 +45,7 @@ public function import(mixed $oldID, array $data, array $additionalData = []) return $file->fileID; } + #[\Override] protected function isValidFile(File $file): bool { return $file->isImage(); diff --git a/wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php index e466a2c3eca..e4b07a70f9b 100644 --- a/wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserFollowerImporter.class.php @@ -19,9 +19,7 @@ class UserFollowerImporter extends AbstractImporter */ protected $className = UserFollow::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); diff --git a/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php index 17c934c0094..342ffc55232 100644 --- a/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserGroupImporter.class.php @@ -21,9 +21,7 @@ class UserGroupImporter extends AbstractImporter */ protected $className = UserGroup::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if ($data['groupType'] < 4) { diff --git a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php index 715d8b1bdc9..feb2ea37a7d 100644 --- a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php @@ -75,9 +75,7 @@ public function __construct() ]; } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $targetUser = null; diff --git a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php index 2040601877e..95afbe0408a 100644 --- a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php @@ -52,9 +52,7 @@ public function __construct() $this->languageCategoryID = $row['languageCategoryID']; } - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['packageID'] = 1; diff --git a/wcfsetup/install/files/lib/system/importer/UserRankImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserRankImporter.class.php index f0ee3eca3da..4304f14dab3 100644 --- a/wcfsetup/install/files/lib/system/importer/UserRankImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserRankImporter.class.php @@ -20,9 +20,7 @@ class UserRankImporter extends AbstractImporter */ protected $className = UserRank::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { $data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user.group', $data['groupID']); diff --git a/wcfsetup/install/files/lib/system/importer/UserTrophyImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserTrophyImporter.class.php index 1e3561fb6b6..20fbbe86c7e 100644 --- a/wcfsetup/install/files/lib/system/importer/UserTrophyImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserTrophyImporter.class.php @@ -20,9 +20,7 @@ class UserTrophyImporter extends AbstractImporter */ protected $className = UserTrophy::class; - /** - * @inheritDoc - */ + #[\Override] public function import(mixed $oldID, array $data, array $additionalData = []) { if (isset($data['trophyID'])) { diff --git a/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php b/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php index 0e0e86278e3..af315748fdd 100644 --- a/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php @@ -61,9 +61,6 @@ public function __construct($filename) } } - /** - * @inheritDoc - */ public function __destruct() { $this->close(); @@ -119,11 +116,11 @@ public function flush() } /** - * @inheritDoc * @param string $function * @param mixed[] $arguments * @return mixed */ + #[\Override] public function __call($function, $arguments) { if ($this->isFlushed) { diff --git a/wcfsetup/install/files/lib/system/io/GZipFile.class.php b/wcfsetup/install/files/lib/system/io/GZipFile.class.php index 29413b05fcf..00c023f1d4b 100644 --- a/wcfsetup/install/files/lib/system/io/GZipFile.class.php +++ b/wcfsetup/install/files/lib/system/io/GZipFile.class.php @@ -40,6 +40,7 @@ public function __construct($filename, $mode = 'wb') * @return mixed * @throws SystemException */ + #[\Override] public function __call($function, $arguments) { if (\function_exists('gz' . $function)) { diff --git a/wcfsetup/install/files/lib/system/io/Tar.class.php b/wcfsetup/install/files/lib/system/io/Tar.class.php index 8a9225e25bb..f3194fd56c9 100644 --- a/wcfsetup/install/files/lib/system/io/Tar.class.php +++ b/wcfsetup/install/files/lib/system/io/Tar.class.php @@ -147,9 +147,7 @@ public function close() } } - /** - * @inheritDoc - */ + #[\Override] public function getContentList() { if (!$this->read) { @@ -160,9 +158,7 @@ public function getContentList() return $this->contentList; } - /** - * @inheritDoc - */ + #[\Override] public function getFileInfo($index) { if (!\is_int($index)) { @@ -176,9 +172,7 @@ public function getFileInfo($index) return $this->contentList[$index]; } - /** - * @inheritDoc - */ + #[\Override] public function getIndexByFilename(string $filename) { foreach ($this->contentList as $index => $file) { @@ -190,9 +184,7 @@ public function getIndexByFilename(string $filename) return false; } - /** - * @inheritDoc - */ + #[\Override] public function extractToString($index) { if (!$this->read) { @@ -257,9 +249,7 @@ public function extractToChunks(int|string $index, int $chunkSize): \Generator } } - /** - * @inheritDoc - */ + #[\Override] public function extract($index, string $destination) { if (!$this->read) { diff --git a/wcfsetup/install/files/lib/system/io/Zip.class.php b/wcfsetup/install/files/lib/system/io/Zip.class.php index 60f3072df9b..6bd93985200 100644 --- a/wcfsetup/install/files/lib/system/io/Zip.class.php +++ b/wcfsetup/install/files/lib/system/io/Zip.class.php @@ -28,9 +28,6 @@ class Zip extends File implements IArchive */ protected $centralDirectory; - /** - * @inheritDoc - */ public function __construct($filename) { parent::__construct($filename, 'rb'); @@ -38,9 +35,7 @@ public function __construct($filename) $this->centralDirectory = $this->readCentralDirectory(); } - /** - * @inheritDoc - */ + #[\Override] public function getIndexByFilename(string $filename) { if (isset($this->centralDirectory['files'][$filename])) { @@ -50,17 +45,13 @@ public function getIndexByFilename(string $filename) return false; } - /** - * @inheritDoc - */ + #[\Override] public function getContentList() { return $this->centralDirectory['files']; } - /** - * @inheritDoc - */ + #[\Override] public function getFileInfo($index) { if (!\is_int($index)) { @@ -92,9 +83,7 @@ public function extractAll($destination) } } - /** - * @inheritDoc - */ + #[\Override] public function extractToString($index) { if (!\is_int($index)) { @@ -113,9 +102,7 @@ public function extractToString($index) return $file['content']; } - /** - * @inheritDoc - */ + #[\Override] public function extract($index, string $destination) { if (!\is_int($index)) { diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index 68dc33c5881..1c009f442dd 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -39,9 +39,7 @@ class LabelHandler extends SingletonFactory */ protected $labelGroups; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = [ diff --git a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php index d1af44a0d50..f677351c6ac 100644 --- a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php @@ -35,9 +35,7 @@ abstract class AbstractLabelObjectHandler extends SingletonFactory implements IL */ protected $objectTypeID = 0; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->labelGroups = LabelHandler::getInstance()->getLabelGroups(); @@ -49,18 +47,16 @@ protected function init() $this->objectTypeID = $objectType->objectTypeID; } - /** - * @inheritDoc - */ + #[\Override] public function getLabelGroupIDs(array $parameters = []) { return \array_keys($this->labelGroups); } /** - * @inheritDoc * @return ViewableLabelGroup[] */ + #[\Override] public function getLabelGroups(array $parameters = []) { $groupIDs = $this->getLabelGroupIDs($parameters); @@ -75,9 +71,7 @@ public function getLabelGroups(array $parameters = []) return $data; } - /** - * @inheritDoc - */ + #[\Override] public function validateLabelIDs(array $labelIDs, string $optionName = '', bool $legacyReturnValue = true) { $optionID = 0; @@ -147,17 +141,13 @@ public function validateLabelIDs(array $labelIDs, string $optionName = '', bool } } - /** - * @inheritDoc - */ + #[\Override] public function setLabels(array $labelIDs, int $objectID, bool $validatePermissions = true) { LabelHandler::getInstance()->setLabels($labelIDs, $this->objectTypeID, $objectID, $validatePermissions); } - /** - * @inheritDoc - */ + #[\Override] public function removeLabels(int $objectID, bool $validatePermissions = true) { // @phpstan-ignore function.impossibleType @@ -165,9 +155,7 @@ public function removeLabels(int $objectID, bool $validatePermissions = true) LabelHandler::getInstance()->removeLabels($this->objectTypeID, $objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public function getAssignedLabels(array $objectIDs, bool $validatePermissions = true) { return LabelHandler::getInstance()->getAssignedLabels($this->objectTypeID, $objectIDs, $validatePermissions); diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index 0ed7e205ce3..fbf7743919e 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -56,9 +56,7 @@ final class I18nHandler extends SingletonFactory */ protected $regex; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->availableLanguages = LanguageFactory::getInstance()->getLanguages(); diff --git a/wcfsetup/install/files/lib/system/language/I18nValue.class.php b/wcfsetup/install/files/lib/system/language/I18nValue.class.php index cfa9e3ed0a9..ed9ece98a0d 100644 --- a/wcfsetup/install/files/lib/system/language/I18nValue.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nValue.class.php @@ -141,9 +141,7 @@ public function getPackageID() return PackageCache::getInstance()->getPackageID($this->languageItemPackage); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getFieldName(); diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index 4a832abbced..cf5e9e7a7a9 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -33,9 +33,7 @@ class LanguageFactory extends SingletonFactory */ protected $scriptingCompiler; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->loadCache(); diff --git a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php index 9d789ba44ba..c4db8bdb1f8 100644 --- a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php +++ b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php @@ -45,6 +45,7 @@ class LikeHandler extends SingletonFactory /** * Creates a new LikeHandler instance. */ + #[\Override] protected function init() { // does nothing diff --git a/wcfsetup/install/files/lib/system/listView/ListViewSortField.class.php b/wcfsetup/install/files/lib/system/listView/ListViewSortField.class.php index f24c8d9496f..ab8f0f9b7e5 100644 --- a/wcfsetup/install/files/lib/system/listView/ListViewSortField.class.php +++ b/wcfsetup/install/files/lib/system/listView/ListViewSortField.class.php @@ -20,6 +20,7 @@ public function __construct( public readonly string $sortByDatabaseColumn = '' ) {} + #[\Override] public function __toString(): string { return WCF::getLanguage()->get($this->languageItem); diff --git a/wcfsetup/install/files/lib/system/log/modification/AbstractExtendedModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/AbstractExtendedModificationLogHandler.class.php index a7678ce0559..4f837dfced0 100644 --- a/wcfsetup/install/files/lib/system/log/modification/AbstractExtendedModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/AbstractExtendedModificationLogHandler.class.php @@ -14,9 +14,7 @@ abstract class AbstractExtendedModificationLogHandler extends AbstractModificationLogHandler implements IExtendedModificationLogHandler { - /** - * @inheritDoc - */ + #[\Override] public function includeInLogList() { return true; diff --git a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php index 8eda849f1f8..9dfae7e9498 100644 --- a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php @@ -34,9 +34,9 @@ abstract class AbstractModificationLogHandler extends SingletonFactory protected $objectTypeName = ''; /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function init() { $this->objectType = ObjectTypeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/log/modification/VoidExtendedModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/VoidExtendedModificationLogHandler.class.php index b2e1b108c15..094ac72d97f 100644 --- a/wcfsetup/install/files/lib/system/log/modification/VoidExtendedModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/VoidExtendedModificationLogHandler.class.php @@ -13,25 +13,19 @@ */ class VoidExtendedModificationLogHandler extends AbstractExtendedModificationLogHandler { - /** - * @inheritDoc - */ + #[\Override] public function getAvailableActions() { return []; } - /** - * @inheritDoc - */ + #[\Override] public function includeInLogList() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function processItems(array $items) { throw new \BadMethodCallException("Cannot process items."); diff --git a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php index 53181a25a41..7b87dd0db00 100644 --- a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php @@ -33,9 +33,7 @@ abstract class TreeMenu extends SingletonFactory */ public $menuItems; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get menu items from cache diff --git a/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php b/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php index 0db6ffa778c..b947cef4c7d 100644 --- a/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php @@ -30,9 +30,9 @@ class ACPMenu extends TreeMenu ]; /** - * @inheritDoc * @param AcpMenuItem $item */ + #[\Override] protected function checkMenuItem(ITreeMenuItem $item) { if ( @@ -46,9 +46,7 @@ protected function checkMenuItem(ITreeMenuItem $item) return true; } - /** - * @inheritDoc - */ + #[\Override] protected function loadCache() { parent::loadCache(); @@ -100,6 +98,7 @@ private function loadLegacyMenuItems(): void } } + #[\Override] protected function removeEmptyItems($parentMenuItem = '') { if (!isset($this->menuItems[$parentMenuItem])) { diff --git a/wcfsetup/install/files/lib/system/menu/acp/AcpMenuItem.class.php b/wcfsetup/install/files/lib/system/menu/acp/AcpMenuItem.class.php index 9db8a3e1d44..9f98c615e65 100644 --- a/wcfsetup/install/files/lib/system/menu/acp/AcpMenuItem.class.php +++ b/wcfsetup/install/files/lib/system/menu/acp/AcpMenuItem.class.php @@ -39,6 +39,7 @@ public function getIcon(): FontAwesomeIcon return $this->icon; } + #[\Override] public function __toString() { return $this->title ?: WCF::getLanguage()->get($this->menuItem); diff --git a/wcfsetup/install/files/lib/system/menu/user/DefaultUserMenuItemProvider.class.php b/wcfsetup/install/files/lib/system/menu/user/DefaultUserMenuItemProvider.class.php index d1b26f360c1..082c5a575ad 100644 --- a/wcfsetup/install/files/lib/system/menu/user/DefaultUserMenuItemProvider.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/DefaultUserMenuItemProvider.class.php @@ -22,17 +22,13 @@ class DefaultUserMenuItemProvider extends DatabaseObjectDecorator implements IUs */ protected static $baseClass = UserMenuItem::class; - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { // explicit call to satisfy our interface diff --git a/wcfsetup/install/files/lib/system/menu/user/UserMenu.class.php b/wcfsetup/install/files/lib/system/menu/user/UserMenu.class.php index 2e9c166be93..3f46b303762 100644 --- a/wcfsetup/install/files/lib/system/menu/user/UserMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/UserMenu.class.php @@ -26,9 +26,7 @@ class UserMenu extends TreeMenu */ protected $optionHandler; - /** - * @inheritDoc - */ + #[\Override] protected function loadCache() { parent::loadCache(); @@ -38,9 +36,7 @@ protected function loadCache() $this->optionHandler->setUser(WCF::getUser()); } - /** - * @inheritDoc - */ + #[\Override] protected function checkMenuItem(ITreeMenuItem $item) { /** @var UserMenuItem $item */ diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php index 8ed775625f8..279889eb7fc 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php @@ -28,9 +28,7 @@ class UserProfileMenu extends SingletonFactory */ public $menuItems; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get menu items from cache diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/AboutUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/AboutUserProfileMenuContent.class.php index 7040cb338b5..9a024b694d8 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/AboutUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/AboutUserProfileMenuContent.class.php @@ -23,9 +23,7 @@ class AboutUserProfileMenuContent extends SingletonFactory implements IUserProfi */ public $optionHandler; - /** - * @inheritDoc - */ + #[\Override] public function getContent(int $userID) { if ($this->optionHandler === null) { @@ -44,9 +42,7 @@ public function getContent(int $userID) ]); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(int $userID) { return true; diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php index 5dbcb72cd00..5e2b5ab1966 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php @@ -27,9 +27,7 @@ class CommentUserProfileMenuContent extends SingletonFactory implements IUserPro */ public $objectTypeID = 0; - /** - * @inheritDoc - */ + #[\Override] public function getContent(int $userID) { if ($this->commentManager === null) { @@ -54,9 +52,7 @@ public function getContent(int $userID) ]); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(int $userID) { return true; diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/LikesUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/LikesUserProfileMenuContent.class.php index c46c889773e..93e38f8a11b 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/LikesUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/LikesUserProfileMenuContent.class.php @@ -15,9 +15,7 @@ */ class LikesUserProfileMenuContent extends SingletonFactory implements IUserProfileMenuContent { - /** - * @inheritDoc - */ + #[\Override] public function getContent(int $userID) { $likeList = new ViewableLikeList(); @@ -31,9 +29,7 @@ public function getContent(int $userID) ]); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(int $userID) { if (!WCF::getSession()->getPermission('user.like.canViewLike')) { diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/RecentActivityUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/RecentActivityUserProfileMenuContent.class.php index d427dd3bfcc..c06e642eecb 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/RecentActivityUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/RecentActivityUserProfileMenuContent.class.php @@ -16,9 +16,7 @@ */ class RecentActivityUserProfileMenuContent extends SingletonFactory implements IUserProfileMenuContent { - /** - * @inheritDoc - */ + #[\Override] public function getContent(int $userID) { $eventList = new ViewableUserActivityEventList(); @@ -42,9 +40,7 @@ public function getContent(int $userID) ]); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(int $userID) { return true; diff --git a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php index 4ac98a4b0a1..caaaf15fed0 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -33,9 +33,7 @@ class Censorship extends SingletonFactory */ protected $words = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get words which should be censored diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/AbstractSimpleMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/AbstractSimpleMessageEmbeddedObjectHandler.class.php index 7e809ce80ed..624297b4f3a 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/AbstractSimpleMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/AbstractSimpleMessageEmbeddedObjectHandler.class.php @@ -14,9 +14,7 @@ abstract class AbstractSimpleMessageEmbeddedObjectHandler extends AbstractMessageEmbeddedObjectHandler implements ISimpleMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { // this default implementation allows for embedded object handlers that diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php index a773a36592a..1d1b0e521c6 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php @@ -17,9 +17,7 @@ */ class ArticleMessageEmbeddedObjectHandler extends AbstractSimpleMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $articleIDs = []; @@ -32,9 +30,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return \array_unique($articleIDs); } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { // Do not use `ViewableArticleRuntimeCache` to avoid recursively loading embedded objects. @@ -71,9 +67,7 @@ public function loadObjects(array $objectIDs) return $articles; } - /** - * @inheritDoc - */ + #[\Override] public function validateValues(string $objectType, int $objectID, array $values) { $articleList = new AccessibleArticleList(); @@ -86,9 +80,7 @@ public function validateValues(string $objectType, int $objectID, array $values) }); } - /** - * @inheritDoc - */ + #[\Override] public function replaceSimple(string $objectType, int $objectID, string|int $value, array $attributes) { $article = MessageEmbeddedObjectManager::getInstance()->getObject('com.woltlab.wcf.article', $value); diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/AttachmentMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/AttachmentMessageEmbeddedObjectHandler.class.php index 12f98d8ba16..bf009ec720f 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/AttachmentMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/AttachmentMessageEmbeddedObjectHandler.class.php @@ -18,9 +18,7 @@ */ class AttachmentMessageEmbeddedObjectHandler extends AbstractMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { if (empty($embeddedData['attach'])) { @@ -48,9 +46,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return []; } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { $attachmentList = new AttachmentList(); diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/MediaMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/MediaMessageEmbeddedObjectHandler.class.php index 87fdd2c943e..c1522205735 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/MediaMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/MediaMessageEmbeddedObjectHandler.class.php @@ -19,9 +19,7 @@ */ class MediaMessageEmbeddedObjectHandler extends AbstractSimpleMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $mediaIDs = []; @@ -40,9 +38,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return \array_unique($mediaIDs); } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { $viewableMedia = ViewableMediaRuntimeCache::getInstance()->getObjects($objectIDs); @@ -75,9 +71,7 @@ public function loadObjects(array $objectIDs) return $viewableMedia; } - /** - * @inheritDoc - */ + #[\Override] public function validateValues(string $objectType, int $objectID, array $values) { $mediaList = new MediaList(); @@ -87,9 +81,7 @@ public function validateValues(string $objectType, int $objectID, array $values) return $mediaList->getObjectIDs(); } - /** - * @inheritDoc - */ + #[\Override] public function replaceSimple(string $objectType, int $objectID, string|int $value, array $attributes) { /** @var ?Media $media */ diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/PageMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/PageMessageEmbeddedObjectHandler.class.php index 3fcfde4d34f..abee27548c9 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/PageMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/PageMessageEmbeddedObjectHandler.class.php @@ -16,9 +16,7 @@ */ class PageMessageEmbeddedObjectHandler extends AbstractSimpleMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $pageIDs = []; @@ -31,9 +29,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return \array_unique($pageIDs); } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { $pages = []; @@ -48,9 +44,7 @@ public function loadObjects(array $objectIDs) return $pages; } - /** - * @inheritDoc - */ + #[\Override] public function validateValues(string $objectType, int $objectID, array $values) { // Pages can be referenced as `123#Some Text`, where everything after the number @@ -63,9 +57,7 @@ public function validateValues(string $objectType, int $objectID, array $values) }); } - /** - * @inheritDoc - */ + #[\Override] public function replaceSimple(string $objectType, int $objectID, string|int $value, array $attributes) { $page = MessageEmbeddedObjectManager::getInstance()->getObject('com.woltlab.wcf.page', $value); diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/QuoteMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/QuoteMessageEmbeddedObjectHandler.class.php index 132b9e25505..88830084098 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/QuoteMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/QuoteMessageEmbeddedObjectHandler.class.php @@ -16,9 +16,7 @@ */ class QuoteMessageEmbeddedObjectHandler extends AbstractMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $usernames = []; @@ -45,9 +43,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return []; } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { return UserProfileRuntimeCache::getInstance()->getObjects($objectIDs); diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/UnfurlUrlEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/UnfurlUrlEmbeddedObjectHandler.class.php index 074bbe3f128..024ccf401e6 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/UnfurlUrlEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/UnfurlUrlEmbeddedObjectHandler.class.php @@ -16,9 +16,7 @@ */ class UnfurlUrlEmbeddedObjectHandler extends AbstractMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { $urlList = new UnfurlUrlList(); @@ -28,9 +26,7 @@ public function loadObjects(array $objectIDs) return $urlList->getObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $unfurlUrlIDs = []; diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/UserMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/UserMessageEmbeddedObjectHandler.class.php index d493c087400..024d2a13649 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/UserMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/UserMessageEmbeddedObjectHandler.class.php @@ -14,9 +14,7 @@ */ class UserMessageEmbeddedObjectHandler extends AbstractMessageEmbeddedObjectHandler { - /** - * @inheritDoc - */ + #[\Override] public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData) { $objectIDs = []; @@ -29,9 +27,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat return \array_unique($objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public function loadObjects(array $objectIDs) { return UserProfileRuntimeCache::getInstance()->getObjects($objectIDs); diff --git a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php index ff7887b0b5f..cfa114341a9 100644 --- a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php @@ -47,9 +47,7 @@ final class MessageQuoteManager extends SingletonFactory private const LEGACY_QUOTE_MARKER = '@@@legacy_quote@@@'; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // load stored quotes from session diff --git a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php index 31a33ad38b2..e3bfd4cb052 100644 --- a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php @@ -88,9 +88,7 @@ public function addQuote($quoteID, $quote, $fullQuote) $this->indexToObject[] = $quoteID; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->object->getTitle(); @@ -161,17 +159,13 @@ public function isFullQuote($quoteID) return false; } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->quotes); } - /** - * @inheritDoc - */ + #[\Override] public function current(): string { $objectID = $this->indexToObject[$this->index]; @@ -185,30 +179,25 @@ public function current(): string * * @see \Iterator::key() */ + #[\Override] public function key(): string { return $this->indexToObject[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->indexToObject[$this->index]); diff --git a/wcfsetup/install/files/lib/system/moderation/AbstractDeletedContentProvider.class.php b/wcfsetup/install/files/lib/system/moderation/AbstractDeletedContentProvider.class.php index 5dbd7538427..2ac5a253bc4 100644 --- a/wcfsetup/install/files/lib/system/moderation/AbstractDeletedContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/moderation/AbstractDeletedContentProvider.class.php @@ -18,9 +18,7 @@ */ abstract class AbstractDeletedContentProvider extends AbstractObjectTypeProcessor implements IDeletedContentProvider { - /** - * @inheritDoc - */ + #[\Override] public function getApplication() { $classParts = \explode('\\', static::class); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php index 048f9af5d8f..689024d33ca 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php @@ -38,9 +38,7 @@ class AbstractCommentCommentModerationQueueHandler extends AbstractModerationQue */ protected static $commentManagers = []; - /** - * @inheritDoc - */ + #[\Override] public function assignQueues(array $queues) { $assignments = []; @@ -74,17 +72,13 @@ public function assignQueues(array $queues) ModerationQueueManager::getInstance()->setAssignment($assignments); } - /** - * @inheritDoc - */ + #[\Override] public function getContainerID(int $objectID) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function isValid(int $objectID) { if ($this->getComment($objectID) === null) { @@ -122,9 +116,7 @@ protected function getCommentManager(Comment $comment) return self::$commentManagers[$comment->objectTypeID]; } - /** - * @inheritDoc - */ + #[\Override] public function populate(array $queues) { $objectIDs = []; @@ -143,9 +135,7 @@ public function populate(array $queues) } } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { if ($this->isValid($queue->objectID)) { @@ -157,10 +147,8 @@ public function canRemoveContent(ModerationQueue $queue) return false; } - /** - * @inheritDoc - */ - public function removeContent(ModerationQueue $queue, $message) + #[\Override] + public function removeContent(ModerationQueue $queue, string $message) { if ($this->isValid($queue->objectID)) { (new \wcf\command\comment\DeleteComments([$this->getComment($queue->objectID)]))(); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php index a19bb2b8ad5..6c8ce9ec8eb 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php @@ -33,9 +33,7 @@ class AbstractCommentResponseModerationQueueHandler extends AbstractCommentComme */ protected $objectType = 'com.woltlab.wcf.comment.response'; - /** - * @inheritDoc - */ + #[\Override] public function assignQueues(array $queues) { $assignments = []; @@ -83,9 +81,7 @@ public function assignQueues(array $queues) ModerationQueueManager::getInstance()->setAssignment($assignments); } - /** - * @inheritDoc - */ + #[\Override] public function getRelatedContent(ViewableModerationQueue $queue) { return WCF::getTPL()->render('wcf', 'moderationComment', [ @@ -93,9 +89,7 @@ public function getRelatedContent(ViewableModerationQueue $queue) ]); } - /** - * @inheritDoc - */ + #[\Override] public function isValid(int $objectID) { if ($this->getResponse($objectID) === null) { @@ -116,9 +110,7 @@ protected function getResponse($objectID) return CommentResponseRuntimeCache::getInstance()->getObject($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function populate(array $queues) { $objectIDs = []; @@ -152,9 +144,7 @@ public function populate(array $queues) } } - /** - * @inheritDoc - */ + #[\Override] public function removeContent(ModerationQueue $queue, string $message) { if ($this->isValid($queue->objectID)) { @@ -188,9 +178,7 @@ public function isAffectedUser(ModerationQueue $queue, int $userID) ); } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { if ($this->isValid($queue->objectID)) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php index 80355919e75..a49db6c89b3 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php @@ -46,9 +46,7 @@ abstract class AbstractModerationQueueHandler implements IModerationQueueHandler */ protected $requiredPermission = 'mod.general.canUseModeration'; - /** - * @inheritDoc - */ + #[\Override] public function identifyOrphans(array $queues) { if ( @@ -77,9 +75,7 @@ public function identifyOrphans(array $queues) return \array_values($queues); } - /** - * @inheritDoc - */ + #[\Override] public function removeQueues(array $objectIDs) { $objectTypeID = ModerationQueueManager::getInstance() @@ -105,17 +101,13 @@ public function removeQueues(array $objectIDs) } } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { return true; } - /** - * @inheritDoc - */ + #[\Override] public function isAffectedUser(ModerationQueue $queue, int $userID) { $userProfile = UserProfileRuntimeCache::getInstance()->getObject($userID); @@ -124,9 +116,9 @@ public function isAffectedUser(ModerationQueue $queue, int $userID) } /** - * @inheritDoc * @since 3.0 */ + #[\Override] public function getCommentNotificationLanguageItemPrefix() { // this implementation exists to provide backwards compatibility; @@ -141,9 +133,7 @@ public function getCommentNotificationLanguageItemPrefix() return 'wcf.moderation.notification'; } - /** - * @inheritDoc - */ + #[\Override] public function getCommentNotificationTypeNameLanguageItem(): string { if ($this instanceof IModerationQueueActivationHandler) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php index da27750ddad..d8e98e861c3 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php @@ -27,9 +27,7 @@ abstract class AbstractModerationQueueManager extends SingletonFactory implement */ protected $definitionName = ''; - /** - * @inheritDoc - */ + #[\Override] public function assignQueues(int $objectTypeID, array $queues) { ModerationQueueManager::getInstance() @@ -37,33 +35,25 @@ public function assignQueues(int $objectTypeID, array $queues) ->assignQueues($queues); } - /** - * @inheritDoc - */ + #[\Override] public function isValid(string $objectType, ?int $objectID = null) { return ModerationQueueManager::getInstance()->isValid($this->definitionName, $objectType); } - /** - * @inheritDoc - */ + #[\Override] public function getObjectTypeID(string $objectType) { return ModerationQueueManager::getInstance()->getObjectTypeID($this->definitionName, $objectType); } - /** - * @inheritDoc - */ + #[\Override] public function getProcessor(?string $objectType, ?int $objectTypeID = null) { return ModerationQueueManager::getInstance()->getProcessor($this->definitionName, $objectType, $objectTypeID); } - /** - * @inheritDoc - */ + #[\Override] public function populate(int $objectTypeID, array $objects) { ModerationQueueManager::getInstance() @@ -71,17 +61,13 @@ public function populate(int $objectTypeID, array $objects) ->populate($objects); } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { return $this->getProcessor(null, $queue->objectTypeID)->canRemoveContent($queue); } - /** - * @inheritDoc - */ + #[\Override] public function removeContent(ModerationQueue $queue, string $message = '') { $this->getProcessor(null, $queue->objectTypeID)->removeContent($queue, $message); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php index 881d8203738..23cc924f039 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -50,9 +50,7 @@ class ModerationQueueManager extends SingletonFactory */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $moderationTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.moderation.type'); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php index 08e9f8b2cd8..31a4e437936 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php @@ -148,9 +148,7 @@ public function addReport($objectType, $objectID, $message, array $additionalDat ); } - /** - * @inheritDoc - */ + #[\Override] protected function addEntry($objectTypeID, $objectID, $containerID = 0, array $additionalData = []) { $sql = "SELECT queueID diff --git a/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentCommentModerationQueueActivationHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentCommentModerationQueueActivationHandler.class.php index bde5f33c14b..c10d63e0bc4 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentCommentModerationQueueActivationHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentCommentModerationQueueActivationHandler.class.php @@ -22,9 +22,7 @@ class CommentCommentModerationQueueActivationHandler extends AbstractCommentComm */ protected $definitionName = 'com.woltlab.wcf.moderation.activation'; - /** - * @inheritDoc - */ + #[\Override] public function enableContent(ModerationQueue $queue) { if ($this->isValid($queue->objectID) && $this->getComment($queue->objectID)->isDisabled) { @@ -33,9 +31,7 @@ public function enableContent(ModerationQueue $queue) } } - /** - * @inheritDoc - */ + #[\Override] public function getDisabledContent(ViewableModerationQueue $queue) { return $this->getRelatedContent($queue); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentResponseModerationQueueActivationHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentResponseModerationQueueActivationHandler.class.php index 9c669b34761..31d43160809 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentResponseModerationQueueActivationHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/activation/CommentResponseModerationQueueActivationHandler.class.php @@ -22,9 +22,7 @@ class CommentResponseModerationQueueActivationHandler extends AbstractCommentRes */ protected $definitionName = 'com.woltlab.wcf.moderation.activation'; - /** - * @inheritDoc - */ + #[\Override] public function enableContent(ModerationQueue $queue) { if ($this->isValid($queue->objectID) && $this->getResponse($queue->objectID)->isDisabled) { @@ -37,9 +35,7 @@ public function enableContent(ModerationQueue $queue) } } - /** - * @inheritDoc - */ + #[\Override] public function getDisabledContent(ViewableModerationQueue $queue) { return $this->getRelatedContent($queue); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/ArticleModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/ArticleModerationQueueReportHandler.class.php index e46445d73f7..f719943f710 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/ArticleModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/ArticleModerationQueueReportHandler.class.php @@ -34,9 +34,7 @@ class ArticleModerationQueueReportHandler extends AbstractModerationQueueHandler */ protected $objectType = 'com.woltlab.wcf.article'; - /** - * @inheritDoc - */ + #[\Override] public function canReport(int $objectID) { if (!$this->isValid($objectID)) { @@ -50,9 +48,7 @@ public function canReport(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getReportedContent(ViewableModerationQueue $queue) { return WCF::getTPL()->render('wcf', 'moderationArticle', [ @@ -62,10 +58,9 @@ public function getReportedContent(ViewableModerationQueue $queue) } /** - * @inheritDoc - * * @return ViewableArticle|null */ + #[\Override] public function getReportedObject(int $objectID) { if ($this->isValid($objectID)) { @@ -84,9 +79,7 @@ public function getArticle($articleID) return ViewableArticleRuntimeCache::getInstance()->getObject($articleID); } - /** - * @inheritDoc - */ + #[\Override] public function assignQueues(array $queues) { $assignments = $orphanedQueueIDs = []; @@ -115,9 +108,7 @@ public function assignQueues(array $queues) ModerationQueueManager::getInstance()->setAssignment($assignments); } - /** - * @inheritDoc - */ + #[\Override] public function getContainerID(int $objectID) { if ($this->isValid($objectID)) { @@ -127,9 +118,7 @@ public function getContainerID(int $objectID) return 0; } - /** - * @inheritDoc - */ + #[\Override] public function isValid(int $objectID) { if ($this->getArticle($objectID) === null) { @@ -139,9 +128,7 @@ public function isValid(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function populate(array $queues) { // first cache all articles @@ -159,9 +146,7 @@ public function populate(array $queues) } } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { if ($this->isValid($queue->objectID)) { @@ -171,9 +156,7 @@ public function canRemoveContent(ModerationQueue $queue) return false; } - /** - * @inheritDoc - */ + #[\Override] public function removeContent(ModerationQueue $queue, string $message) { if ($this->isValid($queue->objectID)) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/CommentCommentModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/CommentCommentModerationQueueReportHandler.class.php index 8c3dab1871d..0ac272940cd 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/CommentCommentModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/CommentCommentModerationQueueReportHandler.class.php @@ -20,9 +20,7 @@ class CommentCommentModerationQueueReportHandler extends AbstractCommentCommentM */ protected $definitionName = 'com.woltlab.wcf.moderation.report'; - /** - * @inheritDoc - */ + #[\Override] public function canReport(int $objectID) { if (!$this->isValid($objectID)) { @@ -37,17 +35,13 @@ public function canReport(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getReportedContent(ViewableModerationQueue $queue) { return $this->getRelatedContent($queue); } - /** - * @inheritDoc - */ + #[\Override] public function getReportedObject(int $objectID) { return $this->getComment($objectID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/CommentResponseModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/CommentResponseModerationQueueReportHandler.class.php index 8be2416e380..807377604d8 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/CommentResponseModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/CommentResponseModerationQueueReportHandler.class.php @@ -20,9 +20,7 @@ class CommentResponseModerationQueueReportHandler extends AbstractCommentRespons */ protected $definitionName = 'com.woltlab.wcf.moderation.report'; - /** - * @inheritDoc - */ + #[\Override] public function canReport(int $objectID) { if (!$this->isValid($objectID)) { @@ -38,17 +36,13 @@ public function canReport(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getReportedContent(ViewableModerationQueue $queue) { return $this->getRelatedContent($queue); } - /** - * @inheritDoc - */ + #[\Override] public function getReportedObject(int $objectID) { return $this->getResponse($objectID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php index 79e0c414c69..34a9bb9f2c6 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php @@ -36,9 +36,7 @@ class UserModerationQueueReportHandler extends AbstractModerationQueueHandler im */ protected $objectType = 'com.woltlab.wcf.user'; - /** - * @inheritDoc - */ + #[\Override] public function assignQueues(array $queues) { $assignments = []; @@ -54,9 +52,7 @@ public function assignQueues(array $queues) ModerationQueueManager::getInstance()->setAssignment($assignments); } - /** - * @inheritDoc - */ + #[\Override] public function canReport(int $objectID) { if (!$this->isValid($objectID)) { @@ -66,17 +62,13 @@ public function canReport(int $objectID) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getContainerID(int $objectID) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getReportedContent(ViewableModerationQueue $queue) { $user = $queue->getAffectedObject(); @@ -87,9 +79,7 @@ public function getReportedContent(ViewableModerationQueue $queue) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getReportedObject(int $objectID) { if ($this->isValid($objectID)) { @@ -99,9 +89,7 @@ public function getReportedObject(int $objectID) return null; } - /** - * @inheritDoc - */ + #[\Override] public function isValid(int $objectID) { if ($this->getUser($objectID) === null) { @@ -122,9 +110,7 @@ protected function getUser($objectID) return UserRuntimeCache::getInstance()->getObject($objectID); } - /** - * @inheritDoc - */ + #[\Override] public function populate(array $queues) { $objectIDs = []; @@ -142,17 +128,13 @@ public function populate(array $queues) } } - /** - * @inheritDoc - */ + #[\Override] public function canRemoveContent(ModerationQueue $queue) { return false; } - /** - * @inheritDoc - */ + #[\Override] public function removeContent(ModerationQueue $queue, string $message) { throw new SystemException("it's not allowed to delete users using the moderation"); diff --git a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php index f8eb13fc4cb..cf80798b72c 100644 --- a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php +++ b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php @@ -27,9 +27,7 @@ class NoticeHandler extends SingletonFactory */ protected static $disableNotices = false; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->notices = NoticeCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/option/AboutMeOptionType.class.php b/wcfsetup/install/files/lib/system/option/AboutMeOptionType.class.php index 5bb173b80aa..a415216bb76 100644 --- a/wcfsetup/install/files/lib/system/option/AboutMeOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/AboutMeOptionType.class.php @@ -16,9 +16,7 @@ */ class AboutMeOptionType extends MessageOptionType { - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { parent::validate($option, $newValue); diff --git a/wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php index a5ade117e73..1058c6d3771 100644 --- a/wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php @@ -30,9 +30,7 @@ abstract class AbstractCategoryMultiSelectOptionType extends AbstractOptionType */ public $nodeTreeClassname = CategoryNodeTree::class; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { /** @var CategoryNodeTree $categoryTree */ @@ -46,9 +44,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -67,9 +63,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { diff --git a/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php b/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php index 5a02093e411..858cec3b71e 100644 --- a/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php @@ -19,54 +19,40 @@ abstract class AbstractOptionType implements IOptionType */ protected $supportI18n = false; - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) {} - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function supportI18n() { return $this->supportI18n; } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function hideLabelInSearch() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function getDisabledOptionNames(mixed $value, string $enableOptions) { return []; diff --git a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php index f800c04d28c..2f1120f86d8 100644 --- a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php @@ -24,9 +24,7 @@ class BirthdayOptionType extends DateOptionType */ protected $inputClass = 'birthday'; - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { parent::validate($option, $newValue); @@ -41,17 +39,13 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { $ageFrom = $ageTo = ''; @@ -69,9 +63,7 @@ public function getSearchFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (empty($value['ageFrom']) && empty($value['ageTo'])) { @@ -112,9 +104,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt return true; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { $ageFrom = \intval($value['ageFrom']); @@ -153,9 +143,7 @@ public function addCondition(UserList $userList, Option $option, mixed $value) } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { if (!$user->birthdayShowYear || !$user->birthday) { @@ -176,9 +164,7 @@ public function checkUser(User $user, Option $option, mixed $value) } } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { if (!$newValue['ageFrom'] && !$newValue['ageTo']) { @@ -188,9 +174,7 @@ public function getConditionData(Option $option, mixed $newValue) return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function hideLabelInSearch() { return false; diff --git a/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php b/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php index 3b5015c2482..18be3df86de 100644 --- a/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/BooleanOptionType.class.php @@ -24,9 +24,7 @@ class BooleanOptionType extends AbstractOptionType implements ISearchableConditi */ public $forceSearchOption = false; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $options = Option::parseEnableOptions($option->enableOptions); @@ -39,9 +37,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if ($newValue == 1) { @@ -53,9 +49,7 @@ public function getData(Option $option, mixed $newValue) return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { $options = Option::parseEnableOptions($option->enableOptions); @@ -69,9 +63,7 @@ public function getSearchFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (!isset($_POST['searchOptions'][$option->optionName])) { @@ -83,9 +75,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt return true; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { $userList->getConditionBuilder()->add( @@ -94,9 +84,7 @@ public function addCondition(UserList $userList, Option $option, mixed $value) ); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { if (!$value) { @@ -106,17 +94,13 @@ public function checkUser(User $user, Option $option, mixed $value) return $user->getUserOption($option->optionName); } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { @@ -126,9 +110,7 @@ public function compare(mixed $value1, mixed $value2) return $value1 ? 1 : -1; } - /** - * @inheritDoc - */ + #[\Override] public function getDisabledOptionNames(mixed $value, string $enableOptions) { $options = ArrayUtil::trim(\explode(',', $enableOptions)); diff --git a/wcfsetup/install/files/lib/system/option/CaptchaSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/CaptchaSelectOptionType.class.php index d8062d763e0..ccefce7cc32 100644 --- a/wcfsetup/install/files/lib/system/option/CaptchaSelectOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/CaptchaSelectOptionType.class.php @@ -17,9 +17,7 @@ */ class CaptchaSelectOptionType extends AbstractOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { RecaptchaHandler::$forceIsAvailable = true; @@ -81,9 +79,7 @@ protected function parseEnableOptions(Option $option) ]; } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!$newValue) { diff --git a/wcfsetup/install/files/lib/system/option/CheckboxesOptionType.class.php b/wcfsetup/install/files/lib/system/option/CheckboxesOptionType.class.php index 31113488daf..cee98fae593 100644 --- a/wcfsetup/install/files/lib/system/option/CheckboxesOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/CheckboxesOptionType.class.php @@ -21,9 +21,7 @@ class CheckboxesOptionType extends MultiSelectOptionType */ protected $searchableFormElementTemplate = 'shared_checkboxesSearchableOptionType'; - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return 'checkboxList'; diff --git a/wcfsetup/install/files/lib/system/option/ContactOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/ContactOptionHandler.class.php index 12c7508e77c..c74f45adfaf 100644 --- a/wcfsetup/install/files/lib/system/option/ContactOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/ContactOptionHandler.class.php @@ -13,9 +13,7 @@ */ class ContactOptionHandler extends CustomOptionHandler { - /** - * @inheritDoc - */ + #[\Override] protected function readCache() { $this->cachedOptions = ContactOptionCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/option/CustomOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/CustomOptionHandler.class.php index f1dec15540e..57ca1fb94f5 100644 --- a/wcfsetup/install/files/lib/system/option/CustomOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/CustomOptionHandler.class.php @@ -25,6 +25,7 @@ abstract class CustomOptionHandler extends OptionHandler /** * Gets all options and option categories from cache. */ + #[\Override] protected function readCache() { throw new NotImplementedException(); @@ -33,6 +34,7 @@ protected function readCache() /** * Initializes active options. */ + #[\Override] public function init() { if (!$this->didInit) { @@ -63,9 +65,7 @@ public function getOptions() return $parsedOptions; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { foreach ($this->options as $option) { @@ -106,9 +106,7 @@ public function setOptionValues(array $values) $this->optionValues = $values; } - /** - * @inheritDoc - */ + #[\Override] public function getOption($optionName) { $optionData = parent::getOption($optionName); @@ -120,9 +118,7 @@ public function getOption($optionName) return $optionData; } - /** - * @inheritDoc - */ + #[\Override] protected function validateOption(Option $option) { parent::validateOption($option); diff --git a/wcfsetup/install/files/lib/system/option/DateOptionType.class.php b/wcfsetup/install/files/lib/system/option/DateOptionType.class.php index 3a65ff178ff..a02ed1b0e93 100644 --- a/wcfsetup/install/files/lib/system/option/DateOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/DateOptionType.class.php @@ -24,9 +24,7 @@ class DateOptionType extends TextOptionType */ protected $inputClass = ''; - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (empty($newValue)) { @@ -42,9 +40,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { @@ -54,9 +50,7 @@ public function compare(mixed $value1, mixed $value2) return (\strtotime($value1) > \strtotime($value2)) ? 1 : -1; } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { if ($value == '0000-00-00') { diff --git a/wcfsetup/install/files/lib/system/option/FileOptionType.class.php b/wcfsetup/install/files/lib/system/option/FileOptionType.class.php index 82203e1252e..beacd286b38 100644 --- a/wcfsetup/install/files/lib/system/option/FileOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FileOptionType.class.php @@ -38,9 +38,7 @@ protected function createUploadHandler(Option $option) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { $this->createUploadHandler($option); @@ -81,9 +79,7 @@ public function getData(Option $option, mixed $newValue) return $relativeFileLocation; } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'fileOptionType', [ @@ -92,9 +88,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { $this->createUploadHandler($option); diff --git a/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php b/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php index 508fb845131..a33d512c49f 100644 --- a/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php @@ -20,9 +20,7 @@ class FileSizeOptionType extends TextOptionType */ protected $inputClass = 'short textRight'; - /** - * @inheritDoc - */ + #[\Override] public function getContent(Option $option, $newValue) { $number = \str_replace(WCF::getLanguage()->get('wcf.global.thousandsSeparator'), '', $newValue); @@ -67,9 +65,7 @@ public function getContent(Option $option, $newValue) return $number; } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $value = FileUtil::formatFilesize(\intval($value)); @@ -77,9 +73,7 @@ public function getFormElement(Option $option, mixed $value) return parent::getFormElement($option, $value); } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php b/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php index cd43ed7457e..f9ae0604d57 100644 --- a/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php @@ -21,9 +21,7 @@ class FloatOptionType extends TextOptionType */ protected $inputClass = 'short textRight'; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $value = \str_replace('.', WCF::getLanguage()->get('wcf.global.decimalPoint'), $value); @@ -31,18 +29,14 @@ public function getFormElement(Option $option, mixed $value) return parent::getFormElement($option, $value); } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { // @phpstan-ignore return.type return $this->toFloat($newValue); } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { @@ -52,9 +46,7 @@ public function compare(mixed $value1, mixed $value2) return ($value1 > $value2) ? 1 : -1; } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (!isset($_POST['searchOptions'][$option->optionName])) { diff --git a/wcfsetup/install/files/lib/system/option/HighlightersOptionType.class.php b/wcfsetup/install/files/lib/system/option/HighlightersOptionType.class.php index 99e15259cb0..fd12a6c73bb 100644 --- a/wcfsetup/install/files/lib/system/option/HighlightersOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/HighlightersOptionType.class.php @@ -14,9 +14,7 @@ */ class HighlightersOptionType extends MultiSelectOptionType { - /** - * @inheritDoc - */ + #[\Override] protected function getSelectOptions(Option $option) { $meta = BBCodeHandler::getInstance()->getHighlighterMeta(); diff --git a/wcfsetup/install/files/lib/system/option/IntegerOptionType.class.php b/wcfsetup/install/files/lib/system/option/IntegerOptionType.class.php index 648e4de77fb..32a6b117c34 100644 --- a/wcfsetup/install/files/lib/system/option/IntegerOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/IntegerOptionType.class.php @@ -20,9 +20,7 @@ class IntegerOptionType extends TextOptionType */ protected $inputClass = 'short'; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'integerOptionType', [ @@ -32,18 +30,14 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { // @phpstan-ignore return.type return \intval($newValue); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { // Safeguard against values outside of 32 bit integers. @@ -63,9 +57,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/LineBreakSeparatedTextOptionType.class.php b/wcfsetup/install/files/lib/system/option/LineBreakSeparatedTextOptionType.class.php index 9d690bdc5cb..4e49f4a7428 100644 --- a/wcfsetup/install/files/lib/system/option/LineBreakSeparatedTextOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/LineBreakSeparatedTextOptionType.class.php @@ -17,9 +17,7 @@ */ class LineBreakSeparatedTextOptionType extends TextareaOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $values = ArrayUtil::trim(\explode("\n", StringUtil::unifyNewlines($value ?? ''))); diff --git a/wcfsetup/install/files/lib/system/option/MessageOptionType.class.php b/wcfsetup/install/files/lib/system/option/MessageOptionType.class.php index 5a7437a2e70..bfe0381499e 100644 --- a/wcfsetup/install/files/lib/system/option/MessageOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/MessageOptionType.class.php @@ -31,9 +31,7 @@ class MessageOptionType extends TextareaOptionType */ protected $messageObjectType = ''; - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { $this->initMessageObjectType($option); @@ -53,9 +51,7 @@ public function getData(Option $option, mixed $newValue) return parent::getData($option, $this->htmlInputProcessor->getHtml()); } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $permission = $option->disallowedbbcodepermission ?: 'user.message.disallowedBBCodes'; @@ -75,9 +71,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { parent::validate($option, $newValue); diff --git a/wcfsetup/install/files/lib/system/option/MultiSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/MultiSelectOptionType.class.php index bc8cdbcbfba..792f3f3579c 100644 --- a/wcfsetup/install/files/lib/system/option/MultiSelectOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/MultiSelectOptionType.class.php @@ -31,9 +31,7 @@ class MultiSelectOptionType extends SelectOptionType */ protected $searchableFormElementTemplate = 'multiSelectSearchableOptionType'; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', $this->formElementTemplate, [ @@ -43,9 +41,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', $this->searchableFormElementTemplate, [ @@ -56,9 +52,7 @@ public function getSearchFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -72,9 +66,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -84,9 +76,7 @@ public function getData(Option $option, mixed $newValue) return \implode("\n", $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (!isset($_POST['searchOptions'][$option->optionName])) { @@ -119,9 +109,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt return true; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { if (!\is_array($value) || empty($value)) { @@ -148,9 +136,7 @@ public function addCondition(UserList $userList, Option $option, mixed $value) } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { if (!\is_array($value) || empty($value)) { @@ -163,9 +149,7 @@ public function checkUser(User $user, Option $option, mixed $value) return \count(\array_intersect($value, $optionValues)) === \count($value); } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { return $newValue; diff --git a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php index 99c80c94d6a..4b675f30891 100644 --- a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php @@ -145,9 +145,7 @@ class OptionHandler implements IOptionHandler */ public $didInit = false; - /** - * @inheritDoc - */ + #[\Override] public function __construct(bool $supportI18n, string $languageItemPattern = '', string $categoryName = '') { $this->categoryName = $categoryName; @@ -158,9 +156,7 @@ public function __construct(bool $supportI18n, string $languageItemPattern = '', $this->readCache(); } - /** - * @inheritDoc - */ + #[\Override] public function readUserInput(array &$source) { if (isset($source['values']) && \is_array($source['values'])) { @@ -183,9 +179,7 @@ public function readUserInput(array &$source) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { $errors = []; @@ -201,9 +195,7 @@ public function validate() return $errors; } - /** - * @inheritDoc - */ + #[\Override] public function getOptionTree(string $parentCategoryName = '', int $level = 0) { $tree = []; @@ -239,9 +231,7 @@ public function getOptionTree(string $parentCategoryName = '', int $level = 0) return $tree; } - /** - * @inheritDoc - */ + #[\Override] public function getCategoryOptions(string $categoryName = '', bool $inherit = true) { $children = []; @@ -300,9 +290,7 @@ public function countCategoryOptions($categoryName = '') return $count; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { foreach ($this->options as $option) { @@ -320,9 +308,7 @@ public function readData() } } - /** - * @inheritDoc - */ + #[\Override] public function save(?string $categoryName = null, ?string $optionPrefix = null) { $saveOptions = []; @@ -424,8 +410,6 @@ protected function validateOption(Option $option) } /** - * @inheritDoc - * * @param string $type * @return string */ @@ -522,9 +506,7 @@ protected function readCache() EventHandler::getInstance()->fireAction($this, 'afterReadCache'); } - /** - * @inheritDoc - */ + #[\Override] public function init() { if (!$this->didInit) { diff --git a/wcfsetup/install/files/lib/system/option/PasswordOptionType.class.php b/wcfsetup/install/files/lib/system/option/PasswordOptionType.class.php index 54f464a0a92..e794a819a1c 100644 --- a/wcfsetup/install/files/lib/system/option/PasswordOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/PasswordOptionType.class.php @@ -21,33 +21,25 @@ class PasswordOptionType extends TextOptionType */ protected $inputType = 'password'; - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { return false; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { return false; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { return $newValue; diff --git a/wcfsetup/install/files/lib/system/option/PaymentMethodSelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/PaymentMethodSelectOptionType.class.php index 77d27882bce..a593ab940fb 100644 --- a/wcfsetup/install/files/lib/system/option/PaymentMethodSelectOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/PaymentMethodSelectOptionType.class.php @@ -16,9 +16,7 @@ */ class PaymentMethodSelectOptionType extends AbstractOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $selectOptions = PaymentMethodHandler::getInstance()->getPaymentMethodSelection(); @@ -30,9 +28,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -47,9 +43,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { diff --git a/wcfsetup/install/files/lib/system/option/RadioButtonOptionType.class.php b/wcfsetup/install/files/lib/system/option/RadioButtonOptionType.class.php index 27aa3803c4f..cfd40459b92 100644 --- a/wcfsetup/install/files/lib/system/option/RadioButtonOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/RadioButtonOptionType.class.php @@ -34,9 +34,7 @@ class RadioButtonOptionType extends AbstractOptionType implements */ public $forceSearchOption = false; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $availableOptions = $option->parseMultipleEnableOptions(); @@ -67,9 +65,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!empty($newValue)) { @@ -80,9 +76,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { $this->templateName = 'shared_radioButtonSearchableOptionType'; @@ -94,9 +88,7 @@ public function getSearchFormElement(Option $option, mixed $value) return $this->getFormElement($option, $value); } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (!isset($_POST['searchOptions'][$option->optionName])) { @@ -108,9 +100,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt return true; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { $userList->getConditionBuilder()->add( @@ -119,17 +109,13 @@ public function addCondition(UserList $userList, Option $option, mixed $value) ); } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { return \mb_strtolower($user->getUserOption($option->optionName)) == \mb_strtolower(StringUtil::trim($value)); } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { return $newValue; @@ -146,17 +132,13 @@ protected function getSelectOptions(Option $option) return $option->parseSelectOptions(); } - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return 'checkboxList'; } - /** - * @inheritDoc - */ + #[\Override] public function getDisabledOptionNames(mixed $value, string $enableOptions) { $valueToOptions = \explode("\n", StringUtil::trim(StringUtil::unifyNewlines($enableOptions))); diff --git a/wcfsetup/install/files/lib/system/option/SelectOptionType.class.php b/wcfsetup/install/files/lib/system/option/SelectOptionType.class.php index b3b00af92b9..1a2f1b9805f 100644 --- a/wcfsetup/install/files/lib/system/option/SelectOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/SelectOptionType.class.php @@ -19,9 +19,7 @@ class SelectOptionType extends RadioButtonOptionType */ protected $allowEmptyValue = false; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $options = $this->parseEnableOptions($option); @@ -36,9 +34,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { $options = $this->parseEnableOptions($option); @@ -92,17 +88,13 @@ protected function parseEnableOptions(Option $option) ]; } - /** - * @inheritDoc - */ + #[\Override] public function hideLabelInSearch() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return ''; diff --git a/wcfsetup/install/files/lib/system/option/TextI18nOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextI18nOptionType.class.php index d71c81d8a82..ef131ede2ea 100644 --- a/wcfsetup/install/files/lib/system/option/TextI18nOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextI18nOptionType.class.php @@ -21,9 +21,7 @@ class TextI18nOptionType extends TextOptionType implements II18nOptionType */ protected $supportI18n = true; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { I18nHandler::getInstance()->assignVariables(!empty($_POST)); @@ -35,9 +33,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!I18nHandler::getInstance()->validateValue($option->optionName, (bool)$option->requireI18n, true)) { diff --git a/wcfsetup/install/files/lib/system/option/TextOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextOptionType.class.php index cced1174b31..0c40c24cda0 100644 --- a/wcfsetup/install/files/lib/system/option/TextOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextOptionType.class.php @@ -37,9 +37,7 @@ class TextOptionType extends AbstractOptionType implements ISearchableConditionU */ public $forceSearchOption = false; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'textOptionType', [ @@ -50,9 +48,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'textSearchableOptionType', [ @@ -64,9 +60,7 @@ public function getSearchFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, mixed $value) { if (!isset($_POST['searchOptions'][$option->optionName])) { @@ -86,9 +80,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt return true; } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { $newValue = $this->getContent($option, $newValue); @@ -101,9 +93,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { return $this->getContent($option, $newValue); @@ -128,9 +118,7 @@ protected function getContent(Option $option, $newValue) return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function addCondition(UserList $userList, Option $option, mixed $value) { $value = StringUtil::trim($value); @@ -144,9 +132,7 @@ public function addCondition(UserList $userList, Option $option, mixed $value) } } - /** - * @inheritDoc - */ + #[\Override] public function checkUser(User $user, Option $option, mixed $value) { $value = StringUtil::trim($value); @@ -157,17 +143,13 @@ public function checkUser(User $user, Option $option, mixed $value) } } - /** - * @inheritDoc - */ + #[\Override] public function getConditionData(Option $option, mixed $newValue) { return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function hideLabelInSearch() { return true; diff --git a/wcfsetup/install/files/lib/system/option/TextareaI18nOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextareaI18nOptionType.class.php index 5e58aa25bf4..d5e7766e28d 100644 --- a/wcfsetup/install/files/lib/system/option/TextareaI18nOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextareaI18nOptionType.class.php @@ -21,9 +21,7 @@ class TextareaI18nOptionType extends TextareaOptionType implements II18nOptionTy */ protected $supportI18n = true; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { I18nHandler::getInstance()->assignVariables(!empty($_POST)); @@ -34,9 +32,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!I18nHandler::getInstance()->validateValue($option->optionName, (bool)$option->requireI18n, true)) { diff --git a/wcfsetup/install/files/lib/system/option/TextareaIpAddressOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextareaIpAddressOptionType.class.php index 06cbc36fd5e..87cbb78ac3e 100644 --- a/wcfsetup/install/files/lib/system/option/TextareaIpAddressOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextareaIpAddressOptionType.class.php @@ -19,9 +19,7 @@ */ class TextareaIpAddressOptionType extends TextOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { if (!empty($value)) { @@ -40,9 +38,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!empty($newValue)) { @@ -58,9 +54,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!empty($newValue)) { diff --git a/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php b/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php index 8758af2088c..6d7783525d5 100644 --- a/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TextareaOptionType.class.php @@ -15,9 +15,7 @@ */ class TextareaOptionType extends TextOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'textareaOptionType', [ @@ -26,9 +24,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getSearchFormElement(Option $option, mixed $value) { return WCF::getTPL()->render('wcf', 'textareaSearchableOptionType', [ @@ -38,9 +34,7 @@ public function getSearchFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { $newValue = StringUtil::unifyNewlines(parent::getData($option, $newValue)); @@ -56,9 +50,7 @@ public function getData(Option $option, mixed $newValue) return $newValue; } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { $value1 = \explode("\n", StringUtil::unifyNewlines($value1)); diff --git a/wcfsetup/install/files/lib/system/option/TimezoneOptionType.class.php b/wcfsetup/install/files/lib/system/option/TimezoneOptionType.class.php index 26567cd0ab7..9dcec3f00d5 100644 --- a/wcfsetup/install/files/lib/system/option/TimezoneOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/TimezoneOptionType.class.php @@ -16,9 +16,7 @@ */ class TimezoneOptionType extends AbstractOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $timezoneOptions = []; @@ -38,9 +36,7 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\in_array($newValue, DateUtil::getAvailableTimezones())) { diff --git a/wcfsetup/install/files/lib/system/option/URLOptionType.class.php b/wcfsetup/install/files/lib/system/option/URLOptionType.class.php index 174b80516ef..f1bc8c7ce97 100644 --- a/wcfsetup/install/files/lib/system/option/URLOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/URLOptionType.class.php @@ -13,9 +13,7 @@ */ class URLOptionType extends TextOptionType { - /** - * @inheritDoc - */ + #[\Override] protected function getContent(Option $option, $newValue) { if ($newValue && !\preg_match('~^https?://~i', $newValue)) { diff --git a/wcfsetup/install/files/lib/system/option/UseroptionsOptionType.class.php b/wcfsetup/install/files/lib/system/option/UseroptionsOptionType.class.php index 7db81693760..ae1ed4f1484 100644 --- a/wcfsetup/install/files/lib/system/option/UseroptionsOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/UseroptionsOptionType.class.php @@ -21,9 +21,7 @@ class UseroptionsOptionType extends AbstractOptionType */ protected static $userOptions; - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -37,9 +35,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -49,9 +45,7 @@ public function getData(Option $option, mixed $newValue) return \implode(',', $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $userOptions = self::getUserOptions(); diff --git a/wcfsetup/install/files/lib/system/option/user/BirthdayUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/BirthdayUserOptionOutput.class.php index e2b2b5780c5..7ad619ce339 100644 --- a/wcfsetup/install/files/lib/system/option/user/BirthdayUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/BirthdayUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class BirthdayUserOptionOutput extends DateUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { $profile = new UserProfile($user); diff --git a/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php index a9bc49f33ec..33af46fe2e1 100644 --- a/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class DateUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value) || $value == '0000-00-00') { diff --git a/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php index d690e735ff7..95c903c91fb 100644 --- a/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class FacebookUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value)) { diff --git a/wcfsetup/install/files/lib/system/option/user/FloatUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/FloatUserOptionOutput.class.php index 4544d830020..6a86b2dfc70 100644 --- a/wcfsetup/install/files/lib/system/option/user/FloatUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/FloatUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class FloatUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value) || $value == '0') { diff --git a/wcfsetup/install/files/lib/system/option/user/ImageUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/ImageUserOptionOutput.class.php index 92f8e6533ac..7c59ed9ccd0 100644 --- a/wcfsetup/install/files/lib/system/option/user/ImageUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/ImageUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class ImageUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value)) { diff --git a/wcfsetup/install/files/lib/system/option/user/LabeledUrlUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/LabeledUrlUserOptionOutput.class.php index 4e749095aa2..05d3e75993f 100644 --- a/wcfsetup/install/files/lib/system/option/user/LabeledUrlUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/LabeledUrlUserOptionOutput.class.php @@ -16,9 +16,7 @@ */ class LabeledUrlUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if ($value) { diff --git a/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php index a8dfd1ea319..baaf66bdef9 100644 --- a/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php @@ -19,9 +19,7 @@ */ class MessageUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if ($value === null) { diff --git a/wcfsetup/install/files/lib/system/option/user/NewlineToBreakUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/NewlineToBreakUserOptionOutput.class.php index 1f40527269c..ee9ebfcf31b 100644 --- a/wcfsetup/install/files/lib/system/option/user/NewlineToBreakUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/NewlineToBreakUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class NewlineToBreakUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if ($value === null) { diff --git a/wcfsetup/install/files/lib/system/option/user/SelectOptionsUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/SelectOptionsUserOptionOutput.class.php index a16826ad625..0ecfb200731 100644 --- a/wcfsetup/install/files/lib/system/option/user/SelectOptionsUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/SelectOptionsUserOptionOutput.class.php @@ -16,9 +16,7 @@ */ class SelectOptionsUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { $result = self::getResult($option, $value); diff --git a/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php index 78a242d7684..0a1312ad161 100644 --- a/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class TwitterUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value)) { diff --git a/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php index 553ea14c7d3..2608ac602f0 100644 --- a/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php @@ -15,9 +15,7 @@ */ class URLUserOptionOutput implements IUserOptionOutput { - /** - * @inheritDoc - */ + #[\Override] public function getOutput(User $user, UserOption $option, string $value) { if (empty($value) || $value == 'http://') { diff --git a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php index 2a98e030534..9964ffac9d6 100644 --- a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php @@ -70,6 +70,7 @@ class UserOptionHandler extends OptionHandler */ public $conditionMode = false; + #[\Override] public function init() { parent::init(); @@ -205,9 +206,7 @@ public function setOptionValues(array $values) $this->optionValues = $values; } - /** - * @inheritDoc - */ + #[\Override] public function getOption($optionName) { $optionData = parent::getOption($optionName); @@ -228,9 +227,7 @@ public function getOption($optionName) return $optionData; } - /** - * @inheritDoc - */ + #[\Override] protected function getFormElement($type, Option $option) { if ($this->searchMode) { @@ -259,9 +256,7 @@ protected function getFormElement($type, Option $option) return parent::getFormElement($type, $option); } - /** - * @inheritDoc - */ + #[\Override] protected function validateOption(Option $option) { /** @var UserOption $option */ @@ -291,9 +286,7 @@ protected function validateOption(Option $option) } } - /** - * @inheritDoc - */ + #[\Override] protected function checkCategory(OptionCategory $category) { if ($category->categoryName == 'hidden') { @@ -303,9 +296,7 @@ protected function checkCategory(OptionCategory $category) return parent::checkCategory($category); } - /** - * @inheritDoc - */ + #[\Override] protected function checkVisibility(Option $option) { /** @var UserOption $option */ @@ -350,9 +341,7 @@ protected function checkVisibility(Option $option) return true; } - /** - * @inheritDoc - */ + #[\Override] public function save(?string $categoryName = null, ?string $optionPrefix = null) { $options = parent::save($categoryName, $optionPrefix); @@ -375,9 +364,7 @@ public function save(?string $categoryName = null, ?string $optionPrefix = null) return $options; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { foreach ($this->options as $option) { @@ -388,10 +375,10 @@ public function readData() } /** - * @inheritDoc * @param mixed[] $source * @return void */ + #[\Override] public function readUserInput(array &$source) { parent::readUserInput($source); diff --git a/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php index 4e809980035..05cc31009f5 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/BBCodeSelectUserGroupOptionType.class.php @@ -50,9 +50,7 @@ class BBCodeSelectUserGroupOptionType extends AbstractOptionType implements IUse 'wsp', ]; - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -62,9 +60,7 @@ public function getData(Option $option, mixed $newValue) return \implode(',', $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { if ($this->bbCodes === null) { @@ -91,9 +87,7 @@ protected function loadBBCodeSelection() \asort($this->bbCodes); } - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($this->bbCodes === null) { @@ -118,9 +112,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) return \implode(',', $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -138,9 +130,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { // handle special case where no disallowed BBCodes have been set @@ -173,9 +163,7 @@ public function compare(mixed $value1, mixed $value2) return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return 'checkboxList'; diff --git a/wcfsetup/install/files/lib/system/option/user/group/BooleanUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/BooleanUserGroupOptionType.class.php index 02ec1f2e654..7274722a442 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/BooleanUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/BooleanUserGroupOptionType.class.php @@ -19,9 +19,7 @@ class BooleanUserGroupOptionType extends BooleanOptionType implements IUserGroup { use TUserGroupOptionType; - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { $options = Option::parseEnableOptions($option->enableOptions); @@ -35,17 +33,13 @@ public function getFormElement(Option $option, mixed $value) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { return ($newValue == -1) ? -1 : parent::getData($option, $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { // force value for 'Never' @@ -61,9 +55,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) return $groupValue; } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/FileSizeUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/FileSizeUserGroupOptionType.class.php index 9cb62476272..d7ace5825d3 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/FileSizeUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/FileSizeUserGroupOptionType.class.php @@ -15,9 +15,7 @@ */ class FileSizeUserGroupOptionType extends FileSizeOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($groupValue > $defaultValue) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/InfiniteIntegerUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/InfiniteIntegerUserGroupOptionType.class.php index ea3e18eba85..56c3079ba07 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/InfiniteIntegerUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/InfiniteIntegerUserGroupOptionType.class.php @@ -15,9 +15,7 @@ */ class InfiniteIntegerUserGroupOptionType extends IntegerUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($defaultValue == -1) { @@ -29,9 +27,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) } } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/InfiniteInverseIntegerUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/InfiniteInverseIntegerUserGroupOptionType.class.php index 498aec090e3..1f03c35e8d5 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/InfiniteInverseIntegerUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/InfiniteInverseIntegerUserGroupOptionType.class.php @@ -14,9 +14,7 @@ */ class InfiniteInverseIntegerUserGroupOptionType extends InverseIntegerUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($groupValue == -1 || $defaultValue == $groupValue) { @@ -30,9 +28,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) return \min($defaultValue, $groupValue); } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/IntegerUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/IntegerUserGroupOptionType.class.php index 0328ce19df5..4f5bb903868 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/IntegerUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/IntegerUserGroupOptionType.class.php @@ -15,9 +15,7 @@ */ class IntegerUserGroupOptionType extends IntegerOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($groupValue > $defaultValue) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/InverseIntegerUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/InverseIntegerUserGroupOptionType.class.php index eec4c0cda72..8fae63d63fe 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/InverseIntegerUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/InverseIntegerUserGroupOptionType.class.php @@ -15,9 +15,7 @@ */ class InverseIntegerUserGroupOptionType extends IntegerOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { if ($defaultValue < $groupValue) { @@ -27,9 +25,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) return $groupValue; } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { if ($value1 == $value2) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/LineBreakSeparatedTextUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/LineBreakSeparatedTextUserGroupOptionType.class.php index 5c65ba6bff8..c045c91bc1e 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/LineBreakSeparatedTextUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/LineBreakSeparatedTextUserGroupOptionType.class.php @@ -18,9 +18,7 @@ */ class LineBreakSeparatedTextUserGroupOptionType extends LineBreakSeparatedTextOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { $defaultValue = empty($defaultValue) ? [] : \explode("\n", StringUtil::unifyNewlines($defaultValue)); diff --git a/wcfsetup/install/files/lib/system/option/user/group/TUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/TUserGroupOptionType.class.php index 1b4d4b1dc13..9ccaca2fb8e 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/TUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/TUserGroupOptionType.class.php @@ -20,17 +20,13 @@ trait TUserGroupOptionType */ protected $userGroup; - /** - * @inheritDoc - */ + #[\Override] public function setUserGroup(UserGroup $group) { $this->userGroup = $group; } - /** - * @inheritDoc - */ + #[\Override] public function getUserGroup() { return $this->userGroup; diff --git a/wcfsetup/install/files/lib/system/option/user/group/TextUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/TextUserGroupOptionType.class.php index ddf0717b0a0..fefe93aef7b 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/TextUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/TextUserGroupOptionType.class.php @@ -16,9 +16,7 @@ */ class TextUserGroupOptionType extends TextOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { $defaultValue = empty($defaultValue) ? [] : \explode("\n", StringUtil::unifyNewlines($defaultValue)); diff --git a/wcfsetup/install/files/lib/system/option/user/group/TextareaUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/TextareaUserGroupOptionType.class.php index f98161c29fd..ac3b6fcb511 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/TextareaUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/TextareaUserGroupOptionType.class.php @@ -16,9 +16,7 @@ */ class TextareaUserGroupOptionType extends TextareaOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { $defaultValue = empty($defaultValue) ? [] : \explode("\n", StringUtil::unifyNewlines($defaultValue)); diff --git a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php index a425f92280a..0324292aa0a 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php @@ -58,9 +58,7 @@ public function setUserGroup(UserGroup $group) $this->group = $group; } - /** - * @inheritDoc - */ + #[\Override] public function getTypeObject($type) { $objectType = parent::getTypeObject($type); @@ -72,9 +70,7 @@ public function getTypeObject($type) return $objectType; } - /** - * @inheritDoc - */ + #[\Override] protected function checkOption(Option $option) { if (parent::checkOption($option)) { @@ -89,9 +85,7 @@ protected function checkOption(Option $option) return false; } - /** - * @inheritDoc - */ + #[\Override] protected function getClassName($optionType) { $className = 'wcf\system\option\user\group\\' . \ucfirst($optionType) . 'UserGroupOptionType'; @@ -107,9 +101,7 @@ protected function getClassName($optionType) return $className; } - /** - * @inheritDoc - */ + #[\Override] public function readData() { $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE); @@ -155,9 +147,7 @@ protected function isOwner() return $this->isOwner; } - /** - * @inheritDoc - */ + #[\Override] protected function validateOption(Option $option) { parent::validateOption($option); diff --git a/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php b/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php index 40cf50c4798..5b4cd113747 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php @@ -18,9 +18,7 @@ */ class UserGroupsUserGroupOptionType extends AbstractOptionType implements IUserGroupOptionType { - /** - * @inheritDoc - */ + #[\Override] public function getFormElement(Option $option, mixed $value) { // get selected group @@ -41,9 +39,7 @@ public function getFormElement(Option $option, mixed $value) return $html; } - /** - * @inheritDoc - */ + #[\Override] public function validate(Option $option, mixed $newValue) { // get all groups @@ -63,9 +59,7 @@ public function validate(Option $option, mixed $newValue) } } - /** - * @inheritDoc - */ + #[\Override] public function getData(Option $option, mixed $newValue) { if (!\is_array($newValue)) { @@ -77,9 +71,7 @@ public function getData(Option $option, mixed $newValue) return \implode(',', $newValue); } - /** - * @inheritDoc - */ + #[\Override] public function merge(mixed $defaultValue, mixed $groupValue) { $defaultValue = empty($defaultValue) ? [] : \explode(',', StringUtil::unifyNewlines($defaultValue)); @@ -88,9 +80,7 @@ public function merge(mixed $defaultValue, mixed $groupValue) return \implode(',', \array_unique(\array_merge($defaultValue, $groupValue))); } - /** - * @inheritDoc - */ + #[\Override] public function compare(mixed $value1, mixed $value2) { $value1 = $value1 ? \explode(',', $value1) : []; @@ -112,9 +102,7 @@ public function compare(mixed $value1, mixed $value2) return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getCSSClassName() { return 'checkboxList'; diff --git a/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php index 7cdb7a495cf..ce01f95acad 100644 --- a/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php @@ -28,9 +28,7 @@ class ACPTemplatesFileHandler extends PackageInstallationFileHandler */ protected $tableName = 'acp_template'; - /** - * @inheritDoc - */ + #[\Override] public function checkFiles(array $files) { if ($this->packageInstallation->getPackage()->package != 'com.woltlab.wcf') { @@ -79,9 +77,7 @@ public function checkFiles(array $files) } } - /** - * @inheritDoc - */ + #[\Override] public function logFiles(array $files) { if ($files === []) { diff --git a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php index 7ff3441c7b2..88e00d11617 100644 --- a/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/FilesFileHandler.class.php @@ -17,9 +17,7 @@ */ class FilesFileHandler extends PackageInstallationFileHandler { - /** - * @inheritDoc - */ + #[\Override] public function checkFiles(array $files) { if ($this->packageInstallation->getPackage()->package != 'com.woltlab.wcf') { @@ -52,9 +50,7 @@ public function checkFiles(array $files) } } - /** - * @inheritDoc - */ + #[\Override] public function logFiles(array $files) { if (empty($files)) { diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php index 756f94a8ac1..92ee624beab 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php @@ -268,9 +268,7 @@ protected function getIndexOwnerID($tableName, $indexName) return 0; } - /** - * @inheritDoc - */ + #[\Override] protected function executeCreateTableStatement($tableName, $columns, $indices = []) { if ($this->test) { @@ -300,9 +298,7 @@ protected function executeCreateTableStatement($tableName, $columns, $indices = } } - /** - * @inheritDoc - */ + #[\Override] protected function executeAddColumnStatement($tableName, $columnName, $columnData) { if ($this->test) { @@ -323,9 +319,7 @@ protected function executeAddColumnStatement($tableName, $columnName, $columnDat } } - /** - * @inheritDoc - */ + #[\Override] protected function executeAlterColumnStatement($tableName, $oldColumnName, $newColumnName, $newColumnData) { if ($this->test) { @@ -356,9 +350,7 @@ protected function executeAlterColumnStatement($tableName, $oldColumnName, $newC } } - /** - * @inheritDoc - */ + #[\Override] protected function executeAddIndexStatement($tableName, $indexName, $indexData) { if (!$this->test) { @@ -375,9 +367,7 @@ protected function executeAddIndexStatement($tableName, $indexName, $indexData) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeAddForeignKeyStatement($tableName, $indexName, $indexData) { if (!$this->test) { @@ -394,9 +384,7 @@ protected function executeAddForeignKeyStatement($tableName, $indexName, $indexD } } - /** - * @inheritDoc - */ + #[\Override] protected function executeDropColumnStatement($tableName, $columnName) { if ($this->test) { @@ -419,9 +407,7 @@ protected function executeDropColumnStatement($tableName, $columnName) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeDropIndexStatement($tableName, $indexName) { if ($this->test) { @@ -444,9 +430,7 @@ protected function executeDropIndexStatement($tableName, $indexName) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeDropPrimaryKeyStatement($tableName) { if ($this->test) { @@ -464,9 +448,7 @@ protected function executeDropPrimaryKeyStatement($tableName) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeDropForeignKeyStatement($tableName, $indexName) { if ($this->test) { @@ -489,9 +471,7 @@ protected function executeDropForeignKeyStatement($tableName, $indexName) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeDropTableStatement($tableName) { if ($this->test) { @@ -513,9 +493,7 @@ protected function executeDropTableStatement($tableName) } } - /** - * @inheritDoc - */ + #[\Override] protected function executeStandardStatement($query) { if (!$this->test) { diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index 77a68915eb6..ad6c2aaf97a 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -145,9 +145,7 @@ public function uninstall(string $node): PackageInstallationStep return $step; } - /** - * @inheritDoc - */ + #[\Override] protected function executePIP(array $nodeData): PackageInstallationStep { /** @var IPackageInstallationPlugin $pip */ diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationNodeBuilder.class.php index 4cf420d3dcb..7b0a55213ae 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationNodeBuilder.class.php @@ -13,9 +13,7 @@ */ class PackageUninstallationNodeBuilder extends PackageInstallationNodeBuilder { - /** - * @inheritDoc - */ + #[\Override] public function buildNodes() { if (!empty($this->parentNode)) { @@ -103,9 +101,7 @@ protected function buildUninstallationPluginNodes() } } - /** - * @inheritDoc - */ + #[\Override] protected function buildPackageNode() { $this->parentNode = $this->node; diff --git a/wcfsetup/install/files/lib/system/package/TemplatesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/TemplatesFileHandler.class.php index 4cd03cd36ff..445586144a0 100644 --- a/wcfsetup/install/files/lib/system/package/TemplatesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/TemplatesFileHandler.class.php @@ -24,9 +24,7 @@ class TemplatesFileHandler extends ACPTemplatesFileHandler */ protected $tableName = 'template'; - /** - * @inheritDoc - */ + #[\Override] public function logFiles(array $files) { $packageID = $this->packageInstallation->getPackageID(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php index 40cbda283ca..0b2bd60e5a1 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php @@ -53,9 +53,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati */ public $tagName = 'option'; - /** - * @inheritDoc - */ + #[\Override] protected function deleteItems(\DOMXPath $xpath) { // delete options @@ -130,9 +128,7 @@ protected function deleteItems(\DOMXPath $xpath) } } - /** - * @inheritDoc - */ + #[\Override] protected function importCategories(\DOMXPath $xpath) { $elements = $xpath->query('/ns:data/ns:import/ns:categories/ns:category'); @@ -152,9 +148,7 @@ protected function importCategories(\DOMXPath $xpath) } } - /** - * @inheritDoc - */ + #[\Override] protected function saveCategory($category) { if (isset($category['objectTypeID'])) { @@ -222,6 +216,7 @@ protected function saveCategory($category) * @param \DOMXPath $xpath * @throws SystemException */ + #[\Override] protected function importOptions(\DOMXPath $xpath) { $elements = $xpath->query('/ns:data/ns:import/ns:options/ns:option'); @@ -264,9 +259,7 @@ protected function importOptions(\DOMXPath $xpath) } } - /** - * @inheritDoc - */ + #[\Override] protected function saveOption($option, $categoryName, $existingOptionID = 0) { // check for option existence @@ -338,28 +331,28 @@ protected function getObjectTypeID($optionType) } /** - * @inheritDoc * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'aclOption.xml'; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['objectType']; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { $objectTypes = []; @@ -520,20 +513,20 @@ function (SingleSelectionFormField $formField) use ($entryType) { } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getEntryTypes() { return ['options', 'categories']; } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -573,10 +566,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { $elementData = $this->getElementData($element); @@ -585,19 +578,19 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function getXsdFilename() { return 'aclOption'; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -607,10 +600,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData()['data']; @@ -644,10 +637,10 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ + #[\Override] protected function prepareDeleteXmlElement(\DOMElement $element) { $deleteElement = parent::prepareDeleteXmlElement($element); @@ -661,10 +654,10 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function deleteObject(\DOMElement $element) { $name = $element->getAttribute('name'); @@ -714,9 +707,9 @@ protected function deleteObject(\DOMElement $element) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function addDeleteElement(\DOMElement $element) { $this->defaultAddDeleteElement($element); diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php index e24363340c0..2c4c1c06da5 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php @@ -28,9 +28,7 @@ class ACPMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationPl */ public $className = ACPMenuItemEditor::class; - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $returnValue = parent::prepareImport($data); @@ -47,9 +45,7 @@ protected function validateImport(array $data) // Since menu items can now also be added at runtime, this check is no longer reliable. } - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { if ($element->tagName === 'icon') { @@ -65,28 +61,28 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } /** - * @inheritDoc * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'acpMenu.xml'; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function getXsdFilename() { return 'acpMenu'; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); @@ -168,11 +164,11 @@ static function (TextFormField $formField) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = parent::fetchElementData($element, $saveData); @@ -195,10 +191,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $menuItem = parent::prepareXmlElement($document, $form); diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php index 42789f0e3aa..2ea338dcdf7 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php @@ -38,9 +38,7 @@ class ACPSearchProviderPackageInstallationPlugin extends AbstractXMLPackageInsta */ public $className = ACPSearchProviderEditor::class; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -58,9 +56,7 @@ protected function handleDelete(array $items) WCF::getDB()->commitTransaction(); } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { // get show order @@ -74,9 +70,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -94,17 +88,13 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function cleanup() { ACPSearchProviderCacheBuilder::getInstance()->reset(); } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['providerName']; @@ -114,26 +104,27 @@ public function getNameByData(array $data): string * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'acpSearchProvider.xml'; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -153,17 +144,16 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return string * @since 5.2 */ @@ -173,10 +163,10 @@ protected function getXsdFilename() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -230,10 +220,10 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -243,10 +233,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php index a6a1b6b0f56..c1fab673cba 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php @@ -26,9 +26,7 @@ class ACPTemplatePackageInstallationPlugin extends AbstractPackageInstallationPl */ public $tableName = 'acp_template'; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -56,9 +54,7 @@ public function install() @\unlink($sourceFile); } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // fetch ACP templates from log @@ -96,14 +92,13 @@ public function uninstall() * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'acptemplates.tar'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { if (!$instruction) { @@ -126,9 +121,7 @@ public static function isValid(PackageArchive $packageArchive, $instruction) return false; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return []; diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php index 336b737ebe2..c0bfd60486c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractFileDeletePackageInstallationPlugin.class.php @@ -54,9 +54,7 @@ protected function getFilePath(string $filename, string $application): string return Application::getDirectory($application) . $filename; } - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $groupedFiles = []; @@ -170,51 +168,39 @@ private function safeDeleteFile(string $filePath): void } } - /** - * @inheritDoc - */ + #[\Override] final protected function import(array $row, array $data) { // Does nothing, imports are not supported. return null; } - /** - * @inheritDoc - */ + #[\Override] final protected function prepareImport(array $data) { return $data; } - /** - * @inheritDoc - */ + #[\Override] final protected function findExistingItem(array $data) { return null; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return []; } - /** - * @inheritDoc - */ + #[\Override] public function hasUninstall() { // File deletions cannot be reverted. return false; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // File deletions cannot be reverted. @@ -232,9 +218,9 @@ protected function getFileFieldDescription(): ?string } /** - * @inheritDoc * @return void */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -268,10 +254,10 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { return [ @@ -282,9 +268,9 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { $app = $element->getAttribute('application') ?: 'wcf'; @@ -293,9 +279,9 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @return void */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -305,7 +291,6 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return void */ protected function insertNewXmlElement(XML $xml, \DOMElement $newElement) @@ -322,9 +307,9 @@ protected function insertNewXmlElement(XML $xml, \DOMElement $newElement) } /** - * @inheritDoc * @return \DOMElement */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $file = $document->createElement($this->tagName); @@ -339,7 +324,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return null */ final protected function prepareDeleteXmlElement(\DOMElement $element) @@ -348,7 +332,6 @@ final protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void */ protected function saveObject(\DOMElement $newElement, ?\DOMElement $oldElement = null) @@ -364,7 +347,6 @@ protected function saveObject(\DOMElement $newElement, ?\DOMElement $oldElement } /** - * @inheritDoc * * @return void */ @@ -373,16 +355,13 @@ final protected function deleteObject(\DOMElement $element) // Reverting file deletions is not supported. Use the `file` PIP instead. } - /** - * @inheritDoc - */ + #[\Override] protected function getImportElements(\DOMXPath $xpath) { return $xpath->query('/ns:data/ns:delete/ns:' . $this->tagName); } /** - * @inheritDoc * @return string */ protected function getEmptyXml() diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php index b47175344b0..40ede386b46 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php @@ -40,9 +40,7 @@ abstract class AbstractMenuPackageInstallationPlugin extends AbstractXMLPackageI // class use TXmlGuiPackageInstallationPlugin; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM " . $this->application . "1_" . $this->tableName . " @@ -57,9 +55,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { // adjust show order @@ -79,9 +75,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function validateImport(array $data) { if (empty($data['parentMenuItem'])) { @@ -99,9 +93,7 @@ protected function validateImport(array $data) } } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -120,19 +112,19 @@ protected function findExistingItem(array $data) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var IFormContainer $dataContainer */ @@ -328,11 +320,11 @@ function (SingleSelectionFormField $formField) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -392,10 +384,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); @@ -463,10 +455,10 @@ protected function getMenuStructureData() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -476,10 +468,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php index 43f887ce31c..47f41e08148 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php @@ -82,9 +82,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag */ public $selectOptionOptionTypes = []; - /** - * @inheritDoc - */ + #[\Override] public function install() { AbstractPackageInstallationPlugin::install(); @@ -104,9 +102,7 @@ public function install() $this->importOptions($xpath); } - /** - * @inheritDoc - */ + #[\Override] protected function deleteItems(\DOMXPath $xpath) { // delete options @@ -254,9 +250,7 @@ protected function importOptions(\DOMXPath $xpath) } } - /** - * @inheritDoc - */ + #[\Override] public function hasUninstall() { $hasUninstallOptions = parent::hasUninstall(); @@ -269,9 +263,7 @@ public function hasUninstall() return $hasUninstallOptions || $statement->fetchSingleColumn() > 0; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // delete options @@ -402,41 +394,35 @@ protected function validateOption(array $data) } } - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) {} - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return $data; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { return null; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var IFormContainer $dataContainer */ @@ -751,11 +737,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = []; @@ -907,17 +893,16 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return list * @since 5.2 */ @@ -979,7 +964,6 @@ protected function getSortOptionHandler() } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -1007,10 +991,10 @@ protected function saveObject(\DOMElement $newElement, ?\DOMElement $oldElement } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { switch ($this->entryType) { @@ -1035,10 +1019,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData()['data']; @@ -1095,7 +1079,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -1216,7 +1199,6 @@ protected function getOptionTypeOptions() } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -1235,7 +1217,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -1281,7 +1262,6 @@ protected function deleteObject(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -1317,7 +1297,6 @@ protected function addDeleteElement(\DOMElement $element) } /** - * @inheritDoc * @return bool * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php index b78e53ca5b1..c2f1eb52201 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractPackageInstallationPlugin.class.php @@ -55,18 +55,14 @@ public function __construct(PackageInstallationDispatcher $installation, $instru EventHandler::getInstance()->fireAction($this, 'construct'); } - /** - * @inheritDoc - */ + #[\Override] public function install() { // call 'install' event EventHandler::getInstance()->fireAction($this, 'install'); } - /** - * @inheritDoc - */ + #[\Override] public function update() { // call 'update' event @@ -75,9 +71,7 @@ public function update() return $this->install(); } - /** - * @inheritDoc - */ + #[\Override] public function hasUninstall() { // call 'hasUninstall' event @@ -92,9 +86,7 @@ public function hasUninstall() return $statement->fetchSingleColumn() > 0; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // call 'uninstall' event @@ -110,14 +102,13 @@ public function uninstall() * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return null; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { return true; diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractTemplateDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractTemplateDeletePackageInstallationPlugin.class.php index 88349a64724..fda6361a1c1 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractTemplateDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractTemplateDeletePackageInstallationPlugin.class.php @@ -22,18 +22,16 @@ abstract class AbstractTemplateDeletePackageInstallationPlugin extends AbstractF */ public $tagName = 'template'; - /** - * @inheritDoc - */ + #[\Override] protected function getFilenameTableColumn(): string { return 'templateName'; } /** - * @inheritDoc * @return void */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php index 31fdb60cad0..5d1e4c7a5fa 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php @@ -33,9 +33,6 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta */ public $tagName = ''; - /** - * @inheritDoc - */ public function __construct(PackageInstallationDispatcher $installation, $instruction = []) { parent::__construct($installation, $instruction); @@ -51,9 +48,7 @@ public function __construct(PackageInstallationDispatcher $installation, $instru } } - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -74,9 +69,7 @@ public function install() $this->cleanup(); } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { parent::uninstall(); @@ -467,6 +460,7 @@ protected function getShowOrder($showOrder, $parentName = null, $columnName = nu * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { $classParts = \explode('\\', static::class); @@ -474,9 +468,7 @@ public static function getDefaultFilename() return \lcfirst(\str_replace('PackageInstallationPlugin', '', \array_pop($classParts))) . '.xml'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { if (!$instruction) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php index e995edf06b2..7597d61598a 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AcpTemplateDeletePackageInstallationPlugin.class.php @@ -14,17 +14,13 @@ */ final class AcpTemplateDeletePackageInstallationPlugin extends AbstractTemplateDeletePackageInstallationPlugin { - /** - * @inheritDoc - */ + #[\Override] protected function getLogTableName(): string { return 'wcf1_acp_template'; } - /** - * @inheritDoc - */ + #[\Override] protected function getFilePath(string $filename, string $application): string { return \sprintf( diff --git a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php index 314899b99a7..b5fcaab01ba 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php @@ -64,9 +64,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug */ protected $attributes = []; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -81,9 +79,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -116,9 +112,7 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e $elements[$element->tagName] = $nodeValue; } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $data = [ @@ -141,17 +135,13 @@ protected function prepareImport(array $data) return $data; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['bbcodeTag']; } - /** - * @inheritDoc - */ + #[\Override] protected function validateImport(array $data) { // check if bbcode tag already exists @@ -165,9 +155,7 @@ protected function validateImport(array $data) } } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -181,9 +169,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // extract attributes @@ -206,9 +192,7 @@ protected function import(array $row, array $data) return $bbcode; } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { $condition = new PreparedStatementConditionBuilder(); @@ -241,29 +225,29 @@ protected function postImport() } /** - * @inheritDoc * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'bbcode.xml'; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -336,17 +320,16 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return string * @since 5.2 */ @@ -356,10 +339,10 @@ protected function getXsdFilename() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -535,10 +518,10 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -549,10 +532,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php index 0a15a62a89b..8e13725c206 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php @@ -94,9 +94,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin */ public $visibilityExceptions = []; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_box @@ -115,9 +113,9 @@ protected function handleDelete(array $items) } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -167,9 +165,9 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function prepareImport(array $data) { $content = []; @@ -277,17 +275,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['identifier']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -325,9 +319,7 @@ protected function getItemOrder($position) return (!$row['showOrder']) ? 1 : $row['showOrder'] + 1; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // extract content @@ -360,9 +352,7 @@ protected function import(array $row, array $data) return $box; } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { if (!empty($this->content)) { @@ -481,28 +471,28 @@ protected function postImport() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['language', 'objectType']; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getAdditionalTemplateCode() { return WCF::getTPL()->render('wcf', '__boxPipGui', []); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { $tabContainter = TabMenuFormContainer::create('tabMenu'); @@ -657,11 +647,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -821,20 +811,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('identifier'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -844,10 +834,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php index 2b7d744ca00..8e3dddd0b57 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php @@ -48,9 +48,7 @@ class ClipboardActionPackageInstallationPlugin extends AbstractXMLPackageInstall */ public $tagName = 'action'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -67,9 +65,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -87,9 +83,7 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e $elements[$element->tagName] = $nodeValue; } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $showOrder = isset($data['elements']['showorder']) ? \intval($data['elements']['showorder']) : null; @@ -103,9 +97,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -125,9 +117,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // extract pages @@ -143,9 +133,7 @@ protected function import(array $row, array $data) return $action; } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { if ($this->pages === []) { @@ -179,19 +167,19 @@ protected function postImport() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -265,11 +253,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -303,10 +291,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return \sha1( @@ -316,10 +304,10 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -329,10 +317,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData(); @@ -361,7 +349,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -379,7 +366,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php index 8b20d71f9d9..cf1d3fe2cd8 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php @@ -33,9 +33,7 @@ class CoreObjectPackageInstallationPlugin extends AbstractXMLPackageInstallation */ public $className = CoreObjectEditor::class; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -50,9 +48,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return [ @@ -60,9 +56,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -80,28 +74,26 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function cleanup() { (new CoreObjectCache())->rebuild(); } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -139,11 +131,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { return [ @@ -153,20 +145,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return \sha1($element->getElementsByTagName('objectname')->item(0)->nodeValue); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -175,10 +167,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $coreObject = $document->createElement($this->tagName); @@ -189,7 +181,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -205,7 +196,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php index 42235b9a280..28f22e79454 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php @@ -41,9 +41,7 @@ class CronjobPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu */ public $className = CronjobEditor::class; - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { switch ($element->tagName) { @@ -66,9 +64,7 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } } - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { // read cronjobs from database because deleting the language items requires the @@ -129,9 +125,7 @@ private function getRandomExpression(string $name, string $expression): CronExpr }); } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { if (isset($data['elements']['expression'])) { @@ -166,17 +160,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['cronjobName']; } - /** - * @inheritDoc - */ + #[\Override] protected function validateImport(array $data) { // The constructor will throw if the expression is not valid. @@ -190,9 +180,7 @@ protected function validateImport(array $data) )); } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -210,9 +198,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function prepareCreate(array &$data) { parent::prepareCreate($data); @@ -244,19 +230,19 @@ protected function cleanup(): void } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var IFormContainer $dataContainer */ @@ -342,11 +328,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -465,20 +451,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -488,10 +474,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/DatabasePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/DatabasePackageInstallationPlugin.class.php index dd30f980161..dda17548f78 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/DatabasePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/DatabasePackageInstallationPlugin.class.php @@ -19,9 +19,7 @@ class DatabasePackageInstallationPlugin extends AbstractPackageInstallationPlugi { public const SCRIPT_DIR = 'acp/database/'; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -55,34 +53,26 @@ private function updateDatabase(string $scriptPath): void ))->process(); } - /** - * @inheritDoc - */ + #[\Override] public function hasUninstall() { // Database scripts cannot be uninstalled. return false; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public static function getDefaultFilename() { return static::SCRIPT_DIR . '*.php'; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return ['file']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php index 9fd6991a253..4ce167bbddf 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php @@ -53,9 +53,7 @@ class EventListenerPackageInstallationPlugin extends AbstractXMLPackageInstallat */ public $tagName = 'eventlistener'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -91,9 +89,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $nice = isset($data['elements']['nice']) ? \intval($data['elements']['nice']) : 0; @@ -121,9 +117,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -141,9 +135,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { parent::uninstall(); @@ -152,28 +144,26 @@ public function uninstall() EventListenerCacheBuilder::getInstance()->reset(); } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['listenerName']; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -306,6 +296,7 @@ protected function addFormFields(IFormDocument $form) /** * Shows options and permissions if already specified. */ + #[\Override] public function setEntryData(string $identifier, IFormDocument $document): bool { $options = $document->getFormField('options'); @@ -328,6 +319,7 @@ public function setEntryData(string $identifier, IFormDocument $document): bool /** * Shows options and permissions if already specified. */ + #[\Override] public function editEntry(IFormDocument $form, string $identifier) { $options = $form->getFormField('options'); @@ -346,11 +338,11 @@ public function editEntry(IFormDocument $form, string $identifier) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $eventName = EventHandler::DEFAULT_EVENT_NAME; @@ -400,20 +392,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -424,10 +416,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/FileDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/FileDeletePackageInstallationPlugin.class.php index cdf8f874a94..fb987187041 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FileDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FileDeletePackageInstallationPlugin.class.php @@ -17,17 +17,13 @@ final class FileDeletePackageInstallationPlugin extends AbstractFileDeletePackag */ public $tagName = 'file'; - /** - * @inheritDoc - */ + #[\Override] protected function getLogTableName(): string { return 'wcf1_package_installation_file_log'; } - /** - * @inheritDoc - */ + #[\Override] protected function getFilenameTableColumn(): string { return 'filename'; diff --git a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php index bf1ef0d3ddf..34d46d5ca52 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php @@ -28,9 +28,7 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin im */ public $tableName = 'package_installation_file_log'; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -90,9 +88,7 @@ public function install() StyleHandler::resetStylesheets(true); } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // fetch files from log @@ -113,17 +109,13 @@ public function uninstall() } } - /** - * @inheritDoc - */ + #[\Override] public static function getDefaultFilename() { return 'files.tar'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { if (!$instruction) { @@ -146,9 +138,7 @@ public static function isValid(PackageArchive $packageArchive, $instruction) return false; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return ['option']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 0997e7b8b5e..2c40c3e7077 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -67,9 +67,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl */ public $tagName = 'item'; - /** - * @inheritDoc - */ + #[\Override] public function install() { AbstractPackageInstallationPlugin::install(); @@ -174,9 +172,7 @@ public function install() } } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { parent::uninstall(); @@ -282,33 +278,25 @@ protected function deleteEmptyCategories(array $categoryIDs, $packageID) } } - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { // does nothing } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return $data; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { return null; } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { LanguageFactory::getInstance()->deleteLanguageCache(); @@ -318,33 +306,32 @@ protected function postImport() * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'language/*.xml'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { return true; } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -518,11 +505,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -564,10 +551,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); @@ -578,6 +565,7 @@ public function getElementIdentifier(\DOMElement $element) * * @return IDevtoolsPipEntryList */ + #[\Override] public function getEntryList() { $entryList = new DevtoolsPipEntryList(); @@ -625,16 +613,15 @@ public function getEntryList() } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function getImportElements(\DOMXPath $xpath) { return $xpath->query('/ns:language/ns:import/ns:category/ns:item'); } /** - * @inheritDoc * @param string $languageCode * @return string * @since 5.2 @@ -661,6 +648,7 @@ protected function getEmptyXml($languageCode) * @param bool $createXmlFiles if `true` and if a relevant XML file does not exist, it is created * @return XML[] */ + #[\Override] protected function getProjectXmls($createXmlFiles = false) { $xmls = []; @@ -701,7 +689,6 @@ protected function getProjectXmls($createXmlFiles = false) } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -756,10 +743,10 @@ protected function saveObject(\DOMElement $newElement, ?\DOMElement $oldElement } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $keys = [ @@ -775,10 +762,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; @@ -854,7 +841,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ @@ -864,7 +850,6 @@ protected function createAndInsertNewXmlElement(XML $xml, IFormDocument $form) } /** - * @inheritDoc * @param string $identifier * @return \DOMElement * @since 5.2 @@ -887,7 +872,6 @@ protected function replaceXmlElement(XML $xml, IFormDocument $form, $identifier) } /** - * @inheritDoc * @return void * @since 5.2 */ @@ -904,7 +888,6 @@ protected function deleteObject(\DOMElement $element) } /** - * @inheritDoc * @return bool * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php index 5204a1a572e..35b79bc0287 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php @@ -45,9 +45,7 @@ class MediaProviderPackageInstallationPlugin extends AbstractXMLPackageInstallat */ public $tagName = 'provider'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -62,9 +60,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return [ @@ -76,17 +72,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['name']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -104,28 +96,24 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function cleanup() { // clear cache immediately BBCodeMediaProviderCacheBuilder::getInstance()->reset(); } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -221,11 +209,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -253,20 +241,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -276,10 +264,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php index f533a27ef48..1574b47c361 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php @@ -51,9 +51,7 @@ class MenuItemPackageInstallationPlugin extends AbstractXMLPackageInstallationPl */ public $tagName = 'item'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_menu_item @@ -80,9 +78,9 @@ protected function handleDelete(array $items) } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -105,9 +103,9 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function prepareImport(array $data) { $menuID = null; @@ -178,9 +176,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['identifier']; @@ -222,9 +218,7 @@ protected function getPageID($identifier) return $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -242,9 +236,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // updating menu items is not supported because all fields that could be modified @@ -280,19 +272,19 @@ protected function getItemOrder($menuID, $parentItemID = null) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['language', 'menu', 'page']; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { $menuList = new MenuList(); @@ -462,11 +454,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -552,20 +544,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('identifier'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -575,10 +567,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php index 5ef1e085d0b..9c6996f8737 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php @@ -66,9 +66,7 @@ class MenuPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin */ public $tagName = 'menu'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_menu @@ -95,9 +93,9 @@ protected function handleDelete(array $items) } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -146,9 +144,7 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $identifier = $data['attributes']['identifier']; @@ -191,17 +187,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['identifier']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -219,9 +211,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // updating menus is not supported because the only modifiable data is the @@ -233,9 +223,7 @@ protected function import(array $row, array $data) return parent::import($row, $data); } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { if (empty($this->boxData)) { @@ -318,28 +306,28 @@ protected function postImport() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['language']; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getAdditionalTemplateCode() { return WCF::getTPL()->render('wcf', '__menuPipGui', []); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -443,11 +431,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -540,20 +528,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('identifier'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -562,10 +550,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php index d2fbe9e0e44..2bf977813c1 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php @@ -39,9 +39,7 @@ class ObjectTypeDefinitionPackageInstallationPlugin extends AbstractXMLPackageIn */ public $tagName = 'definition'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -56,9 +54,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return [ @@ -68,17 +64,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['definitionName']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -93,19 +85,19 @@ protected function findExistingItem(array $data) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -167,11 +159,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -190,20 +182,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getElementsByTagName('name')->item(0)->nodeValue; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -213,10 +205,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $definition = $document->createElement($this->tagName); @@ -234,7 +226,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -250,7 +241,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php index ccd6b548896..564172c8806 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php @@ -108,9 +108,7 @@ protected function getDefinitionID($definitionName) return $row['definitionID']; } - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -127,9 +125,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $additionalData = []; @@ -147,9 +143,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { if ($row !== []) { @@ -168,9 +162,7 @@ protected function import(array $row, array $data) return parent::import($row, $data); } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -190,18 +182,16 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return ['objectTypeDefinition']; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getAdditionalTemplateCode() { return WCF::getTPL()->render('wcf', '__objectTypePipGui', [ @@ -211,11 +201,11 @@ public function getAdditionalTemplateCode() } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -250,10 +240,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { // read available object type definitions @@ -839,10 +829,10 @@ static function (UserGroupOptionFormField $formField) { } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return \sha1( @@ -852,9 +842,9 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getEntryList() { $xml = $this->getProjectXml(); @@ -875,10 +865,10 @@ public function getEntryList() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -921,10 +911,10 @@ public function getObjectTypeDefinitionDataContainer(IFormDocument $form, $defin } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; @@ -1227,9 +1217,9 @@ static function (TextFormField $formField) use ($databaseTableName) { } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function setEntryData(string $identifier, IFormDocument $document) { $returnValue = $this->defaultSetEntryData($identifier, $document); @@ -1258,7 +1248,6 @@ public function setEntryData(string $identifier, IFormDocument $document) } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -1279,7 +1268,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/OptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/OptionPackageInstallationPlugin.class.php index 0103e7a3701..615f1d2517c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/OptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/OptionPackageInstallationPlugin.class.php @@ -66,9 +66,7 @@ class OptionPackageInstallationPlugin extends AbstractOptionPackageInstallationP 'requirei18n', ]; - /** - * @inheritDoc - */ + #[\Override] protected function saveOption($option, $categoryName, $existingOptionID = 0) { // default values @@ -178,10 +176,10 @@ protected function saveOption($option, $categoryName, $existingOptionID = 0) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); @@ -317,11 +315,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = parent::fetchElementData($element, $saveData); @@ -348,34 +346,28 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return OptionHandler * @since 5.2 */ + #[\Override] protected function getSortOptionHandler() { return new class(true) extends OptionHandler { - /** - * @inheritDoc - */ + #[\Override] protected function checkCategory(OptionCategory $category) { // we do not care for category checks here return true; } - /** - * @inheritDoc - */ + #[\Override] protected function checkOption(Option $option) { // we do not care for option checks here return true; } - /** - * @inheritDoc - */ + #[\Override] public function getCategoryOptions(string $categoryName = '', bool $inherit = true) { // we just need to ensure that the category is not empty @@ -385,10 +377,10 @@ public function getCategoryOptions(string $categoryName = '', bool $inherit = tr } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $option = parent::prepareXmlElement($document, $form); diff --git a/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php index 57f711ec8e9..77fa5c34973 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php @@ -36,9 +36,7 @@ class PIPPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin */ public $tagName = 'pip'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -53,9 +51,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { return [ @@ -69,14 +65,13 @@ protected function prepareImport(array $data) * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'packageInstallationPlugin.xml'; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -94,19 +89,17 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -154,11 +147,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { return [ @@ -169,20 +162,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -192,10 +185,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php index 5eb81239a63..0255db73a3c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php @@ -76,9 +76,7 @@ class PagePackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin */ public $tagName = 'page'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $pages = []; @@ -95,9 +93,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { $nodeValue = $element->nodeValue; @@ -128,9 +124,9 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } /** - * @inheritDoc * @throws SystemException */ + #[\Override] protected function prepareImport(array $data) { $pageType = $data['elements']['pageType']; @@ -272,17 +268,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['identifier']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -300,9 +292,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { // extract content @@ -348,9 +338,7 @@ protected function import(array $row, array $data) return $page; } - /** - * @inheritDoc - */ + #[\Override] protected function postImport() { if (!empty($this->content)) { @@ -427,19 +415,19 @@ protected function postImport() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['language']; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { $tabContainter = TabMenuFormContainer::create('tabMenu'); @@ -644,11 +632,11 @@ static function (SingleSelectionFormField $formField) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -797,20 +785,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('identifier'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -820,10 +808,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $formData = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php index 03fe9114059..63b2132113f 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php @@ -23,9 +23,7 @@ class SQLPackageInstallationPlugin extends AbstractPackageInstallationPlugin */ public $tableName = 'package_installation_sql_log'; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -62,9 +60,7 @@ public function install() } } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // get logged sql tables/columns @@ -142,17 +138,13 @@ protected function getSQL($filename) return $this->installation->getArchive()->getTar()->extractToString($fileindex); } - /** - * @inheritDoc - */ + #[\Override] public static function getDefaultFilename() { return 'install.sql'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { if (!$instruction) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php index a0a1685f8df..44e60fd145c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ScriptPackageInstallationPlugin.class.php @@ -15,9 +15,7 @@ */ class ScriptPackageInstallationPlugin extends AbstractPackageInstallationPlugin { - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -55,18 +53,14 @@ private function run(string $scriptPath): mixed return include($scriptPath); } - /** - * @inheritDoc - */ + #[\Override] public function hasUninstall() { // scripts can't be uninstalled return false; } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // does nothing diff --git a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php index 7711592ef52..93f1c391fd0 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php @@ -47,9 +47,7 @@ class SmileyPackageInstallationPlugin extends AbstractXMLPackageInstallationPlug */ public $tagName = 'smiley'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -64,9 +62,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $showOrder = $this->getShowOrder($data['elements']['showorder'] ?? null); @@ -81,17 +77,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['smileyCode']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -110,19 +102,19 @@ protected function findExistingItem(array $data) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -263,11 +255,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -305,20 +297,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -328,10 +320,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php index 40d510c6837..6fd6d51da0a 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php @@ -22,9 +22,7 @@ class StylePackageInstallationPlugin extends AbstractPackageInstallationPlugin */ public $className = StyleEditor::class; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -47,9 +45,7 @@ public function install() @\unlink($filename); } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // call uninstall event diff --git a/wcfsetup/install/files/lib/system/package/plugin/TemplateDeletePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/TemplateDeletePackageInstallationPlugin.class.php index 62c12b4079f..398513938c5 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/TemplateDeletePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/TemplateDeletePackageInstallationPlugin.class.php @@ -14,17 +14,13 @@ */ final class TemplateDeletePackageInstallationPlugin extends AbstractTemplateDeletePackageInstallationPlugin { - /** - * @inheritDoc - */ + #[\Override] protected function getLogTableName(): string { return 'wcf1_template'; } - /** - * @inheritDoc - */ + #[\Override] protected function getFilePath(string $filename, string $application): string { return \sprintf( diff --git a/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php index 661fec9d531..6e326f15e1a 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php @@ -47,9 +47,7 @@ class TemplateListenerPackageInstallationPlugin extends AbstractXMLPackageInstal */ public $className = TemplateListenerEditor::class; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -70,9 +68,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $niceValue = isset($data['elements']['nice']) ? \intval($data['elements']['nice']) : 0; @@ -94,9 +90,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -120,9 +114,7 @@ protected function findExistingItem(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function cleanup() { // clear cache immediately @@ -130,19 +122,19 @@ protected function cleanup() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { $ldq = \preg_quote(WCF::getTPL()->getCompiler()->getLeftDelimiter(), '~'); @@ -394,11 +386,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -430,10 +422,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return \sha1( @@ -445,9 +437,9 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function setEntryData(string $identifier, IFormDocument $document) { if ($this->defaultSetEntryData($identifier, $document)) { @@ -490,6 +482,7 @@ public function setEntryData(string $identifier, IFormDocument $document) /** * Shows options and permissions if already specified. */ + #[\Override] public function editEntry(IFormDocument $form, string $identifier) { $options = $form->getFormField('options'); @@ -508,10 +501,10 @@ public function editEntry(IFormDocument $form, string $identifier) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -523,10 +516,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; @@ -554,7 +547,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -574,7 +566,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php index 919cadbaee9..d370f6ddb9d 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php @@ -26,9 +26,7 @@ class TemplatePackageInstallationPlugin extends AbstractPackageInstallationPlugi */ public $tableName = 'template'; - /** - * @inheritDoc - */ + #[\Override] public function install() { parent::install(); @@ -58,6 +56,7 @@ public function install() /** * Uninstalls the templates of this package. */ + #[\Override] public function uninstall() { // fetch templates from log @@ -98,14 +97,13 @@ public function uninstall() * @see \wcf\system\package\plugin\IPackageInstallationPlugin::getDefaultFilename() * @since 3.0 */ + #[\Override] public static function getDefaultFilename() { return 'templates.tar'; } - /** - * @inheritDoc - */ + #[\Override] public static function isValid(PackageArchive $packageArchive, $instruction) { if (!$instruction) { @@ -128,9 +126,7 @@ public static function isValid(PackageArchive $packageArchive, $instruction) return false; } - /** - * @inheritDoc - */ + #[\Override] public static function getSyncDependencies() { return []; diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php index 73eec632d96..066a5ebe2d9 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php @@ -79,9 +79,7 @@ class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInst 'usersonly', ]; - /** - * @inheritDoc - */ + #[\Override] protected function saveOption($option, $categoryName, $existingOptionID = 0) { // default values @@ -263,10 +261,10 @@ protected function getGroupIDs() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); @@ -317,11 +315,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = parent::fetchElementData($element, $saveData); @@ -364,35 +362,29 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return UserGroupOptionHandler * @since 5.2 */ + #[\Override] protected function getSortOptionHandler() { // reuse UserGroupOptionHandler return new class(true) extends UserGroupOptionHandler { - /** - * @inheritDoc - */ + #[\Override] protected function checkCategory(OptionCategory $category) { // we do not care for category checks here return true; } - /** - * @inheritDoc - */ + #[\Override] protected function checkOption(Option $option) { // we do not care for option checks here return true; } - /** - * @inheritDoc - */ + #[\Override] public function getCategoryOptions(string $categoryName = '', bool $inherit = true) { // we just need to ensure that the category is not empty @@ -402,10 +394,10 @@ public function getCategoryOptions(string $categoryName = '', bool $inherit = tr } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $option = parent::prepareXmlElement($document, $form); @@ -432,9 +424,9 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @since 5.2 */ + #[\Override] protected function getOptionTypeOptions() { $options = []; diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php index 35efb8a8941..963669295ea 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php @@ -39,9 +39,7 @@ class UserMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP */ public $tagName = 'usermenuitem'; - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $result = parent::prepareImport($data); @@ -58,9 +56,7 @@ protected function prepareImport(array $data) return $result; } - /** - * @inheritDoc - */ + #[\Override] protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $element) { if ($element->tagName === 'iconclassname') { @@ -76,10 +72,10 @@ protected function getElement(\DOMXPath $xpath, array &$elements, \DOMElement $e } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); @@ -141,11 +137,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = parent::fetchElementData($element, $saveData); @@ -175,10 +171,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $menuItem = parent::prepareXmlElement($document, $form); diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php index fc5a136ae72..7e117711ad8 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php @@ -57,9 +57,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI */ protected $presetEventIDs = []; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -76,9 +74,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { $presetMailNotificationType = 'none'; @@ -97,9 +93,7 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] protected function import(array $row, array $data) { /** @var UserNotificationEvent $event */ @@ -112,9 +106,7 @@ protected function import(array $row, array $data) return $event; } - /** - * @inheritDoc - */ + #[\Override] protected function cleanup() { if (empty($this->presetEventIDs)) { @@ -133,9 +125,7 @@ protected function cleanup() WCF::getDB()->commitTransaction(); } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -182,19 +172,19 @@ protected function getObjectTypeID($objectType) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return ['objectType']; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -310,11 +300,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -363,10 +353,10 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return \sha1( @@ -376,10 +366,10 @@ public function getElementIdentifier(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -389,10 +379,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $event = $document->createElement($this->tagName); @@ -415,7 +405,6 @@ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form } /** - * @inheritDoc * @return ?\DOMElement * @since 5.2 */ @@ -434,7 +423,6 @@ protected function prepareDeleteXmlElement(\DOMElement $element) } /** - * @inheritDoc * @return void * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php index b1143be618e..6a9385411cb 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php @@ -79,9 +79,9 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat ]; /** - * @inheritDoc * @param array $category */ + #[\Override] protected function saveCategory($category) { // use for create and update @@ -112,9 +112,7 @@ protected function saveCategory($category) } } - /** - * @inheritDoc - */ + #[\Override] protected function saveOption($option, $categoryName, $existingOptionID = 0) { // default values @@ -230,9 +228,7 @@ protected function saveOption($option, $categoryName, $existingOptionID = 0) } } - /** - * @inheritDoc - */ + #[\Override] public function uninstall() { // get optionsIDs from package @@ -253,10 +249,10 @@ public function uninstall() } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { parent::addFormFields($form); @@ -398,11 +394,11 @@ static function (IFormDocument $document, array $parameters) { } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = parent::fetchElementData($element, $saveData); @@ -448,35 +444,29 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return UserOptionHandler * @since 5.2 */ + #[\Override] protected function getSortOptionHandler() { // reuse UserGroupOptionHandler return new class(true) extends UserOptionHandler { - /** - * @inheritDoc - */ + #[\Override] protected function checkCategory(OptionCategory $category) { // we do not care for category checks here return true; } - /** - * @inheritDoc - */ + #[\Override] protected function checkOption(Option $option) { // we do not care for option checks here return true; } - /** - * @inheritDoc - */ + #[\Override] public function getCategoryOptions(string $categoryName = '', bool $inherit = true) { // we just need to ensure that the category is not empty @@ -486,10 +476,10 @@ public function getCategoryOptions(string $categoryName = '', bool $inherit = tr } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $option = parent::prepareXmlElement($document, $form); diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php index 07396e70e61..659d266db6f 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php @@ -48,9 +48,7 @@ class UserProfileMenuPackageInstallationPlugin extends AbstractXMLPackageInstall */ public $tagName = 'userprofilemenuitem'; - /** - * @inheritDoc - */ + #[\Override] protected function handleDelete(array $items) { $sql = "DELETE FROM wcf1_" . $this->tableName . " @@ -65,9 +63,7 @@ protected function handleDelete(array $items) } } - /** - * @inheritDoc - */ + #[\Override] protected function prepareImport(array $data) { // adjust show order @@ -84,17 +80,13 @@ protected function prepareImport(array $data) ]; } - /** - * @inheritDoc - */ + #[\Override] public function getNameByData(array $data): string { return $data['menuItem']; } - /** - * @inheritDoc - */ + #[\Override] protected function findExistingItem(array $data) { $sql = "SELECT * @@ -113,19 +105,19 @@ protected function findExistingItem(array $data) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getSyncDependencies() { return []; } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function addFormFields(IFormDocument $form) { /** @var FormContainer $dataContainer */ @@ -198,11 +190,11 @@ protected function addFormFields(IFormDocument $form) } /** - * @inheritDoc * @param bool $saveData * @return array * @since 5.2 */ + #[\Override] protected function fetchElementData(\DOMElement $element, $saveData) { $data = [ @@ -238,20 +230,20 @@ protected function fetchElementData(\DOMElement $element, $saveData) } /** - * @inheritDoc * @return string * @since 5.2 */ + #[\Override] public function getElementIdentifier(\DOMElement $element) { return $element->getAttribute('name'); } /** - * @inheritDoc * @return void * @since 5.2 */ + #[\Override] protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) { $entryList->setKeys([ @@ -261,10 +253,10 @@ protected function setEntryListKeys(IDevtoolsPipEntryList $entryList) } /** - * @inheritDoc * @return \DOMElement * @since 5.2 */ + #[\Override] protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) { $data = $form->getData()['data']; diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php index b0366ba79cb..33989111fe0 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php @@ -464,57 +464,43 @@ public function setChildren(array $children): void $this->children = $children; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->position = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->children[$this->position]); } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->position++; } - /** - * @inheritDoc - */ + #[\Override] public function current(): self { return $this->children[$this->position]; } - /** - * @inheritDoc - */ + #[\Override] public function key(): int { return $this->position; } - /** - * @inheritDoc - */ + #[\Override] public function getChildren(): self { return $this->children[$this->position]; } - /** - * @inheritDoc - */ + #[\Override] public function hasChildren(): bool { return \count($this->children) > 0; diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php index a853b3a7df0..ba8ae673d43 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php @@ -308,8 +308,6 @@ protected function getLegacyMessage($code) } /** - * @inheritDoc - * * @return void */ protected function logError() diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php index f4d9c9ab2c6..513ce10f466 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php @@ -52,9 +52,7 @@ class PackageValidationManager extends SingletonFactory */ const VALIDATION_EXCLUSION = 2; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $pipList = new PackageInstallationPluginList(); diff --git a/wcfsetup/install/files/lib/system/page/ParentPageLocation.class.php b/wcfsetup/install/files/lib/system/page/ParentPageLocation.class.php index c65f5121277..21d0ae9fee6 100644 --- a/wcfsetup/install/files/lib/system/page/ParentPageLocation.class.php +++ b/wcfsetup/install/files/lib/system/page/ParentPageLocation.class.php @@ -39,17 +39,13 @@ public function __construct($title, $link) $this->link = $link; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->link; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->title; diff --git a/wcfsetup/install/files/lib/system/page/handler/AbstractMenuPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/AbstractMenuPageHandler.class.php index 9413d0e7143..87af7d2fd68 100644 --- a/wcfsetup/install/files/lib/system/page/handler/AbstractMenuPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/AbstractMenuPageHandler.class.php @@ -22,38 +22,28 @@ abstract class AbstractMenuPageHandler implements IMenuPageHandler */ private MenuItem $menuItem; - /** - * @inheritDoc - */ + #[\Override] public function getOutstandingItemCount(?int $objectID = null) { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { return true; } - /** - * @inheritDoc - */ + #[\Override] public function cacheObject(int $objectID): void {} - /** - * @inheritDoc - */ + #[\Override] public function setMenuItem(MenuItem $menuItem): void { $this->menuItem = $menuItem; } - /** - * @inheritDoc - */ + #[\Override] public function getMenuItem(): ?MenuItem { return $this->menuItem ?? null; diff --git a/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php index 23872caee35..cbe0b0e47a3 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php @@ -15,18 +15,16 @@ */ class ArticleListPageHandler extends AbstractMenuPageHandler { - /** - * @inheritDoc - */ + #[\Override] public function getOutstandingItemCount(?int $objectID = null) { return ViewableArticle::getUnreadArticles(); } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function isVisible(?int $objectID = null) { return !empty(ArticleCategory::getAccessibleCategoryIDs()); diff --git a/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php index 4f379dee08b..96a8dac84f6 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php @@ -21,25 +21,19 @@ class ArticlePageHandler extends AbstractLookupPageHandler implements IOnlineLoc { use TOnlineLocationPageHandler; - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectID) { return ViewableArticleRuntimeCache::getInstance()->getObject($objectID)->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function isValid(?int $objectID) { return ViewableArticleRuntimeCache::getInstance()->getObject($objectID) !== null; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { $article = ViewableArticleRuntimeCache::getInstance()->getObject($objectID); @@ -47,9 +41,7 @@ public function isVisible(?int $objectID = null) return $article !== null && $article->canRead(); } - /** - * @inheritDoc - */ + #[\Override] public function lookup(string $searchString) { $articleList = new ViewableArticleList(); @@ -89,9 +81,7 @@ public function lookup(string $searchString) return $results; } - /** - * @inheritDoc - */ + #[\Override] public function getOnlineLocation(Page $page, UserOnline $user) { if ($user->pageObjectID === null) { @@ -109,9 +99,7 @@ public function getOnlineLocation(Page $page, UserOnline $user) ); } - /** - * @inheritDoc - */ + #[\Override] public function prepareOnlineLocation(Page $page, UserOnline $user) { if ($user->pageObjectID !== null) { @@ -119,9 +107,7 @@ public function prepareOnlineLocation(Page $page, UserOnline $user) } } - /** - * @inheritDoc - */ + #[\Override] public function cacheObject(int $objectID): void { ViewableArticleRuntimeCache::getInstance()->cacheObjectID($objectID); diff --git a/wcfsetup/install/files/lib/system/page/handler/CategoryArticleListPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/CategoryArticleListPageHandler.class.php index c7086cc9152..ee937b40093 100644 --- a/wcfsetup/install/files/lib/system/page/handler/CategoryArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/CategoryArticleListPageHandler.class.php @@ -21,15 +21,16 @@ class CategoryArticleListPageHandler extends AbstractLookupPageHandler implement * @return string * @see TDecoratedCategoryLookupPageHandler::getDecoratedCategoryClass() */ + #[\Override] protected function getDecoratedCategoryClass() { return ArticleCategory::class; } /** - * @inheritDoc * @since 5.2 */ + #[\Override] public function getOutstandingItemCount(?int $objectID = null) { return ViewableArticle::getUnreadArticlesForCategory($objectID); diff --git a/wcfsetup/install/files/lib/system/page/handler/ContactFormPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/ContactFormPageHandler.class.php index f8a55c5ee9e..9159a26bb6a 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ContactFormPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ContactFormPageHandler.class.php @@ -13,9 +13,7 @@ */ class ContactFormPageHandler extends AbstractMenuPageHandler { - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { return true; diff --git a/wcfsetup/install/files/lib/system/page/handler/TrophyListPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TrophyListPageHandler.class.php index e2f726e61b0..60cea621027 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TrophyListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TrophyListPageHandler.class.php @@ -17,9 +17,9 @@ class TrophyListPageHandler extends AbstractLookupPageHandler use TDecoratedCategoryOnlineLocationLookupPageHandler; /** - * @inheritDoc * @return string */ + #[\Override] protected function getDecoratedCategoryClass() { return TrophyCategory::class; diff --git a/wcfsetup/install/files/lib/system/page/handler/TrophyPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TrophyPageHandler.class.php index 8c0c710b0d5..6dd2c8c0cee 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TrophyPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TrophyPageHandler.class.php @@ -16,33 +16,25 @@ */ class TrophyPageHandler extends AbstractLookupPageHandler { - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectID) { return TrophyCache::getInstance()->getTrophyByID($objectID)->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function isValid(?int $objectID) { return TrophyCache::getInstance()->getTrophyByID($objectID) !== null; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { return WCF::getSession()->getPermission('user.profile.trophy.canSeeTrophies'); } - /** - * @inheritDoc - */ + #[\Override] public function lookup(string $searchString) { $trophyList = new TrophyList(); diff --git a/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php index 73aac581b6b..2f5d45c848d 100644 --- a/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php @@ -14,17 +14,13 @@ */ class UnreadArticleListPageHandler extends AbstractMenuPageHandler { - /** - * @inheritDoc - */ + #[\Override] public function getOutstandingItemCount(?int $objectID = null) { return ViewableArticle::getUnreadArticles(); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { return !empty(ViewableArticle::getUnreadArticles()); diff --git a/wcfsetup/install/files/lib/system/page/handler/UserPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/UserPageHandler.class.php index 9091f0aa8b8..87d8a19c838 100644 --- a/wcfsetup/install/files/lib/system/page/handler/UserPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/UserPageHandler.class.php @@ -17,9 +17,7 @@ class UserPageHandler extends AbstractLookupPageHandler implements IOnlineLocati use TUserLookupPageHandler; use TUserOnlineLocationPageHandler; - /** - * @inheritDoc - */ + #[\Override] public function getLink(int $objectID) { return UserRuntimeCache::getInstance()->getObject($objectID)->getLink(); diff --git a/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php index c3ec18d9de7..2662d511de5 100644 --- a/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php @@ -15,17 +15,13 @@ */ class WatchedArticleListPageHandler extends AbstractMenuPageHandler { - /** - * @inheritDoc - */ + #[\Override] public function getOutstandingItemCount(?int $objectID = null) { return ViewableArticle::getWatchedUnreadArticles(); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible(?int $objectID = null) { return !empty(ArticleCategory::getSubscribedCategoryIDs()); diff --git a/wcfsetup/install/files/lib/system/payment/method/AbstractPaymentMethod.class.php b/wcfsetup/install/files/lib/system/payment/method/AbstractPaymentMethod.class.php index b552cb8e702..c57292d38a7 100644 --- a/wcfsetup/install/files/lib/system/payment/method/AbstractPaymentMethod.class.php +++ b/wcfsetup/install/files/lib/system/payment/method/AbstractPaymentMethod.class.php @@ -11,9 +11,7 @@ */ abstract class AbstractPaymentMethod implements IPaymentMethod { - /** - * @inheritDoc - */ + #[\Override] public function supportsRecurringPayments() { return false; diff --git a/wcfsetup/install/files/lib/system/payment/method/PaymentMethodHandler.class.php b/wcfsetup/install/files/lib/system/payment/method/PaymentMethodHandler.class.php index 0993b870160..883ff229856 100644 --- a/wcfsetup/install/files/lib/system/payment/method/PaymentMethodHandler.class.php +++ b/wcfsetup/install/files/lib/system/payment/method/PaymentMethodHandler.class.php @@ -28,9 +28,7 @@ class PaymentMethodHandler extends SingletonFactory */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $availablePaymentMethods = \explode(',', AVAILABLE_PAYMENT_METHODS); diff --git a/wcfsetup/install/files/lib/system/payment/method/PaypalPaymentMethod.class.php b/wcfsetup/install/files/lib/system/payment/method/PaypalPaymentMethod.class.php index 50ce0800043..67587608160 100644 --- a/wcfsetup/install/files/lib/system/payment/method/PaypalPaymentMethod.class.php +++ b/wcfsetup/install/files/lib/system/payment/method/PaypalPaymentMethod.class.php @@ -15,17 +15,13 @@ */ class PaypalPaymentMethod extends AbstractPaymentMethod { - /** - * @inheritDoc - */ + #[\Override] public function supportsRecurringPayments() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getSupportedCurrencies() { return [ @@ -56,9 +52,7 @@ public function getSupportedCurrencies() ]; } - /** - * @inheritDoc - */ + #[\Override] public function getPurchaseButton( float $cost, string $currency, diff --git a/wcfsetup/install/files/lib/system/payment/type/PaidSubscriptionPaymentType.class.php b/wcfsetup/install/files/lib/system/payment/type/PaidSubscriptionPaymentType.class.php index 9e0eac9fac1..75dea713869 100644 --- a/wcfsetup/install/files/lib/system/payment/type/PaidSubscriptionPaymentType.class.php +++ b/wcfsetup/install/files/lib/system/payment/type/PaidSubscriptionPaymentType.class.php @@ -22,9 +22,7 @@ */ class PaidSubscriptionPaymentType extends AbstractPaymentType { - /** - * @inheritDoc - */ + #[\Override] public function processTransaction( int $paymentMethodObjectTypeID, string $token, diff --git a/wcfsetup/install/files/lib/system/poll/AbstractPollHandler.class.php b/wcfsetup/install/files/lib/system/poll/AbstractPollHandler.class.php index f3a689ca44d..75428626d00 100644 --- a/wcfsetup/install/files/lib/system/poll/AbstractPollHandler.class.php +++ b/wcfsetup/install/files/lib/system/poll/AbstractPollHandler.class.php @@ -13,17 +13,13 @@ */ abstract class AbstractPollHandler extends SingletonFactory implements IPollHandler { - /** - * @inheritDoc - */ + #[\Override] public function canStartPublicPoll() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function canVote() { return true; diff --git a/wcfsetup/install/files/lib/system/poll/PollManager.class.php b/wcfsetup/install/files/lib/system/poll/PollManager.class.php index 93fceb5f50b..53aee29590e 100644 --- a/wcfsetup/install/files/lib/system/poll/PollManager.class.php +++ b/wcfsetup/install/files/lib/system/poll/PollManager.class.php @@ -77,9 +77,7 @@ class PollManager extends SingletonFactory */ protected $pollOptions = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.poll'); diff --git a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php index c741dd02571..11a97a3775b 100644 --- a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php +++ b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php @@ -46,6 +46,7 @@ final class ReactionHandler extends SingletonFactory */ private array $likeableObjectsCache = []; + #[\Override] protected function init(): void { $this->cache = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.like.likeableObject'); diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index 7430d701ff1..90b951a3102 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -40,9 +40,7 @@ final class LinkHandler extends SingletonFactory */ protected $titleReplace = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->controllerRegex = new Regex( diff --git a/wcfsetup/install/files/lib/system/request/Request.class.php b/wcfsetup/install/files/lib/system/request/Request.class.php index e3108578e65..673002e7782 100644 --- a/wcfsetup/install/files/lib/system/request/Request.class.php +++ b/wcfsetup/install/files/lib/system/request/Request.class.php @@ -39,9 +39,7 @@ public function __construct(string $className, array $metaData, bool $isLandingP $this->isLandingPage = $isLandingPage; } - /** - * @inheritDoc - */ + #[\Override] public function handle(ServerRequestInterface $request): ResponseInterface { if (!isset($this->requestObject)) { diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 63d0a40e22c..318af99ac55 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -72,9 +72,7 @@ final class RequestHandler extends SingletonFactory private ?Page $activePage; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->isACPRequest = \class_exists('wcf\system\WCFACP', false); diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index f2203c9f301..a237c4e0906 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -72,6 +72,7 @@ final class RouteHandler extends SingletonFactory /** * Sets default routes. */ + #[\Override] protected function init() { $route = new DynamicRequestRoute(); diff --git a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php index b8fa51336a1..83289522b6a 100644 --- a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php @@ -143,9 +143,7 @@ public function setRequiredComponents(array $requiredComponents) $this->requireComponents = $requiredComponents; } - /** - * @inheritDoc - */ + #[\Override] public function buildLink(array $components) { $application = $components['application'] ?? null; @@ -240,9 +238,7 @@ protected function buildRoute(array $components, $application, $useBuildSchema) return $link; } - /** - * @inheritDoc - */ + #[\Override] public function canHandle(array $components) { if (!empty($this->requireComponents)) { @@ -260,25 +256,19 @@ public function canHandle(array $components) return true; } - /** - * @inheritDoc - */ + #[\Override] public function getRouteData() { return $this->routeData; } - /** - * @inheritDoc - */ + #[\Override] public function isACP() { return $this->isACP; } - /** - * @inheritDoc - */ + #[\Override] public function matches(string $requestURL) { if (\preg_match($this->pattern, $requestURL, $matches)) { diff --git a/wcfsetup/install/files/lib/system/request/route/LookupRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/LookupRequestRoute.class.php index 072e552ee55..f6a176a4182 100644 --- a/wcfsetup/install/files/lib/system/request/route/LookupRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/LookupRequestRoute.class.php @@ -23,9 +23,7 @@ final class LookupRequestRoute implements IRequestRoute */ private array $routeData = []; - /** - * @inheritDoc - */ + #[\Override] public function matches(string $requestURL): bool { $requestURL = FileUtil::removeLeadingSlash($requestURL); @@ -86,18 +84,16 @@ public function matches(string $requestURL): bool return false; } - /** - * @inheritDoc - */ + #[\Override] public function getRouteData(): array { return $this->routeData; } /** - * @inheritDoc * @throws \BadMethodCallException */ + #[\Override] public function buildLink(array $components): string { throw new \BadMethodCallException( @@ -105,18 +101,14 @@ public function buildLink(array $components): string ); } - /** - * @inheritDoc - */ + #[\Override] public function canHandle(array $components): bool { // this route cannot build routes, it is a one-way resolver return false; } - /** - * @inheritDoc - */ + #[\Override] public function isACP(): bool { // lookups are not supported for ACP requests diff --git a/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php index 6c6cb786b31..934e5067ebd 100644 --- a/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php @@ -38,6 +38,7 @@ class StaticRequestRoute extends DynamicRequestRoute * @param boolean $isACP * @return void */ + #[\Override] public function setIsACP($isACP) { throw new \BadMethodCallException('Calling setIsAcp() is not allowed.'); @@ -46,6 +47,7 @@ public function setIsACP($isACP) /** * Always returns false. */ + #[\Override] public function isACP() { return false; @@ -78,9 +80,7 @@ public function setStaticController($application, $controller) $this->requireComponents['controller'] = '~^' . $this->staticController . '$~'; } - /** - * @inheritDoc - */ + #[\Override] public function buildLink(array $components) { if ($this->matchController) { @@ -94,9 +94,7 @@ public function buildLink(array $components) return $this->buildRoute($components, '', true); } - /** - * @inheritDoc - */ + #[\Override] public function canHandle(array $components) { if (isset($components['application']) && $components['application'] == $this->staticApplication) { @@ -108,9 +106,7 @@ public function canHandle(array $components) return false; } - /** - * @inheritDoc - */ + #[\Override] public function matches(string $requestURL) { if (parent::matches($requestURL)) { diff --git a/wcfsetup/install/files/lib/system/rssFeed/RssFeed.class.php b/wcfsetup/install/files/lib/system/rssFeed/RssFeed.class.php index 871eee124b4..7fbc01e1992 100644 --- a/wcfsetup/install/files/lib/system/rssFeed/RssFeed.class.php +++ b/wcfsetup/install/files/lib/system/rssFeed/RssFeed.class.php @@ -54,6 +54,7 @@ public function render(): string return $dom->saveXML(); } + #[\Override] public function __toString(): string { return $this->render(); diff --git a/wcfsetup/install/files/lib/system/rssFeed/XmlElement.class.php b/wcfsetup/install/files/lib/system/rssFeed/XmlElement.class.php index d6c3121bc3a..c0d52acd7d3 100644 --- a/wcfsetup/install/files/lib/system/rssFeed/XmlElement.class.php +++ b/wcfsetup/install/files/lib/system/rssFeed/XmlElement.class.php @@ -12,6 +12,7 @@ */ final class XmlElement extends \SimpleXMLElement { + #[\Override] public function addChild(string $name, ?string $value = null, ?string $namespace = null): ?self { if ($value !== null) { diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchEngine.class.php index 5cb587937a2..7f8c32aef0a 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchEngine.class.php @@ -27,17 +27,13 @@ abstract class AbstractSearchEngine extends SingletonFactory implements ISearchE */ protected $specialCharacters = []; - /** - * @inheritDoc - */ + #[\Override] public function getConditionBuilderClassName() { return $this->conditionBuilderClassName; } - /** - * @inheritDoc - */ + #[\Override] public function removeSpecialCharacters(string $string) { if (!empty($this->specialCharacters)) { diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php index 29913b3a974..e9a49d659f6 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php @@ -17,9 +17,7 @@ */ abstract class AbstractSearchIndexManager extends SingletonFactory implements ISearchIndexManager { - /** - * @inheritDoc - */ + #[\Override] public function createSearchIndices() { // get definition id @@ -46,17 +44,13 @@ public function createSearchIndices() */ abstract protected function createSearchIndex(ObjectType $objectType); - /** - * @inheritDoc - */ + #[\Override] public function beginBulkOperation() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function commitBulkOperation() { // does nothing diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchProvider.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchProvider.class.php index 4577bbbecc1..97eeed3fbac 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchProvider.class.php @@ -15,16 +15,12 @@ */ abstract class AbstractSearchProvider extends AbstractObjectTypeProcessor implements ISearchProvider { - /** - * @inheritDoc - */ + #[\Override] public function assignVariables(): void { } - /** - * @inheritDoc - */ + #[\Override] public function getApplication(): string { $classParts = \explode('\\', static::class); @@ -32,97 +28,73 @@ public function getApplication(): string return $classParts[0]; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionBuilder(array $parameters): ?PreparedStatementConditionBuilder { return null; } - /** - * @inheritDoc - */ + #[\Override] public function getJoins(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getSubjectFieldName(): string { return $this->getTableName() . '.subject'; } - /** - * @inheritDoc - */ + #[\Override] public function getUsernameFieldName(): string { return $this->getTableName() . '.username'; } - /** - * @inheritDoc - */ + #[\Override] public function getTimeFieldName(): string { return $this->getTableName() . '.time'; } - /** - * @inheritDoc - */ + #[\Override] public function getAdditionalData(): ?array { return null; } - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(): bool { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getFormTemplateName(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getResultListTemplateName(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getCustomSortField(string $sortField): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getFetchObjectsQuery(?PreparedStatementConditionBuilder $additionalConditions = null): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getCustomIconName(): ?string { return null; diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php index 2e955a52e11..c8ba36f895d 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php @@ -16,16 +16,12 @@ */ abstract class AbstractSearchableObjectType extends AbstractObjectTypeProcessor implements ISearchableObjectType { - /** - * @inheritDoc - */ + #[\Override] public function show(?IForm $form = null) { } - /** - * @inheritDoc - */ + #[\Override] public function getApplication() { $classParts = \explode('\\', static::class); @@ -33,72 +29,54 @@ public function getApplication() return $classParts[0]; } - /** - * @inheritDoc - */ + #[\Override] public function getConditions(?IForm $form = null) { return null; } - /** - * @inheritDoc - */ + #[\Override] public function getJoins() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getSubjectFieldName() { return $this->getTableName() . '.subject'; } - /** - * @inheritDoc - */ + #[\Override] public function getUsernameFieldName() { return $this->getTableName() . '.username'; } - /** - * @inheritDoc - */ + #[\Override] public function getTimeFieldName() { return $this->getTableName() . '.time'; } - /** - * @inheritDoc - */ + #[\Override] public function getAdditionalData() { } - /** - * @inheritDoc - */ + #[\Override] public function isAccessible() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function getFormTemplateName() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getOuterSQLQuery( string $q, ?PreparedStatementConditionBuilder &$searchIndexConditions = null, @@ -107,16 +85,12 @@ public function getOuterSQLQuery( return ''; } - /** - * @inheritDoc - */ + #[\Override] public function setLocation() { } - /** - * @inheritDoc - */ + #[\Override] public function getActiveMenuItem() { return ''; diff --git a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php index 7cebe4ee3c2..68aef239c13 100644 --- a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php +++ b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php @@ -31,9 +31,7 @@ class ArticleSearch extends AbstractSearchProvider */ private $messageCache = []; - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs, ?array $additionalData = null): void { $list = new SearchResultArticleContentList(); @@ -44,57 +42,43 @@ public function cacheObjects(array $objectIDs, ?array $additionalData = null): v } } - /** - * @inheritDoc - */ + #[\Override] public function getObject(int $objectID): ?ISearchResultObject { return $this->messageCache[$objectID] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function getTableName(): string { return 'wcf1_article_content'; } - /** - * @inheritDoc - */ + #[\Override] public function getIDFieldName(): string { return $this->getTableName() . '.articleContentID'; } - /** - * @inheritDoc - */ + #[\Override] public function getSubjectFieldName(): string { return $this->getTableName() . '.title'; } - /** - * @inheritDoc - */ + #[\Override] public function getUsernameFieldName(): string { return 'wcf1_article.username'; } - /** - * @inheritDoc - */ + #[\Override] public function getTimeFieldName(): string { return 'wcf1_article.time'; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionBuilder(array $parameters): ?PreparedStatementConditionBuilder { if (!empty($parameters['articleCategoryID'])) { @@ -141,9 +125,7 @@ private function getArticleCategoryIDs(int $categoryID): array return $categoryIDs; } - /** - * @inheritDoc - */ + #[\Override] public function getJoins(): string { return ' @@ -151,33 +133,25 @@ public function getJoins(): string ON wcf1_article.articleID = ' . $this->getTableName() . '.articleID'; } - /** - * @inheritDoc - */ + #[\Override] public function getFormTemplateName(): string { return 'searchArticle'; } - /** - * @inheritDoc - */ + #[\Override] public function getAdditionalData(): ?array { return ['articleCategoryID' => $this->articleCategoryID]; } - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(): bool { return MODULE_ARTICLE && SEARCH_ENABLE_ARTICLES; } - /** - * @inheritDoc - */ + #[\Override] public function assignVariables(): void { WCF::getTPL()->assign([ diff --git a/wcfsetup/install/files/lib/system/search/IContextAwareSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/IContextAwareSearchEngine.class.php index 6b371cc8e91..696bb44aa7e 100644 --- a/wcfsetup/install/files/lib/system/search/IContextAwareSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/IContextAwareSearchEngine.class.php @@ -23,6 +23,7 @@ interface IContextAwareSearchEngine extends ISearchEngine * * @return string */ + #[\Override] public function getConditionBuilderClassName(); /** diff --git a/wcfsetup/install/files/lib/system/search/PageSearch.class.php b/wcfsetup/install/files/lib/system/search/PageSearch.class.php index 7ff26761edd..3218a1979f4 100644 --- a/wcfsetup/install/files/lib/system/search/PageSearch.class.php +++ b/wcfsetup/install/files/lib/system/search/PageSearch.class.php @@ -25,9 +25,7 @@ class PageSearch extends AbstractSearchProvider */ private $messageCache = []; - /** - * @inheritDoc - */ + #[\Override] public function cacheObjects(array $objectIDs, ?array $additionalData = null): void { $list = new SearchResultPageContentList(); @@ -38,57 +36,43 @@ public function cacheObjects(array $objectIDs, ?array $additionalData = null): v } } - /** - * @inheritDoc - */ + #[\Override] public function getObject(int $objectID): ?ISearchResultObject { return $this->messageCache[$objectID] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function getTableName(): string { return 'wcf1_page_content'; } - /** - * @inheritDoc - */ + #[\Override] public function getIDFieldName(): string { return $this->getTableName() . '.pageContentID'; } - /** - * @inheritDoc - */ + #[\Override] public function getSubjectFieldName(): string { return $this->getTableName() . '.title'; } - /** - * @inheritDoc - */ + #[\Override] public function getUsernameFieldName(): string { return "''"; } - /** - * @inheritDoc - */ + #[\Override] public function getTimeFieldName(): string { return 'wcf1_page_content.pageContentID'; } - /** - * @inheritDoc - */ + #[\Override] public function getConditionBuilder(array $parameters): ?PreparedStatementConditionBuilder { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -142,9 +126,7 @@ private function initAclCondition(PreparedStatementConditionBuilder $conditionBu ]); } - /** - * @inheritDoc - */ + #[\Override] public function getJoins(): string { return ' @@ -152,9 +134,7 @@ public function getJoins(): string ON wcf1_page.pageID = ' . $this->getTableName() . '.pageID'; } - /** - * @inheritDoc - */ + #[\Override] public function isAccessible(): bool { return !!SEARCH_ENABLE_PAGES; diff --git a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php index 1b80b3d054d..1f65d5caa99 100644 --- a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php @@ -35,9 +35,7 @@ class SearchEngine extends SingletonFactory implements IContextAwareSearchEngine */ protected $searchEngine; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types @@ -94,9 +92,7 @@ protected function getSearchEngine() return $this->searchEngine; } - /** - * @inheritDoc - */ + #[\Override] public function search( string $q, array $objectTypes, @@ -110,9 +106,7 @@ public function search( ->search($q, $objectTypes, $subjectOnly, $searchIndexCondition, $additionalConditions, $orderBy, $limit); } - /** - * @inheritDoc - */ + #[\Override] public function searchWithContext( string $q, array $objectTypes, @@ -148,9 +142,7 @@ public function searchWithContext( ); } - /** - * @inheritDoc - */ + #[\Override] public function getInnerJoin( string $objectTypeName, string $q, @@ -168,9 +160,7 @@ public function getInnerJoin( ->getInnerJoin($objectTypeName, $q, $subjectOnly, $searchIndexCondition, $orderBy, $limit); } - /** - * @inheritDoc - */ + #[\Override] public function getInnerJoinWithContext( string $objectTypeName, string $q, @@ -208,17 +198,13 @@ public function getInnerJoinWithContext( ); } - /** - * @inheritDoc - */ + #[\Override] public function getConditionBuilderClassName() { return $this->getSearchEngine()->getConditionBuilderClassName(); } - /** - * @inheritDoc - */ + #[\Override] public function removeSpecialCharacters(string $string) { return $this->getSearchEngine()->removeSpecialCharacters($string); diff --git a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php index eabd879b420..a0300cb6a5a 100644 --- a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php @@ -37,9 +37,7 @@ class SearchIndexManager extends SingletonFactory implements IContextAwareSearch */ protected $searchIndexManager; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types @@ -96,9 +94,7 @@ protected function getSearchIndexManager(): ISearchIndexManager return $this->searchIndexManager; } - /** - * @inheritDoc - */ + #[\Override] public function set( string $objectType, int $objectID, @@ -127,9 +123,9 @@ public function set( } /** - * @inheritDoc * @since 6.0 */ + #[\Override] public function setWithContext( string $objectType, int $objectID, @@ -176,41 +172,31 @@ public function setWithContext( } } - /** - * @inheritDoc - */ + #[\Override] public function delete(string $objectType, array $objectIDs): void { $this->getSearchIndexManager()->delete($objectType, $objectIDs); } - /** - * @inheritDoc - */ + #[\Override] public function reset(string $objectType): void { $this->getSearchIndexManager()->reset($objectType); } - /** - * @inheritDoc - */ + #[\Override] public function createSearchIndices(): void { $this->getSearchIndexManager()->createSearchIndices(); } - /** - * @inheritDoc - */ + #[\Override] public function beginBulkOperation(): void { $this->getSearchIndexManager()->beginBulkOperation(); } - /** - * @inheritDoc - */ + #[\Override] public function commitBulkOperation(): void { $this->getSearchIndexManager()->commitBulkOperation(); diff --git a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php index d56d4e0454d..f12fcc15934 100644 --- a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php @@ -29,9 +29,7 @@ class SearchResultTextParser extends SingletonFactory */ protected $searchQuery = ''; - /** - * @inheritDoc - */ + #[\Override] protected function init() { if (isset($_GET['highlight'])) { diff --git a/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php b/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php index 8cfdaf626c1..c2cdbc09135 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php @@ -29,9 +29,7 @@ class ACPSearchHandler extends SingletonFactory */ protected $cache; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = ACPSearchProviderCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResult.class.php b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResult.class.php index d988596a992..10f308dff26 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResult.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResult.class.php @@ -71,9 +71,7 @@ public function getSubtitle() return $this->subtitle; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getTitle(); diff --git a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php index 411b552d28a..3878c2b458a 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php @@ -101,57 +101,43 @@ public function getTitle(): string return $this->title; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->title; } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->results); } - /** - * @inheritDoc - */ + #[\Override] public function current(): ACPSearchResult { return $this->results[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function key(): int { return $this->index; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->results[$this->index]); diff --git a/wcfsetup/install/files/lib/system/search/acp/ArticleACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/ArticleACPSearchResultProvider.class.php index 7319c5c3f7a..fae9d8b9aef 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ArticleACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ArticleACPSearchResultProvider.class.php @@ -15,9 +15,7 @@ */ class ArticleACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.content.article.canManageArticle')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php index 2d4a67265c2..180c40a93a7 100644 --- a/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php @@ -15,9 +15,7 @@ */ class BoxACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.content.cms.canManageBox')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php index 1b42cdd1e86..4b6b6dc4164 100644 --- a/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php @@ -15,9 +15,7 @@ */ class MenuItemACPSearchResultProvider extends AbstractACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { $results = []; diff --git a/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php index 94c31233a77..addc2e2b489 100644 --- a/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php @@ -24,9 +24,7 @@ class OptionACPSearchResultProvider extends AbstractCategorizedACPSearchResultPr */ protected $listClassName = OptionCategoryList::class; - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.configuration.canEditOption')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/PackageACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/PackageACPSearchResultProvider.class.php index 261cb430952..72cb095687f 100644 --- a/wcfsetup/install/files/lib/system/search/acp/PackageACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/PackageACPSearchResultProvider.class.php @@ -15,9 +15,7 @@ */ class PackageACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if ( diff --git a/wcfsetup/install/files/lib/system/search/acp/PageACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/PageACPSearchResultProvider.class.php index af000bdaa48..152f8f71698 100644 --- a/wcfsetup/install/files/lib/system/search/acp/PageACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/PageACPSearchResultProvider.class.php @@ -15,9 +15,7 @@ */ class PageACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.content.cms.canManagePage')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/TrophyACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/TrophyACPSearchResultProvider.class.php index 25d8d2da47b..f167448435b 100644 --- a/wcfsetup/install/files/lib/system/search/acp/TrophyACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/TrophyACPSearchResultProvider.class.php @@ -16,9 +16,7 @@ */ class TrophyACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!MODULE_TROPHY || !WCF::getSession()->getPermission('admin.trophy.canManageTrophy')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/UserACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/UserACPSearchResultProvider.class.php index 07ce6e53e5d..02e6d4fd35d 100644 --- a/wcfsetup/install/files/lib/system/search/acp/UserACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/UserACPSearchResultProvider.class.php @@ -17,9 +17,7 @@ */ class UserACPSearchResultProvider implements IACPSearchResultProvider { - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.user.canEditUser')) { diff --git a/wcfsetup/install/files/lib/system/search/acp/UserGroupOptionACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/UserGroupOptionACPSearchResultProvider.class.php index b4e2120775a..b472d2ccaa2 100644 --- a/wcfsetup/install/files/lib/system/search/acp/UserGroupOptionACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/UserGroupOptionACPSearchResultProvider.class.php @@ -36,9 +36,7 @@ class UserGroupOptionACPSearchResultProvider extends AbstractCategorizedACPSearc 'admin.management.canImportData', ]; - /** - * @inheritDoc - */ + #[\Override] public function search(string $query) { if (!WCF::getSession()->getPermission('admin.user.canEditGroup')) { diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php index c33b2c0afff..f08a6cafc23 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php @@ -35,9 +35,7 @@ class MysqlSearchEngine extends AbstractSearchEngine */ protected $specialCharacters = ['(', ')', '@', '+', '-', '"', '<', '>', '~', '*']; - /** - * @inheritDoc - */ + #[\Override] public function search( string $q, array $objectTypes, @@ -130,9 +128,7 @@ public function search( return $messages; } - /** - * @inheritDoc - */ + #[\Override] public function getInnerJoin( string $objectTypeName, string $q, diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php index d60a13be101..a793e6a2b66 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php @@ -18,9 +18,7 @@ */ class MysqlSearchIndexManager extends AbstractSearchIndexManager { - /** - * @inheritDoc - */ + #[\Override] public function set( string $objectType, int $objectID, @@ -44,9 +42,7 @@ public function set( $statement->execute([$objectID, $subject, $message, $time, $userID, $username, $languageID, $metaData]); } - /** - * @inheritDoc - */ + #[\Override] public function delete(string $objectType, array $objectIDs) { $itemsPerLoop = 1000; @@ -68,9 +64,7 @@ public function delete(string $objectType, array $objectIDs) WCF::getDB()->commitTransaction(); } - /** - * @inheritDoc - */ + #[\Override] public function reset(string $objectType) { $this->createSearchIndex(SearchIndexManager::getInstance()->getObjectType($objectType)); @@ -80,9 +74,7 @@ public function reset(string $objectType) $statement->execute(); } - /** - * @inheritDoc - */ + #[\Override] protected function createSearchIndex(ObjectType $objectType) { $tableName = SearchIndexManager::getTableName($objectType); diff --git a/wcfsetup/install/files/lib/system/session/AbstractSessionHandler.class.php b/wcfsetup/install/files/lib/system/session/AbstractSessionHandler.class.php index c8dc0f63509..9c08a56d9b0 100644 --- a/wcfsetup/install/files/lib/system/session/AbstractSessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/AbstractSessionHandler.class.php @@ -19,9 +19,7 @@ abstract class AbstractSessionHandler extends SingletonFactory */ protected $sessionHandler; - /** - * @inheritDoc - */ + #[\Override] final protected function init() { $this->sessionHandler = SessionHandler::getInstance(); diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index bd74a372bc2..c6fbbbc567f 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -164,9 +164,7 @@ public function __get(string $key) } } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->isACP = (\class_exists(WCFACP::class, false) || !PACKAGE_ID); diff --git a/wcfsetup/install/files/lib/system/setup/SetupFileHandler.class.php b/wcfsetup/install/files/lib/system/setup/SetupFileHandler.class.php index ee9e69cda44..7de28e8fdba 100644 --- a/wcfsetup/install/files/lib/system/setup/SetupFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/setup/SetupFileHandler.class.php @@ -13,17 +13,13 @@ */ class SetupFileHandler implements IFileHandler { - /** - * @inheritDoc - */ + #[\Override] public function checkFiles(array $files) { /* does nothing */ } - /** - * @inheritDoc - */ + #[\Override] public function logFiles(array $files) { $acpTemplateInserts = $fileInserts = []; diff --git a/wcfsetup/install/files/lib/system/sitemap/object/AbstractSitemapObjectObjectType.class.php b/wcfsetup/install/files/lib/system/sitemap/object/AbstractSitemapObjectObjectType.class.php index b69baa5b836..df33cd10ad8 100755 --- a/wcfsetup/install/files/lib/system/sitemap/object/AbstractSitemapObjectObjectType.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/AbstractSitemapObjectObjectType.class.php @@ -19,17 +19,13 @@ */ abstract class AbstractSitemapObjectObjectType implements ISitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectListClass() { return $this->getObjectClass() . 'List'; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $className = $this->getObjectListClass(); @@ -37,25 +33,19 @@ public function getObjectList() return new $className(); } - /** - * @inheritDoc - */ + #[\Override] public function getLastModifiedColumn() { return null; } - /** - * @inheritDoc - */ + #[\Override] public function canView(DatabaseObject $object) { return true; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailableType() { return true; diff --git a/wcfsetup/install/files/lib/system/sitemap/object/ArticleCategorySitemapObject.class.php b/wcfsetup/install/files/lib/system/sitemap/object/ArticleCategorySitemapObject.class.php index da54f7c8989..66082b76f74 100644 --- a/wcfsetup/install/files/lib/system/sitemap/object/ArticleCategorySitemapObject.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/ArticleCategorySitemapObject.class.php @@ -20,18 +20,16 @@ */ class ArticleCategorySitemapObject extends AbstractSitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectClass() { throw new \LogicException('Unreachable'); } /** - * @inheritDoc * @return CategoryList */ + #[\Override] public function getObjectList() { $categoryList = new CategoryList(); @@ -44,18 +42,14 @@ public function getObjectList() return $categoryList; } - /** - * @inheritDoc - */ + #[\Override] public function canView(DatabaseObject $object) { /** @var ArticleCategory $object */ return $object->isAccessible(); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailableType() { if (!MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/sitemap/object/ArticleSitemapObject.class.php b/wcfsetup/install/files/lib/system/sitemap/object/ArticleSitemapObject.class.php index 8d8ad0ee354..a1c3b382d13 100644 --- a/wcfsetup/install/files/lib/system/sitemap/object/ArticleSitemapObject.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/ArticleSitemapObject.class.php @@ -19,25 +19,19 @@ */ class ArticleSitemapObject extends AbstractSitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectClass() { return ArticleContent::class; } - /** - * @inheritDoc - */ + #[\Override] public function canView(DatabaseObject $object) { return $object->getArticle()->canRead(); } - /** - * @inheritDoc - */ + #[\Override] public function isAvailableType() { if (!MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/sitemap/object/MultilingualPageSitemapObject.class.php b/wcfsetup/install/files/lib/system/sitemap/object/MultilingualPageSitemapObject.class.php index 24f42cf3289..e7c08feb577 100644 --- a/wcfsetup/install/files/lib/system/sitemap/object/MultilingualPageSitemapObject.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/MultilingualPageSitemapObject.class.php @@ -23,17 +23,13 @@ */ class MultilingualPageSitemapObject extends AbstractSitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectClass() { return PageContent::class; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $pageList = parent::getObjectList(); @@ -53,9 +49,7 @@ public function getObjectList() return $pageList; } - /** - * @inheritDoc - */ + #[\Override] public function canView(DatabaseObject $object) { $page = new Page($object->pageID); diff --git a/wcfsetup/install/files/lib/system/sitemap/object/SimplePageSitemapObject.class.php b/wcfsetup/install/files/lib/system/sitemap/object/SimplePageSitemapObject.class.php index dd56af71d69..6d0c54eab24 100644 --- a/wcfsetup/install/files/lib/system/sitemap/object/SimplePageSitemapObject.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/SimplePageSitemapObject.class.php @@ -21,17 +21,13 @@ */ class SimplePageSitemapObject extends AbstractSitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectClass() { return Page::class; } - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { $pageList = parent::getObjectList(); @@ -41,9 +37,7 @@ public function getObjectList() return $pageList; } - /** - * @inheritDoc - */ + #[\Override] public function canView(DatabaseObject $object) { if ($object->requireObjectID) { diff --git a/wcfsetup/install/files/lib/system/sitemap/object/UserSitemapObject.class.php b/wcfsetup/install/files/lib/system/sitemap/object/UserSitemapObject.class.php index eb15542043f..d7b6bc9420c 100755 --- a/wcfsetup/install/files/lib/system/sitemap/object/UserSitemapObject.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/UserSitemapObject.class.php @@ -19,25 +19,19 @@ */ class UserSitemapObject extends AbstractSitemapObjectObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getObjectClass() { return User::class; } - /** - * @inheritDoc - */ + #[\Override] public function getLastModifiedColumn() { return 'lastActivityTime'; } - /** - * @inheritDoc - */ + #[\Override] public function isAvailableType() { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/system/stat/AbstractCommentStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/AbstractCommentStatDailyHandler.class.php index 77cd4fdc8fb..d9ac8cba6de 100644 --- a/wcfsetup/install/files/lib/system/stat/AbstractCommentStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/AbstractCommentStatDailyHandler.class.php @@ -22,9 +22,7 @@ abstract class AbstractCommentStatDailyHandler extends AbstractStatDailyHandler */ protected $objectType = ''; - /** - * @inheritDoc - */ + #[\Override] public function getData(int $date) { $objectTypeID = CommentHandler::getInstance()->getObjectTypeID($this->objectType); @@ -85,9 +83,9 @@ public function getData(int $date) } /** - * @inheritDoc * @since 3.1 */ + #[\Override] protected function addConditions(PreparedStatementConditionBuilder $conditionBuilder) { throw new \BadMethodCallException(__CLASS__ . " does not support addConditions()."); diff --git a/wcfsetup/install/files/lib/system/stat/AbstractDiskUsageStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/AbstractDiskUsageStatDailyHandler.class.php index 37286661e8a..db001feed7b 100644 --- a/wcfsetup/install/files/lib/system/stat/AbstractDiskUsageStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/AbstractDiskUsageStatDailyHandler.class.php @@ -21,9 +21,7 @@ abstract class AbstractDiskUsageStatDailyHandler extends AbstractStatDailyHandle */ protected $columnName = 'filesize'; - /** - * @inheritDoc - */ + #[\Override] protected function getCounter($date, $tableName, $dateColumnName) { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -40,9 +38,7 @@ protected function getCounter($date, $tableName, $dateColumnName) return $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] protected function getTotal($date, $tableName, $dateColumnName) { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -59,9 +55,7 @@ protected function getTotal($date, $tableName, $dateColumnName) return $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedCounter(int $counter) { return \round($counter / 1000, 2); // return mb diff --git a/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php index e07180d503f..ccba4083820 100644 --- a/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php @@ -62,9 +62,7 @@ protected function getTotal($date, $tableName, $dateColumnName) return $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedCounter(int $counter) { return $counter; diff --git a/wcfsetup/install/files/lib/system/stat/AttachmentStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/AttachmentStatDailyHandler.class.php index 9408e3d8937..e45fd6a5190 100644 --- a/wcfsetup/install/files/lib/system/stat/AttachmentStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/AttachmentStatDailyHandler.class.php @@ -11,9 +11,7 @@ */ class AttachmentStatDailyHandler extends AbstractStatDailyHandler { - /** - * @inheritDoc - */ + #[\Override] public function getData(int $date) { return [ diff --git a/wcfsetup/install/files/lib/system/stat/LikeStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/LikeStatDailyHandler.class.php index a3e451e6eb9..c2cd150c8e5 100644 --- a/wcfsetup/install/files/lib/system/stat/LikeStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/LikeStatDailyHandler.class.php @@ -13,9 +13,7 @@ */ class LikeStatDailyHandler extends AbstractStatDailyHandler { - /** - * @inheritDoc - */ + #[\Override] public function getData(int $date) { $sql = "SELECT COUNT(*) diff --git a/wcfsetup/install/files/lib/system/stat/UserStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/UserStatDailyHandler.class.php index 2a1e827cb34..95caa161df2 100644 --- a/wcfsetup/install/files/lib/system/stat/UserStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/UserStatDailyHandler.class.php @@ -11,9 +11,7 @@ */ class UserStatDailyHandler extends AbstractStatDailyHandler { - /** - * @inheritDoc - */ + #[\Override] public function getData(int $date) { return [ diff --git a/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php b/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php index b37d3fa1650..c75bbbaae93 100644 --- a/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php +++ b/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php @@ -37,6 +37,7 @@ private function __construct( * Serializes the icon name and the use of the solid style into a * semicolon separated string that is understood by `fromString`. */ + #[\Override] public function __toString(): string { return \sprintf( @@ -46,9 +47,7 @@ public function __toString(): string ); } - /** - * @inheritDoc - */ + #[\Override] public function toHtml(int $size = 16): string { if (!\in_array($size, self::SIZES)) { diff --git a/wcfsetup/install/files/lib/system/style/FontAwesomeIconBrand.class.php b/wcfsetup/install/files/lib/system/style/FontAwesomeIconBrand.class.php index 9e2205c9bc7..8244c224c57 100644 --- a/wcfsetup/install/files/lib/system/style/FontAwesomeIconBrand.class.php +++ b/wcfsetup/install/files/lib/system/style/FontAwesomeIconBrand.class.php @@ -23,9 +23,7 @@ private function __construct( self::validateName($name); } - /** - * @inheritDoc - */ + #[\Override] public function toHtml(int $size = 16): string { if (!\in_array($size, self::SIZES)) { diff --git a/wcfsetup/install/files/lib/system/style/FontManager.class.php b/wcfsetup/install/files/lib/system/style/FontManager.class.php index aa991942155..6351212e183 100644 --- a/wcfsetup/install/files/lib/system/style/FontManager.class.php +++ b/wcfsetup/install/files/lib/system/style/FontManager.class.php @@ -31,9 +31,7 @@ final class FontManager extends SingletonFactory private TreeMapper $mapper; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->http = HttpFactory::makeClient([ diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index 9363dc02656..6257095ddea 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -32,9 +32,7 @@ class StyleHandler extends SingletonFactory */ protected $style; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // load cache diff --git a/wcfsetup/install/files/lib/system/tagging/AbstractCombinedTaggable.class.php b/wcfsetup/install/files/lib/system/tagging/AbstractCombinedTaggable.class.php index dff1e83f46e..c934bd8e945 100644 --- a/wcfsetup/install/files/lib/system/tagging/AbstractCombinedTaggable.class.php +++ b/wcfsetup/install/files/lib/system/tagging/AbstractCombinedTaggable.class.php @@ -20,9 +20,7 @@ */ abstract class AbstractCombinedTaggable extends AbstractTaggable implements ICombinedTaggable { - /** - * @inheritDoc - */ + #[\Override] public function getObjectList(Tag $tag) { return $this->getObjectListFor([$tag]); diff --git a/wcfsetup/install/files/lib/system/tagging/AbstractTaggable.class.php b/wcfsetup/install/files/lib/system/tagging/AbstractTaggable.class.php index 7d091cc2791..dd231aa75bf 100644 --- a/wcfsetup/install/files/lib/system/tagging/AbstractTaggable.class.php +++ b/wcfsetup/install/files/lib/system/tagging/AbstractTaggable.class.php @@ -18,9 +18,7 @@ */ abstract class AbstractTaggable extends AbstractObjectTypeProcessor implements ITaggable { - /** - * @inheritDoc - */ + #[\Override] public function getApplication() { $classParts = \explode('\\', static::class); diff --git a/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php b/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php index 67d8781cf7c..c5617d6b7df 100644 --- a/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php @@ -40,6 +40,7 @@ public function __construct($objectType, array $languageIDs = []) * * @return void */ + #[\Override] protected function loadCache() { $this->tags = (new TagCloudCache($this->objectTypeIDs, $this->languageIDs))->getCache(); diff --git a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php index 983e1dac828..87e9e13c36f 100644 --- a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php @@ -18,9 +18,7 @@ class ACPTemplateEngine extends TemplateEngine */ protected $environment = 'admin'; - /** - * @inheritDoc - */ + #[\Override] protected function init() { parent::init(); @@ -44,9 +42,7 @@ public static function deleteCompiledACPTemplates($compileDir = '') self::deleteCompiledTemplates($compileDir); } - /** - * @inheritDoc - */ + #[\Override] public function getCompiledFilename($templateName, $application) { $abbreviation = 'wcf'; @@ -63,14 +59,13 @@ public function getCompiledFilename($templateName, $application) * @param int $templateGroupID * @throws \BadMethodCallException */ + #[\Override] public function setTemplateGroupID($templateGroupID) { throw new \BadMethodCallException("You may not change the template group of the acp template engine"); } - /** - * @inheritDoc - */ + #[\Override] public function getTemplateListenerCode($templateName, $eventName) { // skip template listeners within WCFSetup diff --git a/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php index 0aeab6e3fcf..3f9cc45482d 100644 --- a/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php @@ -18,9 +18,7 @@ class EmailTemplateEngine extends TemplateEngine */ protected $environment = 'email'; - /** - * @inheritDoc - */ + #[\Override] public function getTemplateGroupID() { static $initialized = false; @@ -45,6 +43,7 @@ public function getTemplateGroupID() * @param int $templateGroupID * @throws \BadMethodCallException */ + #[\Override] public function setTemplateGroupID($templateGroupID) { throw new \BadMethodCallException("You may not change the template group of the email template engine"); diff --git a/wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php index 354fb9abbc3..8b60943dffb 100644 --- a/wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php @@ -11,33 +11,25 @@ */ class SetupTemplateEngine extends TemplateEngine { - /** - * @inheritDoc - */ + #[\Override] protected function loadTemplateGroupCache() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function getSourceFilename($templateName, $application) { return $this->compileDir . 'setup/template/' . $templateName . '.tpl'; } - /** - * @inheritDoc - */ + #[\Override] public function getCompiledFilename($templateName, $application) { return $this->compileDir . 'setup/template/compiled/' . $this->languageID . '_' . $templateName . '.php'; } - /** - * @inheritDoc - */ + #[\Override] public function getMetaDataFilename($templateName) { return $this->compileDir . 'setup/template/compiled/' . $this->languageID . '_' . $templateName . '.meta.php'; diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index 368cbaecb59..305d648ca14 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -257,9 +257,7 @@ class TemplateEngine extends SingletonFactory private int $sharedTemplateGroupID; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->templatePaths = ['wcf' => WCF_DIR . 'templates/']; diff --git a/wcfsetup/install/files/lib/system/template/plugin/AnchorAttributesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AnchorAttributesFunctionTemplatePlugin.class.php index b3e3e7af0a5..1077b75f27d 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AnchorAttributesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AnchorAttributesFunctionTemplatePlugin.class.php @@ -27,9 +27,7 @@ */ class AnchorAttributesFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (empty($tagArgs['url'])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php index 9bc2db67923..8fd932e8105 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php @@ -40,9 +40,7 @@ */ class AnchorFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $link = $content = $object = null; diff --git a/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php index bfdcd309cd9..fc1e45ef817 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class AppendCompilerTemplatePlugin implements ICompilerTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { if (!isset($tagArgs['var'])) { @@ -44,9 +42,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) return "append(" . $tagArgs['var'] . ", " . $tagArgs['value'] . "); ?>"; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { throw new SystemException( diff --git a/wcfsetup/install/files/lib/system/template/plugin/AssignCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AssignCompilerTemplatePlugin.class.php index c7395b7adfd..b015a112a63 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AssignCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AssignCompilerTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class AssignCompilerTemplatePlugin implements ICompilerTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { if (!isset($tagArgs['var'])) { @@ -44,9 +42,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) return "assign(" . $tagArgs['var'] . ", " . $tagArgs['value'] . "); ?>"; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { throw new SystemException( diff --git a/wcfsetup/install/files/lib/system/template/plugin/ConcatModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/ConcatModifierTemplatePlugin.class.php index 26a681f427c..66b11edfb35 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/ConcatModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/ConcatModifierTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class ConcatModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (\count($tagArgs) < 2) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/CounterFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/CounterFunctionTemplatePlugin.class.php index 2ebe1d78cd4..ce055526ec6 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/CounterFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/CounterFunctionTemplatePlugin.class.php @@ -23,9 +23,7 @@ class CounterFunctionTemplatePlugin implements IFunctionTemplatePlugin */ protected $counters = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (!isset($tagArgs['name'])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenFunctionTemplatePlugin.class.php index d0c01d25c0b..5c5d2eb0f7d 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenFunctionTemplatePlugin.class.php @@ -20,9 +20,7 @@ */ class CsrfTokenFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $token = WCF::getSession()->getSecurityToken(); diff --git a/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenPrefilterTemplatePlugin.class.php index 71c3b31cd17..f1f7f86e34e 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/CsrfTokenPrefilterTemplatePlugin.class.php @@ -13,9 +13,7 @@ */ class CsrfTokenPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $getToken = '$__wcf->session->getSecurityToken()'; diff --git a/wcfsetup/install/files/lib/system/template/plugin/CurrencyModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/CurrencyModifierTemplatePlugin.class.php index 2972c862a87..9a47a50e23a 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/CurrencyModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/CurrencyModifierTemplatePlugin.class.php @@ -21,9 +21,7 @@ */ class CurrencyModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $decimals = \intval($tagArgs[1] ?? 2); diff --git a/wcfsetup/install/files/lib/system/template/plugin/CycleFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/CycleFunctionTemplatePlugin.class.php index b2541b06243..ae948d30cd7 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/CycleFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/CycleFunctionTemplatePlugin.class.php @@ -23,9 +23,7 @@ class CycleFunctionTemplatePlugin implements IFunctionTemplatePlugin */ protected $cycles = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // get params diff --git a/wcfsetup/install/files/lib/system/template/plugin/DateDiffModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/DateDiffModifierTemplatePlugin.class.php index 385642aad72..40ba6283530 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/DateDiffModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/DateDiffModifierTemplatePlugin.class.php @@ -21,9 +21,7 @@ */ class DateDiffModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (!isset($tagArgs[1])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/DateIntervalFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/DateIntervalFunctionTemplatePlugin.class.php index 5bed5d54d76..904f0f1f2b8 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/DateIntervalFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/DateIntervalFunctionTemplatePlugin.class.php @@ -30,9 +30,7 @@ */ class DateIntervalFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // read start and end time, each defaulting to current time diff --git a/wcfsetup/install/files/lib/system/template/plugin/DateModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/DateModifierTemplatePlugin.class.php index 65fb5b59ec7..10bb6578499 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/DateModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/DateModifierTemplatePlugin.class.php @@ -24,9 +24,7 @@ class DateModifierTemplatePlugin implements IModifierTemplatePlugin /** @var array */ private array $dateFormatter = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $value = $tagArgs[0]; diff --git a/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php index cd86989110c..bd9d41fec6f 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php @@ -23,9 +23,7 @@ class EmbeddedObjectBlockTemplatePlugin implements IBlockTemplatePlugin */ protected $counter = 0; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, string $blockContent, TemplateEngine $tplObj) { $data = \unserialize(\base64_decode($blockContent)); @@ -33,17 +31,13 @@ public function execute(array $tagArgs, string $blockContent, TemplateEngine $tp return HtmlSimpleParser::getInstance()->replaceTag($data); } - /** - * @inheritDoc - */ + #[\Override] public function init(array $tagArgs, TemplateEngine $tplObj) { $this->counter = 0; } - /** - * @inheritDoc - */ + #[\Override] public function next(TemplateEngine $tplObj) { if ($this->counter == 0) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/EncodeJSModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/EncodeJSModifierTemplatePlugin.class.php index c3ac7a0c3b0..9ece147320c 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/EncodeJSModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/EncodeJSModifierTemplatePlugin.class.php @@ -19,9 +19,7 @@ */ class EncodeJSModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return StringUtil::encodeJS($tagArgs[0]); diff --git a/wcfsetup/install/files/lib/system/template/plugin/EscapeCDATAModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/EscapeCDATAModifierTemplatePlugin.class.php index bea3fe0a4e4..e5b2cc03f15 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/EscapeCDATAModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/EscapeCDATAModifierTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class EscapeCDATAModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return StringUtil::escapeCDATA($tagArgs[0]); diff --git a/wcfsetup/install/files/lib/system/template/plugin/EventPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/EventPrefilterTemplatePlugin.class.php index d82d6881b4a..45b85651c12 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/EventPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/EventPrefilterTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class EventPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/FilesizeBinaryModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/FilesizeBinaryModifierTemplatePlugin.class.php index d9807e42394..54dea554570 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/FilesizeBinaryModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/FilesizeBinaryModifierTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class FilesizeBinaryModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return FileUtil::formatFilesizeBinary($tagArgs[0]); diff --git a/wcfsetup/install/files/lib/system/template/plugin/FilesizeModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/FilesizeModifierTemplatePlugin.class.php index 391c35b82d7..4e98eee57b6 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/FilesizeModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/FilesizeModifierTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class FilesizeModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return FileUtil::formatFilesize($tagArgs[0]); diff --git a/wcfsetup/install/files/lib/system/template/plugin/HascontentPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/HascontentPrefilterTemplatePlugin.class.php index 16ef1e24845..282273d5729 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/HascontentPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/HascontentPrefilterTemplatePlugin.class.php @@ -26,9 +26,7 @@ */ class HascontentPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php index 76ffd23023b..76f3ff58153 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php @@ -27,9 +27,7 @@ class HtmlCheckboxesFunctionTemplatePlugin implements IFunctionTemplatePlugin */ protected $disableEncoding = false; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // get options diff --git a/wcfsetup/install/files/lib/system/template/plugin/HtmlOptionsFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/HtmlOptionsFunctionTemplatePlugin.class.php index a67372d7410..50592a17663 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/HtmlOptionsFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/HtmlOptionsFunctionTemplatePlugin.class.php @@ -31,9 +31,7 @@ class HtmlOptionsFunctionTemplatePlugin extends HtmlCheckboxesFunctionTemplatePl */ protected $selected = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (isset($tagArgs['object']) && ($tagArgs['object'] instanceof DatabaseObjectList)) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/IconFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IconFunctionTemplatePlugin.class.php index 591982b1607..00f18e67817 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IconFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IconFunctionTemplatePlugin.class.php @@ -27,9 +27,7 @@ final class IconFunctionTemplatePlugin implements IFunctionTemplatePlugin private const TYPES = ['brand', 'solid']; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $size = \intval($tagArgs['size'] ?? 16); diff --git a/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php index ea1cd106e52..b6c29d1a6e5 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ final class IconPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/ImplodeCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/ImplodeCompilerTemplatePlugin.class.php index 855047e482a..b99f87d6ff6 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/ImplodeCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/ImplodeCompilerTemplatePlugin.class.php @@ -24,9 +24,7 @@ class ImplodeCompilerTemplatePlugin implements ICompilerTemplatePlugin */ protected $tagStack = []; - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { $compiler->pushTag('implode'); @@ -69,9 +67,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) return $phpCode; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('implode'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/IpSearchModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IpSearchModifierTemplatePlugin.class.php index fc42ab8ddab..964922c5d77 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IpSearchModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IpSearchModifierTemplatePlugin.class.php @@ -28,9 +28,7 @@ class IpSearchModifierTemplatePlugin implements IModifierTemplatePlugin */ const SEARCH_ENGINE_URL_DEFAULT = 'https://www.google.com/search?q=%s'; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $domain = Url::parse(IP_ADDRESS_SEARCH_ENGINE ?: self::SEARCH_ENGINE_URL_DEFAULT)['host']; diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php index 42dfe53c69d..616aa9fb85f 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php @@ -51,9 +51,7 @@ class JsFunctionTemplatePlugin implements IFunctionTemplatePlugin */ protected $includedFiles = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // needed arguments: application and lib/file diff --git a/wcfsetup/install/files/lib/system/template/plugin/JslangCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JslangCompilerTemplatePlugin.class.php index 0219f31528f..bd8282a7915 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JslangCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JslangCompilerTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class JslangCompilerTemplatePlugin implements ICompilerTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { $compiler->pushTag('jslang'); @@ -33,9 +31,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) ?>"; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('jslang'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/JslangPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JslangPrefilterTemplatePlugin.class.php index 619460261e3..d7c19197d23 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JslangPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JslangPrefilterTemplatePlugin.class.php @@ -19,9 +19,7 @@ */ class JslangPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php index d302a99f12c..bdb2f769704 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsonModifierTemplatePlugin.class.php @@ -22,9 +22,7 @@ */ class JsonModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return \json_encode($tagArgs[0], \JSON_THROW_ON_ERROR); diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsphraseFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsphraseFunctionTemplatePlugin.class.php index fb7db073f65..9658d3010a5 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsphraseFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsphraseFunctionTemplatePlugin.class.php @@ -19,9 +19,7 @@ */ final class JsphraseFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { $name = $tagArgs['name'] ?? ''; diff --git a/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php index 991c48d50c9..041d28b309f 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/JsphrasePrefilterTemplatePlugin.class.php @@ -16,9 +16,7 @@ */ final class JsphrasePrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php index e17bf1d837b..88f7baa0c63 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class LangCompilerTemplatePlugin implements ICompilerTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { $compiler->pushTag('lang'); @@ -32,9 +30,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) ?>"; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { $compiler->popTag('lang'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/LangPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LangPrefilterTemplatePlugin.class.php index 9132117e4de..42903a56bed 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LangPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LangPrefilterTemplatePlugin.class.php @@ -21,9 +21,7 @@ */ class LangPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = \preg_quote($compiler->getLeftDelimiter(), '~'); diff --git a/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php index 0b0d9166eb9..a21e2658374 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LanguageModifierTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class LanguageModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if ($tagArgs[0] === null) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php index 2c6afc33b69..ad175bc76e6 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php @@ -24,9 +24,7 @@ class LinkBlockTemplatePlugin implements IBlockTemplatePlugin */ protected $counter = 0; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, string $blockContent, TemplateEngine $tplObj) { if (!\array_key_exists('controller', $tagArgs)) { @@ -66,17 +64,13 @@ public function execute(array $tagArgs, string $blockContent, TemplateEngine $tp )); } - /** - * @inheritDoc - */ + #[\Override] public function init($tagArgs, TemplateEngine $tplObj) { $this->counter = 0; } - /** - * @inheritDoc - */ + #[\Override] public function next(TemplateEngine $tplObj) { if ($this->counter == 0) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/NewlineToBreakModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/NewlineToBreakModifierTemplatePlugin.class.php index 4d8307af2c9..0cf8dc9eb0f 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/NewlineToBreakModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/NewlineToBreakModifierTemplatePlugin.class.php @@ -14,9 +14,7 @@ */ class NewlineToBreakModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return \nl2br(StringUtil::encodeHTML($tagArgs[0]), false); diff --git a/wcfsetup/install/files/lib/system/template/plugin/ObjectActionFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/ObjectActionFunctionTemplatePlugin.class.php index 94f6e3587f1..15efd93c638 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/ObjectActionFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/ObjectActionFunctionTemplatePlugin.class.php @@ -48,9 +48,7 @@ class ObjectActionFunctionTemplatePlugin implements IFunctionTemplatePlugin 'toggle', ]; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (!isset($tagArgs['action'])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php index 3abc8f471e9..0e0cab028ca 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php @@ -43,9 +43,7 @@ class PageBlockTemplatePlugin implements IBlockTemplatePlugin */ protected $counter = 0; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, string $blockContent, TemplateEngine $tplObj) { $pageID = null; @@ -78,17 +76,13 @@ public function execute(array $tagArgs, string $blockContent, TemplateEngine $tp return $link; } - /** - * @inheritDoc - */ + #[\Override] public function init($tagArgs, TemplateEngine $tplObj) { $this->counter = 0; } - /** - * @inheritDoc - */ + #[\Override] public function next(TemplateEngine $tplObj) { if ($this->counter == 0) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php index eb3ed032f33..65d93ab876b 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php @@ -27,9 +27,7 @@ */ final class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // needed params: controller, link, page, pages diff --git a/wcfsetup/install/files/lib/system/template/plugin/PhraseModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PhraseModifierTemplatePlugin.class.php index 88aa4bb2d0c..cae989fbf2f 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PhraseModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PhraseModifierTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class PhraseModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if ($tagArgs[0] === null) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/PlainTimeModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PlainTimeModifierTemplatePlugin.class.php index b1070fdd772..879b61a15de 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PlainTimeModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PlainTimeModifierTemplatePlugin.class.php @@ -20,9 +20,7 @@ */ class PlainTimeModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if ($tagArgs[0] instanceof \DateTimeInterface) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/PluralFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PluralFunctionTemplatePlugin.class.php index 83315e69458..da2ae96121a 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PluralFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PluralFunctionTemplatePlugin.class.php @@ -35,9 +35,7 @@ final class PluralFunctionTemplatePlugin implements IFunctionTemplatePlugin */ private const CATEGORIES = ['zero', 'one', 'two', 'few', 'many', 'other']; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (!isset($tagArgs['value'])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/PrependCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PrependCompilerTemplatePlugin.class.php index fb514066fc5..5f4d871e85e 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PrependCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PrependCompilerTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class PrependCompilerTemplatePlugin implements ICompilerTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { if (!isset($tagArgs['var'])) { @@ -44,9 +42,7 @@ public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) return "prepend(" . $tagArgs['var'] . ", " . $tagArgs['value'] . "); ?>"; } - /** - * @inheritDoc - */ + #[\Override] public function executeEnd(TemplateScriptingCompiler $compiler) { throw new SystemException( diff --git a/wcfsetup/install/files/lib/system/template/plugin/ShortUnitModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/ShortUnitModifierTemplatePlugin.class.php index 899d9a6ae92..31a5eb57cc9 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/ShortUnitModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/ShortUnitModifierTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class ShortUnitModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { return StringUtil::getShortUnit($tagArgs[0]); diff --git a/wcfsetup/install/files/lib/system/template/plugin/SimpleEmbeddedObjectPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/SimpleEmbeddedObjectPrefilterTemplatePlugin.class.php index 083877c149d..a29e62bef3e 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/SimpleEmbeddedObjectPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/SimpleEmbeddedObjectPrefilterTemplatePlugin.class.php @@ -18,9 +18,7 @@ */ class SimpleEmbeddedObjectPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(string $templateName, string $sourceContent, TemplateScriptingCompiler $compiler) { return HtmlSimpleParser::getInstance()->parseTemplate($sourceContent); diff --git a/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php index 0964d1d91ea..0ab4d19b7c7 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php @@ -16,9 +16,7 @@ */ class TableWordwrapModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // values diff --git a/wcfsetup/install/files/lib/system/template/plugin/TimeFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/TimeFunctionTemplatePlugin.class.php index f49ad595fa1..90270649df1 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/TimeFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/TimeFunctionTemplatePlugin.class.php @@ -26,6 +26,7 @@ */ final class TimeFunctionTemplatePlugin implements IFunctionTemplatePlugin { + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj): string { if (!isset($tagArgs['time'])) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/TimeModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/TimeModifierTemplatePlugin.class.php index 8fc2317ebab..62c0639f487 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/TimeModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/TimeModifierTemplatePlugin.class.php @@ -23,9 +23,7 @@ class TimeModifierTemplatePlugin implements IModifierTemplatePlugin /** @var array */ private array $dateFormatter = []; - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if ($tagArgs[0] instanceof \DateTimeInterface) { diff --git a/wcfsetup/install/files/lib/system/template/plugin/TruncateModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/TruncateModifierTemplatePlugin.class.php index b63644dc876..ab044631702 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/TruncateModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/TruncateModifierTemplatePlugin.class.php @@ -17,9 +17,7 @@ */ class TruncateModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { // default values diff --git a/wcfsetup/install/files/lib/system/template/plugin/UserFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/UserFunctionTemplatePlugin.class.php index 6b4fd808a5e..e2ad5f9f05e 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/UserFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/UserFunctionTemplatePlugin.class.php @@ -34,9 +34,7 @@ */ class UserFunctionTemplatePlugin implements IFunctionTemplatePlugin { - /** - * @inheritDoc - */ + #[\Override] public function execute(array $tagArgs, TemplateEngine $tplObj) { if (!isset($tagArgs['object'])) { diff --git a/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php b/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php index 259065e8d90..d943b54fe01 100644 --- a/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php +++ b/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php @@ -32,9 +32,7 @@ class TrophyConditionHandler extends SingletonFactory */ protected $groupedObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes(self::CONDITION_DEFINITION_NAME); diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php index 9b5263ba401..3836da0b337 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php @@ -102,9 +102,7 @@ public function getObjects() return $this->objects; } - /** - * @inheritDoc - */ + #[\Override] public function save(UploadFile $uploadFile) { $data = \array_merge([ diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php index 16d00d8b921..b9153d42beb 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php @@ -47,9 +47,7 @@ public function __construct($maxFilesize, array $fileExtensions) $this->fileExtensionRegex = '/(' . $extensions . ')$/i'; } - /** - * @inheritDoc - */ + #[\Override] public function validate(UploadFile $uploadFile) { if ($uploadFile->getErrorCode() != 0) { diff --git a/wcfsetup/install/files/lib/system/upload/MediaReplaceUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/MediaReplaceUploadFileValidationStrategy.class.php index f791f7ca9d0..009b818587c 100644 --- a/wcfsetup/install/files/lib/system/upload/MediaReplaceUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/MediaReplaceUploadFileValidationStrategy.class.php @@ -30,9 +30,7 @@ public function __construct(Media $media) $this->media = $media; } - /** - * @inheritDoc - */ + #[\Override] public function validate(UploadFile $uploadFile) { if (!parent::validate($uploadFile)) { diff --git a/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php index 949d7bf5fe8..8b9b7b0a85e 100644 --- a/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php @@ -28,9 +28,7 @@ public function __construct($imagesOnly) $this->imagesOnly = $imagesOnly; } - /** - * @inheritDoc - */ + #[\Override] public function validate(UploadFile $uploadFile) { if ($uploadFile->getErrorCode()) { diff --git a/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php index a0ab4b5361c..c1300ddd71a 100644 --- a/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php @@ -20,9 +20,7 @@ class TrophyImageUploadFileValidationStrategy implements IUploadFileValidationSt */ const MIN_TROPHY_IMAGE_SIZE = 64; - /** - * @inheritDoc - */ + #[\Override] public function validate(UploadFile $uploadFile) { if ($uploadFile->getErrorCode()) { diff --git a/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php b/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php index b007d2ac28c..2a7b9b2e352 100644 --- a/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php +++ b/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php @@ -68,9 +68,7 @@ public function getNoUsersMessage(): string return $this->noUsersMessage ? WCF::getLanguage()->get($this->noUsersMessage) : ''; } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getGroupName(); @@ -119,17 +117,13 @@ public static function loadUsers(): void } } - /** - * @inheritDoc - */ + #[\Override] public function count(): int { return \count($this->userIDs); } - /** - * @inheritDoc - */ + #[\Override] public function current(): UserProfile { $userID = $this->userIDs[$this->index]; @@ -143,30 +137,25 @@ public function current(): UserProfile * * @see \Iterator::key() */ + #[\Override] public function key(): int { return $this->userIDs[$this->index]; } - /** - * @inheritDoc - */ + #[\Override] public function next(): void { $this->index++; } - /** - * @inheritDoc - */ + #[\Override] public function rewind(): void { $this->index = 0; } - /** - * @inheritDoc - */ + #[\Override] public function valid(): bool { return isset($this->userIDs[$this->index]); diff --git a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php index 21cf1b84cda..a8418ed9d2d 100644 --- a/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/UserProfileHandler.class.php @@ -24,9 +24,7 @@ class UserProfileHandler extends SingletonFactory */ protected $userProfile; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->userProfile = new UserProfile(WCF::getUser()); diff --git a/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentResponseUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentResponseUserActivityEvent.class.php index 08a88a28961..c412af54a62 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentResponseUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentResponseUserActivityEvent.class.php @@ -19,9 +19,7 @@ class ArticleCommentResponseUserActivityEvent extends SingletonFactory implement { use TCommentResponseUserActivityEvent; - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!\MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentUserActivityEvent.class.php index dd30c15aac1..9adb1e61b5a 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/ArticleCommentUserActivityEvent.class.php @@ -18,9 +18,7 @@ */ class ArticleCommentUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!\MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/ArticleUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/ArticleUserActivityEvent.class.php index 3a1e3b6cf27..d73d9ec35e3 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/ArticleUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/ArticleUserActivityEvent.class.php @@ -15,9 +15,7 @@ */ class ArticleUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!\MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php index 6d11c9114f0..55800d046dc 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php @@ -15,9 +15,7 @@ */ class FollowUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/LikeableArticleUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/LikeableArticleUserActivityEvent.class.php index 6b325604629..a647494bd99 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/LikeableArticleUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/LikeableArticleUserActivityEvent.class.php @@ -17,9 +17,7 @@ */ class LikeableArticleUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!\MODULE_ARTICLE) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/PageCommentResponseUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/PageCommentResponseUserActivityEvent.class.php index 5a62550acde..b5f8c6d8208 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/PageCommentResponseUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/PageCommentResponseUserActivityEvent.class.php @@ -19,9 +19,7 @@ class PageCommentResponseUserActivityEvent extends SingletonFactory implements I { use TCommentResponseUserActivityEvent; - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { $this->readResponseData($events); diff --git a/wcfsetup/install/files/lib/system/user/activity/event/PageCommentUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/PageCommentUserActivityEvent.class.php index db3d36abd34..febfa548db7 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/PageCommentUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/PageCommentUserActivityEvent.class.php @@ -18,9 +18,7 @@ */ class PageCommentUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { $commentIDs = []; diff --git a/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentResponseUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentResponseUserActivityEvent.class.php index a4cc7bd24c1..077cfecba0c 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentResponseUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentResponseUserActivityEvent.class.php @@ -18,9 +18,7 @@ class ProfileCommentResponseUserActivityEvent extends SingletonFactory implement { use TCommentResponseUserActivityEvent; - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentUserActivityEvent.class.php index 976e8b1df52..a558f9a79ca 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentUserActivityEvent.class.php @@ -17,9 +17,7 @@ */ class ProfileCommentUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!WCF::getSession()->getPermission('user.profile.canViewUserProfile')) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/TrophyReceivedUserActivityEvent.class.php b/wcfsetup/install/files/lib/system/user/activity/event/TrophyReceivedUserActivityEvent.class.php index 133791707ca..13051260c82 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/TrophyReceivedUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/TrophyReceivedUserActivityEvent.class.php @@ -15,9 +15,7 @@ */ class TrophyReceivedUserActivityEvent extends SingletonFactory implements IUserActivityEvent { - /** - * @inheritDoc - */ + #[\Override] public function prepare(array $events) { if (!MODULE_TROPHY || !WCF::getSession()->getPermission('user.profile.trophy.canSeeTrophies')) { diff --git a/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php index 4842c9c5dbb..2404e5181d5 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php @@ -26,9 +26,7 @@ class UserActivityEventHandler extends SingletonFactory */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // load object types diff --git a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php index b720ba3d688..9886b46757f 100644 --- a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php @@ -33,9 +33,7 @@ class UserActivityPointHandler extends SingletonFactory */ protected $objectTypeNames = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.activityPointEvent'); diff --git a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php index e4aa68e6995..831bad96895 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php @@ -34,9 +34,7 @@ public function storeAccessData(User $user, $username, $password) // Does nothing } - /** - * @inheritDoc - */ + #[\Override] public function loginManually( string $username, #[\SensitiveParameter] diff --git a/wcfsetup/install/files/lib/system/user/authentication/EmailUserAuthentication.class.php b/wcfsetup/install/files/lib/system/user/authentication/EmailUserAuthentication.class.php index 822094826e3..38132ec6202 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/EmailUserAuthentication.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/EmailUserAuthentication.class.php @@ -13,9 +13,7 @@ */ class EmailUserAuthentication extends DefaultUserAuthentication { - /** - * @inheritDoc - */ + #[\Override] protected function getUserByLogin($login) { return User::getUserByEmail($login); diff --git a/wcfsetup/install/files/lib/system/user/authentication/UserAuthenticationFactory.class.php b/wcfsetup/install/files/lib/system/user/authentication/UserAuthenticationFactory.class.php index e2495473a40..dacb3bc9817 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/UserAuthenticationFactory.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/UserAuthenticationFactory.class.php @@ -27,9 +27,7 @@ class UserAuthenticationFactory extends SingletonFactory */ protected $userAuthentication; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // call loadInstance event diff --git a/wcfsetup/install/files/lib/system/user/authentication/oauth/User.class.php b/wcfsetup/install/files/lib/system/user/authentication/oauth/User.class.php index d1561222af8..ade8cf4638b 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/oauth/User.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/oauth/User.class.php @@ -64,17 +64,13 @@ public function getEmail(): ?string return $this['__email'] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function offsetGet($offset): mixed { return $this->data[$offset] ?? null; } - /** - * @inheritDoc - */ + #[\Override] public function offsetSet($offset, $value): void { if ($offset === '__id') { @@ -87,9 +83,7 @@ public function offsetSet($offset, $value): void $this->data[$offset] = $value; } - /** - * @inheritDoc - */ + #[\Override] public function offsetUnset($offset): void { if ($offset === '__id') { @@ -102,9 +96,7 @@ public function offsetUnset($offset): void unset($this->data[$offset]); } - /** - * @inheritDoc - */ + #[\Override] public function offsetExists($offset): bool { return isset($this->data[$offset]); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Argon2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Argon2.class.php index bbbd4f03bd3..81855d91c2d 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Argon2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Argon2.class.php @@ -20,9 +20,7 @@ final class Argon2 implements IPasswordAlgorithm 'threads' => 1, ]; - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -31,9 +29,7 @@ public function verify( return \password_verify($password, $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -41,9 +37,7 @@ public function hash( return \password_hash($password, \PASSWORD_ARGON2I, self::OPTIONS); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return \password_needs_rehash($hash, \PASSWORD_ARGON2I, self::OPTIONS); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Bcrypt.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Bcrypt.class.php index 6f5789c1ad0..565de323305 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Bcrypt.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Bcrypt.class.php @@ -37,9 +37,7 @@ public function __construct(int $cost = 12) $this->cost = $cost; } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -48,9 +46,7 @@ public function verify( return \password_verify($password, $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -58,9 +54,7 @@ public function hash( return \password_hash($password, \PASSWORD_BCRYPT, $this->getOptions()); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return \password_needs_rehash($hash, \PASSWORD_BCRYPT, $this->getOptions()); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/CryptMD5.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/CryptMD5.class.php index 95627ad1303..df381583e46 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/CryptMD5.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/CryptMD5.class.php @@ -15,9 +15,7 @@ */ final class CryptMD5 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $hash)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \crypt($password, $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php index 31be718f4cd..ae95cfbd818 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php @@ -29,9 +29,7 @@ final class DoubleBcrypt implements IPasswordAlgorithm */ private const BCRYPT_TYPE = '2a'; - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -40,9 +38,7 @@ public function verify( return \hash_equals($hash, self::getDoubleSaltedHash($password, $hash)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -50,9 +46,7 @@ public function hash( return self::getDoubleSaltedHash($password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return self::isDifferentBlowfish($hash); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Drupal8.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Drupal8.class.php index 8f81dc757ef..2c77e8880c1 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Drupal8.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Drupal8.class.php @@ -32,9 +32,7 @@ private function hashDrupal( return \mb_substr($output, 0, 55, '8bit'); } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -47,9 +45,7 @@ public function verify( return \hash_equals($hash, $this->hashDrupal($password, $hash)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -59,9 +55,7 @@ public function hash( return $this->hashDrupal($password, $this->getSettings() . $salt) . ':'; } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return !\str_starts_with($hash, $this->getSettings()); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Invalid.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Invalid.class.php index b15b92ab4af..3e29a850908 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Invalid.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Invalid.class.php @@ -14,9 +14,7 @@ */ final class Invalid implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -25,9 +23,7 @@ public function verify( return false; } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -35,9 +31,7 @@ public function hash( return ''; } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb2.class.php index 9129841649e..576c33a9b8e 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb2.class.php @@ -15,9 +15,7 @@ */ final class Ipb2 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($password) . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb3.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb3.class.php index 677826880da..f36c5ab06b5 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb3.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Ipb3.class.php @@ -15,9 +15,7 @@ */ final class Ipb3 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($salt) . \md5($password)); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla1.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla1.class.php index ed8d5fbabf5..975e7c827d6 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla1.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla1.class.php @@ -15,9 +15,7 @@ */ final class Joomla1 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5($password . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla2.class.php index 75b0ab3249b..6949513dfce 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla2.class.php @@ -15,9 +15,7 @@ */ final class Joomla2 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5($password . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla3.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla3.class.php index 939f62cef37..61e96a752df 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla3.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Joomla3.class.php @@ -15,9 +15,7 @@ */ final class Joomla3 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5($password . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Mybb1.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Mybb1.class.php index 0cf748e2bcd..a265b56bdbd 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Mybb1.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Mybb1.class.php @@ -15,9 +15,7 @@ */ final class Mybb1 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($salt) . \md5($password)); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Pbkdf2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Pbkdf2.class.php index 7fc6f70f236..3ff155693c5 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Pbkdf2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Pbkdf2.class.php @@ -15,9 +15,7 @@ */ final class Pbkdf2 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -32,9 +30,7 @@ public function verify( return \hash_equals($hash, Hex::encode(\hash_pbkdf2($algo, $password, $salt, (int)$iterations, (int)$length, true))); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -48,9 +44,7 @@ public function hash( return \implode(':', [$hash, $salt, $algo, $iterations, $length]); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpass.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpass.class.php index 0923e7cbb94..53b3c7e95c0 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpass.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpass.class.php @@ -19,9 +19,7 @@ final class Phpass implements IPasswordAlgorithm private const COSTS = 10; - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -31,9 +29,7 @@ public function hash( return $this->hashPhpass($password, $this->getSettings() . $salt) . ':'; } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return !\str_starts_with($hash, $this->getSettings()); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpbb3.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpbb3.class.php index 3b23d16a5be..73364231ee0 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpbb3.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpbb3.class.php @@ -19,6 +19,7 @@ final class Phpbb3 implements IPasswordAlgorithm verify as phpassVerify; } + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -67,11 +68,13 @@ public function verify( return \hash_equals($hash, $password); } + #[\Override] public function needsRehash(string $hash): bool { return false; } + #[\Override] public function hash( #[\SensitiveParameter] string $password diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpfox3.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpfox3.class.php index 7a337a256c2..41c01e6cf22 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpfox3.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpfox3.class.php @@ -15,9 +15,7 @@ */ final class Phpfox3 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($password) . \md5($salt)); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf1.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf1.class.php index 333ceb126ca..21166cd30ea 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf1.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf1.class.php @@ -15,9 +15,7 @@ */ final class Smf1 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \sha1($salt . $password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf2.class.php index e932a56dacf..0e0e57bcacb 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Smf2.class.php @@ -15,9 +15,7 @@ */ final class Smf2 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \sha1($salt . $password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/TPhpass.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/TPhpass.class.php index 0309db29fea..00bbfe53800 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/TPhpass.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/TPhpass.class.php @@ -106,9 +106,6 @@ private function encode64(string $input, int $count): string return $output; } - /** - * @inheritDoc - */ public function verify( #[\SensitiveParameter] string $password, diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb3.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb3.class.php index 0a3b01768b0..36f5039f6e0 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb3.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb3.class.php @@ -15,9 +15,7 @@ */ final class Vb3 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($password) . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb4.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb4.class.php index 8489a83de4b..f5e6d7708bb 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb4.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb4.class.php @@ -15,9 +15,7 @@ */ final class Vb4 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($password) . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5.class.php index 6cd0ae0d928..d017b890d2d 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5.class.php @@ -15,9 +15,7 @@ */ final class Vb5 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \md5(\md5($password) . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Argon2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Argon2.class.php index a335638679b..0fe2b2e60b3 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Argon2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Argon2.class.php @@ -27,9 +27,7 @@ public function __construct() $this->argon2 = new Argon2(); } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -38,9 +36,7 @@ public function verify( return $this->argon2->verify(\md5($password), $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -48,9 +44,7 @@ public function hash( return $this->argon2->hash(\md5($password)); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return $this->argon2->needsRehash($hash); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Bcrypt.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Bcrypt.class.php index 7e2f581c13d..dc6a13e667e 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Bcrypt.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Vb5Bcrypt.class.php @@ -27,9 +27,7 @@ public function __construct() $this->bcrypt = new Bcrypt(); } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -38,9 +36,7 @@ public function verify( return $this->bcrypt->verify(\md5($password), $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -48,9 +44,7 @@ public function hash( return $this->bcrypt->hash(\md5($password)); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return $this->bcrypt->needsRehash($hash); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wbb2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wbb2.class.php index ad0dbc5ad28..85c4330b6f4 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wbb2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wbb2.class.php @@ -14,9 +14,7 @@ */ final class Wbb2 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -31,9 +29,7 @@ public function verify( return false; } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -41,9 +37,7 @@ public function hash( return \sha1($password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1.class.php index d00182cea2b..0345b17cbce 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1.class.php @@ -15,9 +15,7 @@ */ final class Wcf1 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -30,9 +28,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -53,9 +49,7 @@ private function hashWithSalt( return \sha1($salt . \sha1($salt . \sha1($password))); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1e.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1e.class.php index 0c2a326d348..8a0f28d2b1f 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1e.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf1e.class.php @@ -50,9 +50,7 @@ public function __construct(string $type) $this->encryptBeforeSalting = (bool)$matches[4]; } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -65,9 +63,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -131,9 +127,7 @@ private function encrypt( } } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf2.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf2.class.php index a3a678f56dc..d35bea3c921 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf2.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Wcf2.class.php @@ -27,9 +27,7 @@ public function __construct() $this->doubleBcrypt = new DoubleBcrypt(); } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -38,9 +36,7 @@ public function verify( return $this->doubleBcrypt->verify($password, $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -48,9 +44,7 @@ public function hash( return $this->doubleBcrypt->hash($password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return $this->doubleBcrypt->needsRehash($hash); diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf1.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf1.class.php index fbe0c288793..9251ff25e52 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf1.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf1.class.php @@ -15,9 +15,7 @@ */ final class Xf1 implements IPasswordAlgorithm { - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -34,9 +32,7 @@ public function verify( return \hash_equals($hash, $this->hashWithSalt($password, $salt)); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -57,9 +53,7 @@ private function hashWithSalt( return \hash('sha256', \hash('sha256', $password) . $salt); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf12.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf12.class.php index 2ef783f748c..8f0deaab94b 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf12.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Xf12.class.php @@ -27,9 +27,7 @@ public function __construct() $this->bcrypt = new Bcrypt(); } - /** - * @inheritDoc - */ + #[\Override] public function verify( #[\SensitiveParameter] string $password, @@ -38,9 +36,7 @@ public function verify( return $this->bcrypt->verify($password, $hash); } - /** - * @inheritDoc - */ + #[\Override] public function hash( #[\SensitiveParameter] string $password @@ -48,9 +44,7 @@ public function hash( return $this->bcrypt->hash($password); } - /** - * @inheritDoc - */ + #[\Override] public function needsRehash(string $hash): bool { return $this->bcrypt->needsRehash($hash); diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php index cc38435731b..dc5e54439a8 100644 --- a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php @@ -30,9 +30,7 @@ class UserCollapsibleContentHandler extends SingletonFactory */ protected $collapsedContent = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { $this->cache = [ diff --git a/wcfsetup/install/files/lib/system/user/content/provider/AbstractDatabaseUserContentProvider.class.php b/wcfsetup/install/files/lib/system/user/content/provider/AbstractDatabaseUserContentProvider.class.php index 6bfa658bc39..6bfb9da74f3 100644 --- a/wcfsetup/install/files/lib/system/user/content/provider/AbstractDatabaseUserContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/user/content/provider/AbstractDatabaseUserContentProvider.class.php @@ -49,9 +49,7 @@ public static function getDatabaseObjectActionClass() return static::getDatabaseObjectClass() . 'Action'; } - /** - * @inheritDoc - */ + #[\Override] public function getContentListForUser(User $user) { if ($user->userID == 0) { @@ -72,9 +70,7 @@ public function getContentListForUser(User $user) return $databaseObjectList; } - /** - * @inheritDoc - */ + #[\Override] public function deleteContent(array $objectIDs) { $className = self::getDatabaseObjectActionClass(); diff --git a/wcfsetup/install/files/lib/system/user/content/provider/ArticleUserContentProvider.class.php b/wcfsetup/install/files/lib/system/user/content/provider/ArticleUserContentProvider.class.php index f81ef219c33..c74de304cdc 100644 --- a/wcfsetup/install/files/lib/system/user/content/provider/ArticleUserContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/user/content/provider/ArticleUserContentProvider.class.php @@ -20,6 +20,7 @@ class ArticleUserContentProvider extends AbstractDatabaseUserContentProvider /** * @inheritdoc */ + #[\Override] public static function getDatabaseObjectClass() { return Article::class; diff --git a/wcfsetup/install/files/lib/system/user/content/provider/CommentResponseUserContentProvider.class.php b/wcfsetup/install/files/lib/system/user/content/provider/CommentResponseUserContentProvider.class.php index 92c5b72eedc..fe331ef6fb3 100644 --- a/wcfsetup/install/files/lib/system/user/content/provider/CommentResponseUserContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/user/content/provider/CommentResponseUserContentProvider.class.php @@ -20,6 +20,7 @@ class CommentResponseUserContentProvider extends AbstractDatabaseUserContentProv /** * @inheritdoc */ + #[\Override] public static function getDatabaseObjectClass() { return CommentResponse::class; diff --git a/wcfsetup/install/files/lib/system/user/content/provider/CommentUserContentProvider.class.php b/wcfsetup/install/files/lib/system/user/content/provider/CommentUserContentProvider.class.php index 1438e62914d..c15f8b5f4a6 100644 --- a/wcfsetup/install/files/lib/system/user/content/provider/CommentUserContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/user/content/provider/CommentUserContentProvider.class.php @@ -20,6 +20,7 @@ class CommentUserContentProvider extends AbstractDatabaseUserContentProvider /** * @inheritdoc */ + #[\Override] public static function getDatabaseObjectClass() { return Comment::class; diff --git a/wcfsetup/install/files/lib/system/user/content/provider/ReactionUserContentProvider.class.php b/wcfsetup/install/files/lib/system/user/content/provider/ReactionUserContentProvider.class.php index 666456ffff7..4b61578db95 100644 --- a/wcfsetup/install/files/lib/system/user/content/provider/ReactionUserContentProvider.class.php +++ b/wcfsetup/install/files/lib/system/user/content/provider/ReactionUserContentProvider.class.php @@ -27,6 +27,7 @@ class ReactionUserContentProvider extends AbstractDatabaseUserContentProvider /** * @inheritdoc */ + #[\Override] public static function getDatabaseObjectClass() { return Like::class; @@ -35,6 +36,7 @@ public static function getDatabaseObjectClass() /** * @inheritdoc */ + #[\Override] public function deleteContent(array $objectIDs) { $likeList = new LikeList(); diff --git a/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php b/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php index affd2528056..2f12e359d73 100644 --- a/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php @@ -125,9 +125,7 @@ public function getUsers(UserGroupAssignment $assignment, $maxUsers = null) return $userList->getObjects(); } - /** - * @inheritDoc - */ + #[\Override] protected function init() { $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.condition.userGroupAssignment'); diff --git a/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php index 55c6715c43b..fa75890d174 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php @@ -65,6 +65,7 @@ public function __construct() /** * Returns the number of remaining codes. */ + #[\Override] public function getStatusText(Setup $setup): string { $sql = "SELECT COUNT(*) - COUNT(useTime) AS count, @@ -80,9 +81,7 @@ public function getStatusText(Setup $setup): string ); } - /** - * @inheritDoc - */ + #[\Override] public function createManagementForm(IFormDocument $form, ?Setup $setup, mixed $returnData = null): void { $form->addDefaultButton(false); @@ -200,9 +199,9 @@ private function generateCodes(): array } /** - * @inheritDoc * @return array */ + #[\Override] public function processManagementForm(IFormDocument $form, Setup $setup): array { $formData = $form->getData(); @@ -257,9 +256,7 @@ private function findValidCode(string $userCode, array $codes): ?array return $result; } - /** - * @inheritDoc - */ + #[\Override] public function createAuthenticationForm(IFormDocument $form, Setup $setup): void { $sql = "SELECT * @@ -312,9 +309,7 @@ function (TextFormField $field) use ($codes, $setup) { ]); } - /** - * @inheritDoc - */ + #[\Override] public function processAuthenticationForm(IFormDocument $form, Setup $setup): void { $userCode = \preg_replace('/\s+/', '', $form->getData()['data']['code']); diff --git a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php index 50f8ecd8fdf..fa5fed0bd6e 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php @@ -37,14 +37,13 @@ final class EmailMultifactorMethod implements IMultifactorMethod /** * Returns an empty string. */ + #[\Override] public function getStatusText(Setup $setup): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function createManagementForm(IFormDocument $form, ?Setup $setup, mixed $returnData = null): void { $form->addDefaultButton(false); @@ -79,9 +78,7 @@ public function createManagementForm(IFormDocument $form, ?Setup $setup, mixed $ } } - /** - * @inheritDoc - */ + #[\Override] public function processManagementForm(IFormDocument $form, Setup $setup): void { $formData = $form->getData(); @@ -147,9 +144,7 @@ private function sendEmail(Setup $setup, string $code): void } } - /** - * @inheritDoc - */ + #[\Override] public function createAuthenticationForm(IFormDocument $form, Setup $setup): void { $sql = "SELECT code, createTime @@ -237,9 +232,7 @@ public function createAuthenticationForm(IFormDocument $form, Setup $setup): voi ]); } - /** - * @inheritDoc - */ + #[\Override] public function processAuthenticationForm(IFormDocument $form, Setup $setup): void { $this->invalidateUsedCode( diff --git a/wcfsetup/install/files/lib/system/user/multifactor/Setup.class.php b/wcfsetup/install/files/lib/system/user/multifactor/Setup.class.php index f02df7fbad2..012ca4cd4f9 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/Setup.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/Setup.class.php @@ -49,6 +49,7 @@ public function getId(): int /** * @see Setup::getId() */ + #[\Override] public function getObjectID(): int { if ($this->isDeleted) { diff --git a/wcfsetup/install/files/lib/system/user/multifactor/TotpMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/TotpMultifactorMethod.class.php index e0ae88f2dc4..b124726fe08 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/TotpMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/TotpMultifactorMethod.class.php @@ -36,6 +36,7 @@ final class TotpMultifactorMethod implements IMultifactorMethod /** * Returns the number of devices the user set up. */ + #[\Override] public function getStatusText(Setup $setup): string { $sql = "SELECT COUNT(*) AS count, @@ -51,9 +52,7 @@ public function getStatusText(Setup $setup): string ); } - /** - * @inheritDoc - */ + #[\Override] public function createManagementForm(IFormDocument $form, ?Setup $setup, mixed $returnData = null): void { if ($returnData !== null) { @@ -155,9 +154,9 @@ public function createManagementForm(IFormDocument $form, ?Setup $setup, mixed $ } /** - * @inheritDoc * @return array{action: string, deviceName: string} */ + #[\Override] public function processManagementForm(IFormDocument $form, Setup $setup): array { $formData = $form->getData(); @@ -250,9 +249,7 @@ public function processManagementForm(IFormDocument $form, Setup $setup): array } } - /** - * @inheritDoc - */ + #[\Override] public function createAuthenticationForm(IFormDocument $form, Setup $setup): void { $sql = "SELECT * @@ -355,9 +352,7 @@ static function (CodeFormField $field) use ($devices, $setup) { } } - /** - * @inheritDoc - */ + #[\Override] public function processAuthenticationForm(IFormDocument $form, Setup $setup): void { $formData = $form->getData(); diff --git a/wcfsetup/install/files/lib/system/user/multifactor/backup/CodeFormField.class.php b/wcfsetup/install/files/lib/system/user/multifactor/backup/CodeFormField.class.php index ebcae90a389..5218f5100dc 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/backup/CodeFormField.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/backup/CodeFormField.class.php @@ -86,9 +86,7 @@ public function getChunkLength(): int return $this->chunkLength; } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'code'; diff --git a/wcfsetup/install/files/lib/system/user/multifactor/email/CodeFormField.class.php b/wcfsetup/install/files/lib/system/user/multifactor/email/CodeFormField.class.php index 69ca440d6a2..93ed58428fc 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/email/CodeFormField.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/email/CodeFormField.class.php @@ -38,9 +38,7 @@ public function __construct() $this->placeholder($placeholder); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'code'; diff --git a/wcfsetup/install/files/lib/system/user/multifactor/totp/CodeFormField.class.php b/wcfsetup/install/files/lib/system/user/multifactor/totp/CodeFormField.class.php index c146a956afc..c4959fd7602 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/totp/CodeFormField.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/totp/CodeFormField.class.php @@ -55,9 +55,9 @@ public function minCounter(int $minCounter): static } /** - * @inheritDoc * @return array{value: mixed, minCounter: number} */ + #[\Override] public function getSaveValue(): array { if ($this->minCounter === null) { @@ -70,9 +70,7 @@ public function getSaveValue(): array ]; } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'onetimecode'; diff --git a/wcfsetup/install/files/lib/system/user/multifactor/totp/DeviceNode.class.php b/wcfsetup/install/files/lib/system/user/multifactor/totp/DeviceNode.class.php index 2ccf62252c1..2fb92520a1e 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/totp/DeviceNode.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/totp/DeviceNode.class.php @@ -36,9 +36,7 @@ class DeviceNode implements IFormChildNode, IFormParentNode */ protected $templateName = '__multifactorTotpDeviceNode'; - /** - * @inheritDoc - */ + #[\Override] public function getHtml(): string { return WCF::getTPL()->render( @@ -67,14 +65,13 @@ public function setData(array $device): static /** * Returns true once device data has been set. */ + #[\Override] public function isAvailable(): bool { return $this->data !== null; } - /** - * @inheritDoc - */ + #[\Override] public function checkDependencies(): bool { if (!empty($this->dependencies)) { diff --git a/wcfsetup/install/files/lib/system/user/multifactor/totp/DevicesContainer.class.php b/wcfsetup/install/files/lib/system/user/multifactor/totp/DevicesContainer.class.php index 08becedf061..c003aab43a6 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/totp/DevicesContainer.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/totp/DevicesContainer.class.php @@ -24,9 +24,7 @@ class DevicesContainer extends FormContainer */ protected $templateName = '__multifactorTotpDevicesContainer'; - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'devices'; @@ -37,6 +35,7 @@ protected static function getDefaultId(): string * * @return $this */ + #[\Override] public function appendChild(IFormChildNode $child): static { if (!($child instanceof DeviceNode)) { diff --git a/wcfsetup/install/files/lib/system/user/multifactor/totp/NewDeviceContainer.class.php b/wcfsetup/install/files/lib/system/user/multifactor/totp/NewDeviceContainer.class.php index 3b85b5806a1..f461595476f 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/totp/NewDeviceContainer.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/totp/NewDeviceContainer.class.php @@ -22,9 +22,7 @@ class NewDeviceContainer extends FormContainer */ protected $templateName = '__multifactorTotpNewDeviceContainer'; - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'newDevice'; diff --git a/wcfsetup/install/files/lib/system/user/multifactor/totp/SecretFormField.class.php b/wcfsetup/install/files/lib/system/user/multifactor/totp/SecretFormField.class.php index 6e00f94387d..447d88f817a 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/totp/SecretFormField.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/totp/SecretFormField.class.php @@ -29,9 +29,7 @@ public function __construct() $this->value(Totp::generateSecret()); } - /** - * @inheritDoc - */ + #[\Override] public function readValue(): static { if ($this->getDocument()->hasRequestData($this->getPrefixedId())) { @@ -69,9 +67,7 @@ public function getTotp(): Totp return new Totp($this->getValue()); } - /** - * @inheritDoc - */ + #[\Override] protected static function getDefaultId(): string { return 'secret'; diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 7377f1a452e..c1a36c175d9 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -67,9 +67,7 @@ class UserNotificationHandler extends SingletonFactory */ protected $objectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php index 1c52ff80bb0..94fd953ceb4 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php @@ -22,17 +22,13 @@ abstract class AbstractCommentResponseUserNotificationEvent extends AbstractShar */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -49,9 +45,7 @@ public function getTitle(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailTitle() { $count = \count($this->getAuthors()); @@ -65,9 +59,7 @@ public function getEmailTitle() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->commentID); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentUserNotificationEvent.class.php index 7a7bb0f2d2b..5d77bcd2173 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentUserNotificationEvent.class.php @@ -21,9 +21,7 @@ abstract class AbstractCommentUserNotificationEvent extends AbstractSharedUserNo */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -40,9 +38,7 @@ public function getTitle(): string ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailTitle() { $count = \count($this->getAuthors()); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractSharedUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractSharedUserNotificationEvent.class.php index 8555eb2d832..5fc89ec792e 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractSharedUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractSharedUserNotificationEvent.class.php @@ -15,9 +15,7 @@ */ abstract class AbstractSharedUserNotificationEvent extends AbstractUserNotificationEvent { - /** - * @inheritDoc - */ + #[\Override] public function setObject( UserNotification $notification, IUserNotificationObject $object, diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php index 134fe929f21..207195d965e 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php @@ -80,9 +80,7 @@ abstract class AbstractUserNotificationEvent extends DatabaseObjectDecorator imp */ protected static $periods = []; - /** - * @inheritDoc - */ + #[\Override] public function setAuthors(array $authors) { $this->authors = $authors; @@ -103,9 +101,7 @@ public function setAuthors(array $authors) }); } - /** - * @inheritDoc - */ + #[\Override] public function setObject( UserNotification $notification, IUserNotificationObject $object, @@ -118,65 +114,49 @@ public function setObject( $this->additionalData = $additionalData; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->author->userID; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthor() { return $this->author; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthors() { return $this->authors; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { return $this->getDecoratedObject()->validateOptions() && $this->getDecoratedObject()->validatePermissions(); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailTitle() { return $this->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { return $this->getMessage(); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->userNotificationObject->getObjectID()); } - /** - * @inheritDoc - */ + #[\Override] public function setLanguage(Language $language) { $this->language = $language; @@ -196,9 +176,7 @@ public function getLanguage() return WCF::getLanguage(); } - /** - * @inheritDoc - */ + #[\Override] public function isStackable() { return $this->stackable; @@ -243,65 +221,49 @@ public function getPeriod() return WCF::getLanguage()->get('wcf.date.period.older'); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function deleteNoAccessNotification() { return true; } - /** - * @inheritDoc - */ + #[\Override] public function isConfirmed() { return $this->notification->confirmTime > 0; } - /** - * @inheritDoc - */ + #[\Override] public function getNotification() { return $this->notification; } - /** - * @inheritDoc - */ + #[\Override] public function getUserNotificationObject() { return $this->userNotificationObject; } - /** - * @inheritDoc - */ + #[\Override] public function getComments() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getCategories() { return [ @@ -309,49 +271,37 @@ public function getCategories() ]; } - /** - * @inheritDoc - */ + #[\Override] public function getExcerpt(int $maxLength = 255) { return StringUtil::truncateHTML($this->getFormattedMessage(), $maxLength); } - /** - * @inheritDoc - */ + #[\Override] public function getFormattedMessage() { return $this->getMessage(); } - /** - * @inheritDoc - */ + #[\Override] public function __toString(): string { return $this->getFormattedMessage(); } - /** - * @inheritDoc - */ + #[\Override] public function getTime() { return $this->getNotification()->time; } - /** - * @inheritDoc - */ + #[\Override] public function getUserID() { return $this->getAuthorID(); } - /** - * @inheritDoc - */ + #[\Override] public function getUsername() { return $this->getAuthor()->username; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentLikeUserNotificationEvent.class.php index f589e679315..27b572a8566 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentLikeUserNotificationEvent.class.php @@ -27,17 +27,13 @@ class ArticleCommentLikeUserNotificationEvent extends AbstractSharedUserNotifica */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -51,9 +47,7 @@ public function getTitle(): string return $this->getLanguage()->get('wcf.user.notification.articleComment.like.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $article = ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID']); @@ -89,34 +83,26 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): string { // not supported return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#comment' . $this->getCommentID(); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getCommentID()); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseLikeUserNotificationEvent.class.php index 4e78c4edd06..2cbfcd6a9b6 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseLikeUserNotificationEvent.class.php @@ -29,18 +29,14 @@ class ArticleCommentResponseLikeUserNotificationEvent extends AbstractSharedUser */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); UserRuntimeCache::getInstance()->cacheObjectID($this->additionalData['commentUserID']); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -57,9 +53,7 @@ public function getTitle(): string return $this->getLanguage()->get('wcf.user.notification.articleComment.response.like.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $article = ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID']); @@ -105,35 +99,27 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): string { // not supported return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#comment' . $this->additionalData['commentID'] . '/response' . $this->getUserNotificationObject()->objectID; } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseOwnerUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseOwnerUserNotificationEvent.class.php index b6807dc08cb..d9e47147aea 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseOwnerUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseOwnerUserNotificationEvent.class.php @@ -22,9 +22,7 @@ class ArticleCommentResponseOwnerUserNotificationEvent extends AbstractCommentRe use TTestableCommentResponseUserNotificationEvent; use TTestableArticleCommentUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { parent::prepare(); @@ -32,9 +30,7 @@ protected function prepare() ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -71,9 +67,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { $messageID = 'getUserNotificationObject()->commentID . '@' . Email::getHost() . '>'; @@ -110,25 +104,19 @@ private function getCommentAuthorProfile() } } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#comment' . $this->getUserNotificationObject()->commentID . '/response' . $this->getUserNotificationObject()->responseID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.recentActivity.com.woltlab.wcf.article.recentActivityEvent'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return ViewableArticleContentRuntimeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseUserNotificationEvent.class.php index d198eff0833..64d0060c8ec 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentResponseUserNotificationEvent.class.php @@ -19,9 +19,7 @@ class ArticleCommentResponseUserNotificationEvent extends AbstractCommentRespons use TTestableCommentResponseUserNotificationEvent; use TTestableArticleCommentUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { parent::prepare(); @@ -29,9 +27,7 @@ protected function prepare() ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -66,9 +62,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { $messageID = 'getUserNotificationObject()->commentID . '@' . Email::getHost() . '>'; @@ -88,25 +82,19 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleContentRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#comment' . $this->getUserNotificationObject()->commentID . '/response' . $this->getUserNotificationObject()->responseID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.recentActivity.com.woltlab.wcf.article.recentActivityEvent'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return ViewableArticleContentRuntimeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentUserNotificationEvent.class.php index 82f85b3bbd4..2e76c5a3eb3 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleCommentUserNotificationEvent.class.php @@ -21,17 +21,13 @@ class ArticleCommentUserNotificationEvent extends AbstractCommentUserNotificatio use TTestableCommentUserNotificationEvent; use TTestableArticleCommentUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -61,9 +57,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { return [ @@ -79,25 +73,19 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleContentRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID)->getLink() . '#comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.recentActivity.com.woltlab.wcf.article.recentActivityEvent'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return ViewableArticleContentRuntimeCache::getInstance() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleLikeUserNotificationEvent.class.php index e01f1bb451b..d923554aaa8 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleLikeUserNotificationEvent.class.php @@ -35,17 +35,13 @@ class ArticleLikeUserNotificationEvent extends AbstractSharedUserNotificationEve */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { ViewableArticleRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -59,9 +55,7 @@ public function getTitle(): string return $this->getLanguage()->getDynamicVariable('wcf.article.like.notification.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $article = ViewableArticleRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID); @@ -96,18 +90,14 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): string { // not supported return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return ViewableArticleRuntimeCache::getInstance() @@ -115,25 +105,19 @@ public function getLink(): string ->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { if (!ViewableArticleRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID)->canRead()) { @@ -145,9 +129,7 @@ public function checkAccess() return true; } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { if (!MODULE_ARTICLE || !MODULE_LIKE) { @@ -158,7 +140,6 @@ public function isVisible() } /** - * @inheritDoc * @return LikeableArticle */ protected static function createTestLikeObject(UserProfile $recipient, UserProfile $author) @@ -169,7 +150,6 @@ protected static function createTestLikeObject(UserProfile $recipient, UserProfi } /** - * @inheritDoc * @return string */ protected static function getTestLikeableObjectTypeName() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ArticleUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ArticleUserNotificationEvent.class.php index 2b6eb66ee97..75f99bc0c0b 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ArticleUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ArticleUserNotificationEvent.class.php @@ -21,17 +21,13 @@ class ArticleUserNotificationEvent extends AbstractUserNotificationEvent impleme use TTestableArticleUserNotificationEvent; use TTestableCategorizedUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getLanguage()->get('wcf.user.notification.article.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->getLanguage()->getDynamicVariable('wcf.user.notification.article.message', [ @@ -40,9 +36,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { if ($this->getUserNotificationObject()->isMultilingual) { @@ -66,34 +60,28 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getUserNotificationObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { return $this->getUserNotificationObject()->canRead(); } - /** - * @inheritDoc - */ + #[\Override] public static function canBeTriggeredByGuests() { return true; } /** - * @inheritDoc * @return ArticleUserNotificationObject[] */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { return [ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ExpiringPaidSubscriptionUserUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ExpiringPaidSubscriptionUserUserNotificationEvent.class.php index 37b3fd98121..83b49faf35a 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ExpiringPaidSubscriptionUserUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ExpiringPaidSubscriptionUserUserNotificationEvent.class.php @@ -27,17 +27,13 @@ class ExpiringPaidSubscriptionUserUserNotificationEvent extends AbstractUserNoti { use TTestableUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return LinkHandler::getInstance()->getLink('PaidSubscriptionList', ['forceFrontend' => true]); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->getLanguage()->getDynamicVariable( @@ -50,9 +46,7 @@ public function getMessage() ); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { return [ @@ -65,17 +59,13 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getLanguage()->get('wcf.paidSubscription.expiringSubscription.notification.title'); } - /** - * @inheritDoc - */ + #[\Override] public function isVisible() { $userSubscriptionList = new PaidSubscriptionUserList(); @@ -86,10 +76,10 @@ public function isVisible() } /** - * @inheritDoc * @return PaidSubscriptionUserUserNotificationObject[] * @since 3.1 */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { /** @var PaidSubscription $paidSubscription */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php index 2996e76c7d8..337208d74e0 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php @@ -25,6 +25,7 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor, ILinkableObje /** * Returns a short title used for the notification overlay, e.g. "New follower". */ + #[\Override] public function getTitle(): string; /** @@ -37,6 +38,7 @@ public function getMessage(); /** * Returns object link. */ + #[\Override] public function getLink(): string; /** diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php index 3843cbcc081..aef847d9da0 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php @@ -53,9 +53,7 @@ class ModerationQueueCommentResponseUserNotificationEvent extends AbstractCommen */ protected string $typeName; - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { if (!WCF::getSession()->getPermission('mod.general.canUseModeration')) { @@ -65,9 +63,7 @@ public function checkAccess() return $this->getModerationQueue()->canEdit(); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { $comment = CommentRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->commentID); @@ -95,25 +91,19 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getModerationQueue()->queueID); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getModerationQueue()->getLink() . '#comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -187,9 +177,7 @@ public function getLanguageItemPrefix() return $this->languageItemPrefix; } - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID); @@ -197,16 +185,15 @@ protected function prepare() } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function canBeTriggeredByGuests() { return false; } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ @@ -218,9 +205,7 @@ protected static function getTestCommentObjectData(UserProfile $recipient, UserP ]; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { if (!isset($this->typeName)) { @@ -233,9 +218,7 @@ protected function getTypeName(): string return $this->typeName; } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return $this->moderationQueue->getTitle(); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentUserNotificationEvent.class.php index e44acddcac3..e0a41611851 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentUserNotificationEvent.class.php @@ -47,9 +47,7 @@ class ModerationQueueCommentUserNotificationEvent extends AbstractCommentUserNot */ protected $moderationQueue; - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { if (!WCF::getSession()->getPermission('mod.general.canUseModeration')) { @@ -62,9 +60,7 @@ public function checkAccess() return $this->moderationQueue->canEdit(); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { return [ @@ -81,25 +77,19 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->moderationQueue->queueID); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->moderationQueue->getLink() . '#comments'; } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -125,14 +115,10 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] protected function prepare() {} - /** - * @inheritDoc - */ + #[\Override] public function setObject( UserNotification $notification, IUserNotificationObject $object, @@ -157,16 +143,15 @@ public function setObject( } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function canBeTriggeredByGuests() { return false; } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ @@ -178,17 +163,13 @@ protected static function getTestCommentObjectData(UserProfile $recipient, UserP ]; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->typeName; } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return $this->moderationQueue->getTitle(); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/PageCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/PageCommentResponseUserNotificationEvent.class.php index cc9d67e2d10..b7c1cffc0a7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/PageCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/PageCommentResponseUserNotificationEvent.class.php @@ -26,17 +26,13 @@ class PageCommentResponseUserNotificationEvent extends AbstractCommentResponseUs use TTestableCommentResponseUserNotificationEvent; use TTestablePageUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -70,9 +66,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { $messageID = 'getUserNotificationObject()->commentID . '@' . Email::getHost() . '>'; @@ -108,32 +102,25 @@ private function getCommentAuthorProfile() } } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return PageCache::getInstance()->getPage($this->additionalData['objectID'])->getLink() . '#comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.search.object.com.woltlab.wcf.page'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return PageCache::getInstance()->getPage($this->additionalData['objectID'])->getTitle(); } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} */ protected static function getTestCommentObjectData(UserProfile $recipient, UserProfile $author) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/PageCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/PageCommentUserNotificationEvent.class.php index f8194ca5f33..aee6938b625 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/PageCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/PageCommentUserNotificationEvent.class.php @@ -24,17 +24,13 @@ class PageCommentUserNotificationEvent extends AbstractCommentUserNotificationEv use TTestableCommentUserNotificationEvent; use TTestablePageUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { UserProfileRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -62,9 +58,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant'): array { return [ @@ -79,32 +73,25 @@ public function getEmailMessage(string $notificationType = 'instant'): array ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return PageCache::getInstance()->getPage($this->getUserNotificationObject()->objectID)->getLink() . '#comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.search.object.com.woltlab.wcf.page'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return PageCache::getInstance()->getPage($this->getUserNotificationObject()->objectID)->getTitle(); } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} */ protected static function getTestCommentObjectData(UserProfile $recipient, UserProfile $author) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentLikeUserNotificationEvent.class.php index c6589f6df4c..26f77ed5b32 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentLikeUserNotificationEvent.class.php @@ -25,7 +25,6 @@ trait TTestableCommentLikeUserNotificationEvent } /** - * @inheritDoc * @return LikeableComment */ protected static function createTestLikeObject(UserProfile $recipient, UserProfile $author) @@ -33,9 +32,7 @@ protected static function createTestLikeObject(UserProfile $recipient, UserProfi return new LikeableComment(self::createTestComment($recipient, $author)); } - /** - * @inheritDoc - */ + #[\Override] public static function getTestAdditionalData(IUserNotificationObject $object) { /** @var LikeableComment $likedObject */ @@ -48,7 +45,6 @@ public static function getTestAdditionalData(IUserNotificationObject $object) } /** - * @inheritDoc * @return string */ protected static function getTestLikeableObjectTypeName() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseLikeUserNotificationEvent.class.php index 422c414c3d7..efb565567db 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseLikeUserNotificationEvent.class.php @@ -25,7 +25,6 @@ trait TTestableCommentResponseLikeUserNotificationEvent } /** - * @inheritDoc * @return LikeableCommentResponse */ protected static function createTestLikeObject(UserProfile $recipient, UserProfile $author) @@ -33,9 +32,7 @@ protected static function createTestLikeObject(UserProfile $recipient, UserProfi return new LikeableCommentResponse(self::createTestCommentResponse($recipient, $author)); } - /** - * @inheritDoc - */ + #[\Override] public static function getTestAdditionalData(IUserNotificationObject $object) { /** @var LikeableCommentResponse $likedObject */ @@ -49,7 +46,6 @@ public static function getTestAdditionalData(IUserNotificationObject $object) } /** - * @inheritDoc * @return string */ protected static function getTestLikeableObjectTypeName() diff --git a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseUserNotificationEvent.class.php index c8d1d2c138a..35b841a52c1 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentResponseUserNotificationEvent.class.php @@ -30,9 +30,7 @@ trait TTestableCommentResponseUserNotificationEvent { use TTestableUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] public static function canBeTriggeredByGuests() { return true; @@ -84,9 +82,7 @@ public static function createTestCommentResponse(UserProfile $recipient, UserPro return $commentResponse; } - /** - * @inheritDoc - */ + #[\Override] public static function getTestAdditionalData(IUserNotificationObject $object) { /** @var CommentResponseUserNotificationObject $object */ @@ -100,9 +96,9 @@ public static function getTestAdditionalData(IUserNotificationObject $object) } /** - * @inheritDoc * @return CommentResponseUserNotificationObject[] */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { return [new CommentResponseUserNotificationObject(self::createTestCommentResponse($recipient, $author))]; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentUserNotificationEvent.class.php index 61b1ea28f3e..8e8e12a9402 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/TTestableCommentUserNotificationEvent.class.php @@ -27,9 +27,7 @@ trait TTestableCommentUserNotificationEvent { use TTestableUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] public static function canBeTriggeredByGuests() { return true; @@ -74,9 +72,9 @@ public static function getTestAdditionalData(IUserNotificationObject $object) } /** - * @inheritDoc * @return CommentUserNotificationObject[] */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { return [new CommentUserNotificationObject(self::createTestComment($recipient, $author))]; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/TTestableLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/TTestableLikeUserNotificationEvent.class.php index 5e4083295ee..02c5129f6aa 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/TTestableLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/TTestableLikeUserNotificationEvent.class.php @@ -28,9 +28,7 @@ */ trait TTestableLikeUserNotificationEvent { - /** - * @inheritDoc - */ + #[\Override] public static function canBeTriggeredByGuests() { return false; @@ -64,9 +62,9 @@ protected static function getTestLikeObject(IUserNotificationObject $object) } /** - * @inheritDoc * @return LikeUserNotificationObject[] */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { /** @var ILikeObject $likeObject */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php index e6283687d0c..f562ed9d66e 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php @@ -27,9 +27,7 @@ class UserFollowFollowingUserNotificationEvent extends AbstractUserNotificationE */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -43,9 +41,7 @@ public function getTitle(): string return $this->getLanguage()->get('wcf.user.notification.follow.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = \array_values($this->getAuthors()); @@ -66,9 +62,7 @@ public function getMessage() ); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { return [ @@ -77,27 +71,23 @@ public function getEmailMessage(string $notificationType = 'instant') ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->author->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->followUserID); } /** - * @inheritDoc * @return UserFollowUserNotificationObject[] * @since 3.1 */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { $follow = UserFollow::getFollow($recipient->userID, $author->userID); @@ -115,9 +105,9 @@ public static function getTestObjects(UserProfile $recipient, UserProfile $autho } /** - * @inheritDoc * @since 3.1 */ + #[\Override] public static function getTestAdditionalData(IUserNotificationObject $object) { /** @var UserFollowUserNotificationObject $object */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php index 9bbb12b2ef4..0f7f9a66b91 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php @@ -28,17 +28,13 @@ class UserProfileCommentLikeUserNotificationEvent extends AbstractSharedUserNoti */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { UserProfileRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -52,9 +48,7 @@ public function getTitle(): string return $this->getLanguage()->get('wcf.user.notification.comment.like.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = \array_values($this->getAuthors()); @@ -94,17 +88,13 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { throw new \LogicException('Unreachable'); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { $owner = WCF::getUser(); @@ -115,17 +105,13 @@ public function getLink(): string return $owner->getLink() . '#wall/comment' . $this->getCommentID(); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getCommentID()); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; @@ -143,7 +129,6 @@ protected function getCommentID() } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php index 198ab17186d..3af1897bc36 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php @@ -28,18 +28,14 @@ class UserProfileCommentResponseLikeUserNotificationEvent extends AbstractShared */ protected $stackable = true; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { UserProfileRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); UserProfileRuntimeCache::getInstance()->cacheObjectID($this->additionalData['commentUserID']); } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { $count = \count($this->getAuthors()); @@ -56,9 +52,7 @@ public function getTitle(): string return $this->getLanguage()->get('wcf.user.notification.commentResponse.like.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = \array_values($this->getAuthors()); @@ -110,17 +104,13 @@ public function getMessage() ); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { throw new \LogicException('Unreachable'); } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { $owner = WCF::getUser(); @@ -131,17 +121,13 @@ public function getLink(): string return $owner->getLink() . '#wall/comment' . $this->additionalData['commentID'] . '/response' . $this->getResponseID(); } - /** - * @inheritDoc - */ + #[\Override] public function getEventHash() { return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; @@ -159,7 +145,6 @@ protected function getResponseID() } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php index 6f7daad7ae3..9ef48462568 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php @@ -23,9 +23,7 @@ class UserProfileCommentResponseOwnerUserNotificationEvent extends AbstractComme { use TTestableCommentResponseUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID); @@ -35,9 +33,7 @@ protected function prepare() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $comment = CommentRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->commentID); @@ -75,9 +71,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { $comment = CommentRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->commentID); @@ -105,33 +99,26 @@ public function getEmailMessage(string $notificationType = 'instant') ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#wall/comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.profile.menu.wall'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->username; } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php index 9c7fd48ec81..5061cfde4e9 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php @@ -23,18 +23,14 @@ class UserProfileCommentResponseUserNotificationEvent extends AbstractCommentRes { use TTestableCommentResponseUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { CommentRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->commentID); UserProfileRuntimeCache::getInstance()->cacheObjectID($this->additionalData['objectID']); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $owner = UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID']); @@ -64,9 +60,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { $comment = CommentRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->commentID); @@ -88,32 +82,25 @@ public function getEmailMessage(string $notificationType = 'instant') ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->getLink() . '#wall/comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.profile.menu.wall'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return UserProfileRuntimeCache::getInstance()->getObject($this->additionalData['objectID'])->username; } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php index f6966e77ed4..a82c9d2d80c 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php @@ -21,17 +21,13 @@ class UserProfileCommentUserNotificationEvent extends AbstractCommentUserNotific { use TTestableCommentUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] protected function prepare() { UserProfileRuntimeCache::getInstance()->cacheObjectID($this->getUserNotificationObject()->objectID); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { $authors = $this->getAuthors(); @@ -57,9 +53,7 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function getEmailMessage(string $notificationType = 'instant') { return [ @@ -75,26 +69,20 @@ public function getEmailMessage(string $notificationType = 'instant') ]; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return UserProfileRuntimeCache::getInstance()->getObject($this->getUserNotificationObject()->objectID)->getLink() . '#wall/comment' . $this->getUserNotificationObject()->commentID; } - /** - * @inheritDoc - */ + #[\Override] protected function getTypeName(): string { return $this->getLanguage()->get('wcf.user.profile.menu.wall'); } - /** - * @inheritDoc - */ + #[\Override] protected function getObjectTitle(): string { return UserProfileRuntimeCache::getInstance() @@ -102,7 +90,6 @@ protected function getObjectTitle(): string } /** - * @inheritDoc * @return array{objectID: int, objectTypeID: ?int} * @since 3.1 */ diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php index 82eb6e820f9..f5d8327692b 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserTrophyReceivedNotificationEvent.class.php @@ -32,17 +32,13 @@ class UserTrophyReceivedNotificationEvent extends AbstractUserNotificationEvent use TTestableCategorizedUserNotificationEvent; use TTestableUserNotificationEvent; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getLanguage()->get('wcf.user.notification.trophy.received.title'); } - /** - * @inheritDoc - */ + #[\Override] public function getMessage() { return $this->getLanguage()->getDynamicVariable('wcf.user.notification.trophy.received.message', [ @@ -51,35 +47,29 @@ public function getMessage() ]); } - /** - * @inheritDoc - */ + #[\Override] public function supportsEmailNotification() { return false; } - /** - * @inheritDoc - */ + #[\Override] public function getLink(): string { return $this->getUserNotificationObject()->getTrophy()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function checkAccess() { return $this->getUserNotificationObject()->getDecoratedObject()->canSee(); } /** - * @inheritDoc * @return UserTrophyNotificationObject[] * @since 3.1 */ + #[\Override] public static function getTestObjects(UserProfile $recipient, UserProfile $author) { /** @var Trophy $trophy */ diff --git a/wcfsetup/install/files/lib/system/user/notification/object/ArticleUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/ArticleUserNotificationObject.class.php index 5c9bbdf0af1..127cf8e51a5 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/ArticleUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/ArticleUserNotificationObject.class.php @@ -22,25 +22,19 @@ class ArticleUserNotificationObject extends DatabaseObjectDecorator implements I */ protected static $baseClass = Article::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->getDecoratedObject()->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/CommentResponseUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/CommentResponseUserNotificationObject.class.php index 221e9c8c839..c15c253e0e7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/CommentResponseUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/CommentResponseUserNotificationObject.class.php @@ -22,25 +22,19 @@ class CommentResponseUserNotificationObject extends DatabaseObjectDecorator impl */ protected static $baseClass = CommentResponse::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/CommentUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/CommentUserNotificationObject.class.php index 54c1b1e54d8..48087e97214 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/CommentUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/CommentUserNotificationObject.class.php @@ -22,25 +22,19 @@ class CommentUserNotificationObject extends DatabaseObjectDecorator implements I */ protected static $baseClass = Comment::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/LikeUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/LikeUserNotificationObject.class.php index b918730ca77..c9247fdfcb7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/LikeUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/LikeUserNotificationObject.class.php @@ -22,25 +22,19 @@ class LikeUserNotificationObject extends DatabaseObjectDecorator implements IUse */ protected static $baseClass = Like::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/PaidSubscriptionUserUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/PaidSubscriptionUserUserNotificationObject.class.php index 8f1417490db..6f2d1a7b4b7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/PaidSubscriptionUserUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/PaidSubscriptionUserUserNotificationObject.class.php @@ -24,25 +24,19 @@ class PaidSubscriptionUserUserNotificationObject extends DatabaseObjectDecorator */ protected static $baseClass = PaidSubscriptionUser::class; - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return 0; } - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getSubscription()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return LinkHandler::getInstance()->getLink('PaidSubscriptionList', ['forceFrontend' => true]); diff --git a/wcfsetup/install/files/lib/system/user/notification/object/UserFollowUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/UserFollowUserNotificationObject.class.php index c0d1a7d2434..5644a2db576 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/UserFollowUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/UserFollowUserNotificationObject.class.php @@ -22,25 +22,19 @@ class UserFollowUserNotificationObject extends DatabaseObjectDecorator implement */ protected static $baseClass = UserFollow::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return ''; } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/UserRegistrationUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/UserRegistrationUserNotificationObject.class.php index ade28139437..99902f0310e 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/UserRegistrationUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/UserRegistrationUserNotificationObject.class.php @@ -23,25 +23,19 @@ class UserRegistrationUserNotificationObject extends DatabaseObjectDecorator imp */ protected static $baseClass = User::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getDecoratedObject()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/UserTrophyNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/UserTrophyNotificationObject.class.php index 3f2d167c9eb..79dc9e8e9a0 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/UserTrophyNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/UserTrophyNotificationObject.class.php @@ -22,25 +22,19 @@ class UserTrophyNotificationObject extends DatabaseObjectDecorator implements IU */ protected static $baseClass = UserTrophy::class; - /** - * @inheritDoc - */ + #[\Override] public function getTitle(): string { return $this->getDecoratedObject()->getTrophy()->getTitle(); } - /** - * @inheritDoc - */ + #[\Override] public function getURL() { return $this->getDecoratedObject()->getTrophy()->getLink(); } - /** - * @inheritDoc - */ + #[\Override] public function getAuthorID() { return $this->getDecoratedObject()->userID; diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/AbstractUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/AbstractUserNotificationObjectType.class.php index 7b2674677b7..b5d9af2c73d 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/AbstractUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/AbstractUserNotificationObjectType.class.php @@ -33,9 +33,7 @@ class AbstractUserNotificationObjectType extends AbstractObjectTypeProcessor imp */ protected static $objectListClassName = ''; - /** - * @inheritDoc - */ + #[\Override] public function getObjectsByIDs(array $objectIDs) { $indexName = \call_user_func([static::$objectClassName, 'getDatabaseTableIndexName']); diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/ArticleCommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/ArticleCommentUserNotificationObjectType.class.php index 1b5f54d1dca..288a53eeac0 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/ArticleCommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/ArticleCommentUserNotificationObjectType.class.php @@ -36,9 +36,7 @@ class ArticleCommentUserNotificationObjectType extends AbstractUserNotificationO */ protected static $objectListClassName = CommentList::class; - /** - * @inheritDoc - */ + #[\Override] public function getOwnerID(int $objectID) { $sql = "SELECT article.userID @@ -54,9 +52,7 @@ public function getOwnerID(int $objectID) return $statement->fetchSingleColumn() ?: 0; } - /** - * @inheritDoc - */ + #[\Override] public function getRecipientIDs(Comment $comment) { $articleContent = new ArticleContent($comment->objectID); diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientModerationQueueCommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientModerationQueueCommentUserNotificationObjectType.class.php index 0cf59285e5c..69f64e5ee02 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientModerationQueueCommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientModerationQueueCommentUserNotificationObjectType.class.php @@ -26,9 +26,7 @@ */ trait TMultiRecipientModerationQueueCommentUserNotificationObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getRecipientIDs(Comment $comment) { $objectTypeID = CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.moderation.queue'); diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientPageCommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientPageCommentUserNotificationObjectType.class.php index 5f8e6123213..4fe8ccd12b4 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientPageCommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientPageCommentUserNotificationObjectType.class.php @@ -16,9 +16,7 @@ */ trait TMultiRecipientPageCommentUserNotificationObjectType { - /** - * @inheritDoc - */ + #[\Override] public function getRecipientIDs(Comment $comment) { // find all userIDs with the permission to manage pages diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentUserNotificationObjectType.class.php index 5426c754af7..8fb73ec6eac 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/UserProfileCommentUserNotificationObjectType.class.php @@ -32,9 +32,7 @@ class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificat */ protected static $objectListClassName = CommentList::class; - /** - * @inheritDoc - */ + #[\Override] public function getOwnerID(int $objectID) { $sql = "SELECT objectID diff --git a/wcfsetup/install/files/lib/system/user/object/watch/ArticleCategoryUserObjectWatch.class.php b/wcfsetup/install/files/lib/system/user/object/watch/ArticleCategoryUserObjectWatch.class.php index e58d16f4c92..02af9b6d9df 100644 --- a/wcfsetup/install/files/lib/system/user/object/watch/ArticleCategoryUserObjectWatch.class.php +++ b/wcfsetup/install/files/lib/system/user/object/watch/ArticleCategoryUserObjectWatch.class.php @@ -17,9 +17,7 @@ */ class ArticleCategoryUserObjectWatch extends AbstractObjectTypeProcessor implements IUserObjectWatch { - /** - * @inheritDoc - */ + #[\Override] public function validateObjectID(int $objectID) { $category = ArticleCategory::getCategory($objectID); @@ -31,9 +29,7 @@ public function validateObjectID(int $objectID) } } - /** - * @inheritDoc - */ + #[\Override] public function resetUserStorage(array $userIDs) { UserStorageHandler::getInstance()->reset($userIDs, 'unreadWatchedArticles'); diff --git a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php index f2eec49b8e8..02173862670 100644 --- a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php @@ -34,6 +34,7 @@ final class UserStorageHandler extends SingletonFactory /** * Checks whether Redis is available. */ + #[\Override] protected function init() { $cacheSource = CacheHandler::getInstance()->getCacheSource(); diff --git a/wcfsetup/install/files/lib/system/valinor/formatter/PrependPath.class.php b/wcfsetup/install/files/lib/system/valinor/formatter/PrependPath.class.php index 0ec3c60ca2c..70338815554 100644 --- a/wcfsetup/install/files/lib/system/valinor/formatter/PrependPath.class.php +++ b/wcfsetup/install/files/lib/system/valinor/formatter/PrependPath.class.php @@ -15,9 +15,7 @@ */ final class PrependPath implements MessageFormatter { - /** - * @inheritDoc - */ + #[\Override] public function format(NodeMessage $m): NodeMessage { return $m->withBody("{$m->path()}: {$m->body()}"); diff --git a/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php index 1d5710df490..801d17f3baa 100644 --- a/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php @@ -58,33 +58,25 @@ abstract class AbstractVersionTrackerProvider extends AbstractObjectTypeProvider */ public $permissionCanAccess = ''; - /** - * @inheritDoc - */ + #[\Override] public function canAccess() { return WCF::getSession()->getPermission($this->permissionCanAccess); } - /** - * @inheritDoc - */ + #[\Override] public function getActiveMenuItem() { return $this->activeMenuItem; } - /** - * @inheritDoc - */ + #[\Override] public function getDefaultProperty() { return static::$defaultProperty; } - /** - * @inheritDoc - */ + #[\Override] public function getPropertyLabel(string $property) { if (isset(static::$propertyLabels[$property])) { @@ -94,17 +86,13 @@ public function getPropertyLabel(string $property) return '(void)'; } - /** - * @inheritDoc - */ + #[\Override] public function getTrackedProperties() { return static::$trackedProperties; } - /** - * @inheritDoc - */ + #[\Override] public function isI18n(IVersionTrackerObject $object) { return $this->isI18n; diff --git a/wcfsetup/install/files/lib/system/version/ArticleVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/ArticleVersionTrackerProvider.class.php index 8d178f4f8b8..a09e2b49c41 100644 --- a/wcfsetup/install/files/lib/system/version/ArticleVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/ArticleVersionTrackerProvider.class.php @@ -64,9 +64,7 @@ class ArticleVersionTrackerProvider extends AbstractVersionTrackerProvider */ public static $trackedProperties = ['title', 'teaser', 'content']; - /** - * @inheritDoc - */ + #[\Override] public function getCurrentVersion(IVersionTrackerObject $object) { \assert($object instanceof ArticleVersionTracker); @@ -89,9 +87,7 @@ public function getCurrentVersion(IVersionTrackerObject $object) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTrackedData(IVersionTrackerObject $object) { \assert($object instanceof ArticleVersionTracker); @@ -109,18 +105,14 @@ public function getTrackedData(IVersionTrackerObject $object) return $data; } - /** - * @inheritDoc - */ + #[\Override] public function isI18n(IVersionTrackerObject $object) { \assert($object instanceof Article); return $object->isMultilingual == 1; } - /** - * @inheritDoc - */ + #[\Override] public function revert(IVersionTrackerObject $object, VersionTrackerEntry $entry) { /** @var ArticleVersionTracker $object */ diff --git a/wcfsetup/install/files/lib/system/version/BoxVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/BoxVersionTrackerProvider.class.php index 7a518df6fb2..d694a5d5445 100644 --- a/wcfsetup/install/files/lib/system/version/BoxVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/BoxVersionTrackerProvider.class.php @@ -63,9 +63,7 @@ class BoxVersionTrackerProvider extends AbstractVersionTrackerProvider */ public static $trackedProperties = ['title', 'content']; - /** - * @inheritDoc - */ + #[\Override] public function getCurrentVersion(IVersionTrackerObject $object) { \assert($object instanceof BoxVersionTracker); @@ -88,9 +86,7 @@ public function getCurrentVersion(IVersionTrackerObject $object) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTrackedData(IVersionTrackerObject $object) { \assert($object instanceof BoxVersionTracker); @@ -108,18 +104,14 @@ public function getTrackedData(IVersionTrackerObject $object) return $data; } - /** - * @inheritDoc - */ + #[\Override] public function isI18n(IVersionTrackerObject $object) { \assert($object instanceof Box); return $object->isMultilingual == 1; } - /** - * @inheritDoc - */ + #[\Override] public function revert(IVersionTrackerObject $object, VersionTrackerEntry $entry) { /** @var BoxVersionTracker $object */ diff --git a/wcfsetup/install/files/lib/system/version/PageVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/PageVersionTrackerProvider.class.php index 53eeb8c854f..9ae0b4924cc 100644 --- a/wcfsetup/install/files/lib/system/version/PageVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/PageVersionTrackerProvider.class.php @@ -65,9 +65,7 @@ class PageVersionTrackerProvider extends AbstractVersionTrackerProvider */ public static $trackedProperties = ['title', 'content', 'metaDescription', 'customURL']; - /** - * @inheritDoc - */ + #[\Override] public function getCurrentVersion(IVersionTrackerObject $object) { \assert($object instanceof PageVersionTracker); @@ -90,9 +88,7 @@ public function getCurrentVersion(IVersionTrackerObject $object) ]); } - /** - * @inheritDoc - */ + #[\Override] public function getTrackedData(IVersionTrackerObject $object) { \assert($object instanceof PageVersionTracker); @@ -110,18 +106,14 @@ public function getTrackedData(IVersionTrackerObject $object) return $data; } - /** - * @inheritDoc - */ + #[\Override] public function isI18n(IVersionTrackerObject $object) { \assert($object instanceof Page); return $object->isMultilingual == 1; } - /** - * @inheritDoc - */ + #[\Override] public function revert(IVersionTrackerObject $object, VersionTrackerEntry $entry) { /** @var PageVersionTracker $object */ diff --git a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php index e2505211d93..b214f87b536 100644 --- a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php +++ b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php @@ -27,9 +27,7 @@ class VersionTracker extends SingletonFactory */ protected $availableObjectTypes = []; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types diff --git a/wcfsetup/install/files/lib/system/view/ContentNotVisibleView.class.php b/wcfsetup/install/files/lib/system/view/ContentNotVisibleView.class.php index 25c3d89e147..ad2d48a6ac4 100644 --- a/wcfsetup/install/files/lib/system/view/ContentNotVisibleView.class.php +++ b/wcfsetup/install/files/lib/system/view/ContentNotVisibleView.class.php @@ -12,13 +12,13 @@ * @license GNU Lesser General Public License * @since 6.1 */ -final class ContentNotVisibleView +final class ContentNotVisibleView implements \Stringable { public function __construct( private readonly string $message, - ) { - } + ) {} + #[\Override] public function __toString(): string { return WCF::getTPL()->render('wcf', 'shared_contentNotVisible', [ diff --git a/wcfsetup/install/files/lib/system/view/user/profile/UserProfileHeaderView.class.php b/wcfsetup/install/files/lib/system/view/user/profile/UserProfileHeaderView.class.php index 6d0ac649c86..0e7c8445f4d 100644 --- a/wcfsetup/install/files/lib/system/view/user/profile/UserProfileHeaderView.class.php +++ b/wcfsetup/install/files/lib/system/view/user/profile/UserProfileHeaderView.class.php @@ -24,7 +24,7 @@ * @license GNU Lesser General Public License * @since 6.2 */ -final class UserProfileHeaderView +final class UserProfileHeaderView implements \Stringable { /** * @var UserProfileStatItem[] @@ -48,6 +48,7 @@ public function __construct( $this->initManagementContextMenu(); } + #[\Override] public function __toString(): string { return WCF::getTPL()->render('wcf', 'userProfileHeader', [ diff --git a/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php b/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php index 08cc1fefb3b..49e36fa3efe 100644 --- a/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php +++ b/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php @@ -41,9 +41,7 @@ class VisitTracker extends SingletonFactory */ protected $userVisits; - /** - * @inheritDoc - */ + #[\Override] protected function init() { // get available object types diff --git a/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php index 7fed7139f82..1f9ef2b85af 100644 --- a/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php @@ -38,17 +38,13 @@ abstract class AbstractRebuildDataWorker extends AbstractWorker implements IRebu */ protected $objectList; - /** - * @inheritDoc - */ + #[\Override] public function getObjectList() { return $this->objectList; } - /** - * @inheritDoc - */ + #[\Override] public function setLoopCount(int $loopCount) { parent::setLoopCount($loopCount); @@ -56,17 +52,13 @@ public function setLoopCount(int $loopCount) $this->initObjectList(); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.management.canRebuildData']); } - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { if ($this->count === null) { @@ -78,9 +70,7 @@ public function countObjects() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { $this->objectList->readObjects(); @@ -90,9 +80,7 @@ public function execute() EventHandler::getInstance()->fireAction($this, 'execute'); } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('RebuildData'); @@ -190,9 +178,7 @@ protected function getBulkUserPermissionValue(array &$userPermissions, $userID, return $userPermissions[$userID][$permission]; } - /** - * @inheritDoc - */ + #[\Override] public function finalize() { SearchIndexManager::getInstance()->commitBulkOperation(); diff --git a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php index e07f878cb94..d22ab8a6398 100644 --- a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php @@ -35,17 +35,13 @@ abstract class AbstractWorker implements IWorker */ protected $parameters = []; - /** - * @inheritDoc - */ + #[\Override] public function __construct(array $parameters) { $this->parameters = $parameters; } - /** - * @inheritDoc - */ + #[\Override] public function setLoopCount(int $loopCount) { $this->loopCount = $loopCount; @@ -58,9 +54,7 @@ public function setLoopCount(int $loopCount) */ abstract protected function countObjects(); - /** - * @inheritDoc - */ + #[\Override] public function getProgress() { $this->countObjects(); @@ -77,17 +71,13 @@ public function getProgress() return (int)\floor($progress); } - /** - * @inheritDoc - */ + #[\Override] public function getParameters() { return $this->parameters; } - /** - * @inheritDoc - */ + #[\Override] public function finalize() { // does nothing diff --git a/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php index 8e0eb415e91..52e0dda1cc3 100644 --- a/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php @@ -41,9 +41,7 @@ class ArticleRebuildDataWorker extends AbstractRebuildDataWorker */ protected $htmlInputProcessor; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -51,9 +49,7 @@ protected function initObjectList() $this->objectList->sqlOrderBy = 'article.articleID'; } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/system/worker/ImportWorker.class.php b/wcfsetup/install/files/lib/system/worker/ImportWorker.class.php index 42dc5ff59fb..36d29ec50a5 100644 --- a/wcfsetup/install/files/lib/system/worker/ImportWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/ImportWorker.class.php @@ -29,9 +29,7 @@ class ImportWorker extends AbstractWorker */ protected $exporter; - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.management.canImportData']); @@ -95,17 +93,13 @@ protected function getExporter(): IExporter return $this->exporter; } - /** - * @inheritDoc - */ + #[\Override] protected function countObjects() { $this->count = $this->getExporter()->countLoops($this->parameters['objectType']); } - /** - * @inheritDoc - */ + #[\Override] public function getProgress() { $this->countObjects(); @@ -122,9 +116,7 @@ public function getProgress() return (int)\floor($progress); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { if (!$this->count) { @@ -139,9 +131,7 @@ public function execute() $this->getExporter()->exportData($this->parameters['objectType'], $this->loopCount); } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return ''; diff --git a/wcfsetup/install/files/lib/system/worker/MailWorker.class.php b/wcfsetup/install/files/lib/system/worker/MailWorker.class.php index 0c28d864a00..b0b30db152a 100644 --- a/wcfsetup/install/files/lib/system/worker/MailWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/MailWorker.class.php @@ -41,9 +41,7 @@ class MailWorker extends AbstractWorker */ protected $mailData; - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.user.canMailUser']); @@ -69,9 +67,7 @@ public function validate() } } - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { $this->conditions = new PreparedStatementConditionBuilder(); @@ -102,9 +98,7 @@ public function countObjects() $this->count = $statement->fetchSingleColumn(); } - /** - * @inheritDoc - */ + #[\Override] public function getProgress() { $progress = parent::getProgress(); @@ -123,9 +117,7 @@ public function getProgress() return $progress; } - /** - * @inheritDoc - */ + #[\Override] public function execute() { $email = new Email(); @@ -185,9 +177,7 @@ protected function sendMail(Email $blueprint, User $user) } } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('UserList'); diff --git a/wcfsetup/install/files/lib/system/worker/MediaRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/MediaRebuildDataWorker.class.php index f95f2e63586..6335d55a6bd 100644 --- a/wcfsetup/install/files/lib/system/worker/MediaRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/MediaRebuildDataWorker.class.php @@ -27,9 +27,7 @@ class MediaRebuildDataWorker extends AbstractRebuildDataWorker */ protected $limit = 10; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -38,9 +36,7 @@ protected function initObjectList() $this->objectList->getConditionBuilder()->add('media.isImage = ?', [1]); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/system/worker/PageRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/PageRebuildDataWorker.class.php index ad70ac6e612..3cc3c88673f 100644 --- a/wcfsetup/install/files/lib/system/worker/PageRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/PageRebuildDataWorker.class.php @@ -38,9 +38,7 @@ class PageRebuildDataWorker extends AbstractRebuildDataWorker */ protected $htmlInputProcessor; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -49,9 +47,7 @@ protected function initObjectList() $this->objectList->getConditionBuilder()->add('page.pageType <> ?', ['system']); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/system/worker/PollRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/PollRebuildDataWorker.class.php index d50332797cd..67e0c1455eb 100644 --- a/wcfsetup/install/files/lib/system/worker/PollRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/PollRebuildDataWorker.class.php @@ -27,9 +27,7 @@ class PollRebuildDataWorker extends AbstractRebuildDataWorker */ protected $limit = 10; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { parent::initObjectList(); @@ -37,9 +35,7 @@ protected function initObjectList() $this->objectList->sqlOrderBy = 'poll.pollID'; } - /** - * @inheritDoc - */ + #[\Override] public function execute() { parent::execute(); diff --git a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php index a5bba896989..83b4b889858 100644 --- a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php @@ -31,9 +31,7 @@ class SendNewPasswordWorker extends AbstractWorker */ protected $limit = 20; - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { $userList = new UserList(); @@ -42,9 +40,7 @@ public function countObjects() $this->count = $userList->countObjects(); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { $userList = new UserList(); @@ -72,17 +68,13 @@ public function execute() } } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('UserList'); } - /** - * @inheritDoc - */ + #[\Override] public function getProgress() { $progress = parent::getProgress(); @@ -145,9 +137,7 @@ protected function sendLink(User $user) } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.user.canEditPassword']); diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index 1fb1817b152..4c7a46d0e3f 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -76,9 +76,7 @@ class SitemapRebuildWorker extends AbstractRebuildDataWorker */ private $sitemapData = []; - /** - * @inheritDoc - */ + #[\Override] public function initObjectList() { // This rebuild worker has no database object list @@ -86,9 +84,7 @@ public function initObjectList() // the parent method, that it does not throw an exception. } - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { // changes session owner to 'System' during the building of sitemaps @@ -141,9 +137,7 @@ public function countObjects() } } - /** - * @inheritDoc - */ + #[\Override] public function execute() { // changes session owner to 'System' during the building of sitemaps @@ -462,17 +456,13 @@ protected function loadWorkerData() } } - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.management.canRebuildData']); } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('SitemapList', [ diff --git a/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php index d9ab5e8cd82..126af5d80b6 100644 --- a/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php @@ -29,17 +29,13 @@ class StatDailyRebuildDataWorker extends AbstractRebuildDataWorker */ protected $startDate = 0; - /** - * @inheritDoc - */ + #[\Override] protected function initObjectList() { // does nothing } - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { $this->getStartDate(); @@ -47,9 +43,7 @@ public function countObjects() $this->count = (int)\ceil((TIME_NOW - $this->startDate) / 86400); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { EventHandler::getInstance()->fireAction($this, 'execute'); diff --git a/wcfsetup/install/files/lib/system/worker/UserActivityPointUpdateEventsWorker.class.php b/wcfsetup/install/files/lib/system/worker/UserActivityPointUpdateEventsWorker.class.php index 7934cab6a48..a1000afcffd 100644 --- a/wcfsetup/install/files/lib/system/worker/UserActivityPointUpdateEventsWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/UserActivityPointUpdateEventsWorker.class.php @@ -35,25 +35,19 @@ public function __construct(array $parameters) $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.activityPointEvent'); } - /** - * @inheritDoc - */ + #[\Override] public function validate() { WCF::getSession()->checkPermissions(['admin.user.canEditActivityPoints']); } - /** - * @inheritDoc - */ + #[\Override] public function countObjects() { $this->count = \count($this->objectTypes); } - /** - * @inheritDoc - */ + #[\Override] public function execute() { $i = 0; @@ -73,9 +67,7 @@ public function execute() } } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('UserActivityPointOption'); diff --git a/wcfsetup/install/files/lib/system/worker/UserContentRemoveWorker.class.php b/wcfsetup/install/files/lib/system/worker/UserContentRemoveWorker.class.php index 78e24b9eb2e..7c2b5ae4ec1 100644 --- a/wcfsetup/install/files/lib/system/worker/UserContentRemoveWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/UserContentRemoveWorker.class.php @@ -51,9 +51,7 @@ class UserContentRemoveWorker extends AbstractWorker */ public $contentProviders; - /** - * @inheritDoc - */ + #[\Override] public function validate() { if (isset($this->parameters['userID']) && !isset($this->parameters['userIDs'])) { @@ -197,17 +195,13 @@ private function generateData(): void } } - /** - * @inheritDoc - */ + #[\Override] protected function countObjects() { $this->count = $this->data['count']; } - /** - * @inheritDoc - */ + #[\Override] public function execute() { if (empty($this->data['provider'])) { @@ -236,9 +230,7 @@ public function execute() } } - /** - * @inheritDoc - */ + #[\Override] public function finalize() { parent::finalize(); @@ -259,9 +251,7 @@ public function finalize() ); } - /** - * @inheritDoc - */ + #[\Override] public function getProceedURL() { return LinkHandler::getInstance()->getLink('UserList'); diff --git a/wcfsetup/install/files/lib/util/Diff.class.php b/wcfsetup/install/files/lib/util/Diff.class.php index c7988a7cc24..d62e9187b95 100644 --- a/wcfsetup/install/files/lib/util/Diff.class.php +++ b/wcfsetup/install/files/lib/util/Diff.class.php @@ -368,6 +368,7 @@ public static function getDefaultDiffer(): Differ /** * @deprecated 6.0 Use sebastian/diff instead. */ + #[\Override] public function __toString(): string { return $this->getUnixDiff(); diff --git a/wcfsetup/install/files/lib/util/HtmlString.class.php b/wcfsetup/install/files/lib/util/HtmlString.class.php index f19d54dbf98..9e1c37e3cbb 100644 --- a/wcfsetup/install/files/lib/util/HtmlString.class.php +++ b/wcfsetup/install/files/lib/util/HtmlString.class.php @@ -28,6 +28,7 @@ public static function fromSafeHtml(string $value): self return new self($value); } + #[\Override] public function __toString(): string { return $this->value; diff --git a/wcfsetup/install/files/lib/util/IpAddress.class.php b/wcfsetup/install/files/lib/util/IpAddress.class.php index b187ebcac64..fdb5700c0b0 100644 --- a/wcfsetup/install/files/lib/util/IpAddress.class.php +++ b/wcfsetup/install/files/lib/util/IpAddress.class.php @@ -179,6 +179,7 @@ public function toBulletMasked(int $mask4, int $mask6): string /** * @see IpAddress::getIpAddress() */ + #[\Override] public function __toString(): string { return $this->getIpAddress(); diff --git a/wcfsetup/install/files/lib/util/UserAgent.class.php b/wcfsetup/install/files/lib/util/UserAgent.class.php index 82ca71b5943..513968ed687 100644 --- a/wcfsetup/install/files/lib/util/UserAgent.class.php +++ b/wcfsetup/install/files/lib/util/UserAgent.class.php @@ -384,6 +384,7 @@ public function getUserAgent(): string /** * @see UserAgent::getUserAgent() */ + #[\Override] public function __toString(): string { return $this->getUserAgent(); diff --git a/wcfsetup/install/files/lib/util/exception/HTTPException.class.php b/wcfsetup/install/files/lib/util/exception/HTTPException.class.php index 3af41385f7a..3f8cd290556 100644 --- a/wcfsetup/install/files/lib/util/exception/HTTPException.class.php +++ b/wcfsetup/install/files/lib/util/exception/HTTPException.class.php @@ -25,9 +25,6 @@ class HTTPException extends SystemException implements IExtraInformationExceptio */ protected $http; - /** - * @inheritDoc - */ public function __construct(HTTPRequest $http, $message, $code = 0, $previous = null) { parent::__construct($message, $code, '', $previous); @@ -35,9 +32,7 @@ public function __construct(HTTPRequest $http, $message, $code = 0, $previous = $this->http = $http; } - /** - * @inheritDoc - */ + #[\Override] public function getExtraInformation() { $reply = $this->http->getReply();