From: Matthias Schmidt Date: Mon, 18 Jan 2021 16:09:08 +0000 (+0100) Subject: Remove `@noinspection PhpUnusedParameterInspection` comments X-Git-Tag: 5.4.0_Alpha_1~426 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a1f51969bdbf7871b2dd10366f91dba445a70fa;p=GitHub%2FWoltLab%2FWCF.git Remove `@noinspection PhpUnusedParameterInspection` comments --- 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 22a38ea83b..9fab6b807b 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php @@ -16,7 +16,7 @@ class ArticleListPageHandler extends AbstractMenuPageHandler { /** * @inheritDoc */ - public function getOutstandingItemCount(/** @noinspection PhpUnusedParameterInspection */$objectID = null) { + public function getOutstandingItemCount($objectID = null) { return ARTICLE_ENABLE_VISIT_TRACKING ? ViewableArticle::getUnreadArticles() : 0; } 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 4a9e07eac9..8ec90032aa 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php @@ -86,7 +86,7 @@ class ArticlePageHandler extends AbstractLookupPageHandler implements IOnlineLoc /** * @inheritDoc */ - public function prepareOnlineLocation(/** @noinspection PhpUnusedParameterInspection */Page $page, UserOnline $user) { + public function prepareOnlineLocation(Page $page, UserOnline $user) { if ($user->pageObjectID !== null) { ViewableArticleContentRuntimeCache::getInstance()->cacheObjectID($user->pageObjectID); } diff --git a/wcfsetup/install/files/lib/system/page/handler/TUserOnlineLocationPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TUserOnlineLocationPageHandler.class.php index a3867eae23..83630b4f28 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TUserOnlineLocationPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TUserOnlineLocationPageHandler.class.php @@ -49,7 +49,7 @@ trait TUserOnlineLocationPageHandler { * @param UserOnline $user user online object with request data * @see IOnlineLocationPageHandler::prepareOnlineLocation() */ - public function prepareOnlineLocation(/** @noinspection PhpUnusedParameterInspection */Page $page, UserOnline $user) { + public function prepareOnlineLocation(Page $page, UserOnline $user) { if ($user->pageObjectID !== null) { UserRuntimeCache::getInstance()->cacheObjectID($user->pageObjectID); } 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 fb04d610f8..0cd994d046 100644 --- a/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php @@ -15,14 +15,14 @@ class UnreadArticleListPageHandler extends AbstractMenuPageHandler { /** * @inheritDoc */ - public function getOutstandingItemCount(/** @noinspection PhpUnusedParameterInspection */$objectID = null) { + public function getOutstandingItemCount($objectID = null) { return ViewableArticle::getUnreadArticles(); } /** * @inheritDoc */ - public function isVisible(/** @noinspection PhpUnusedParameterInspection */$objectID = null) { + public function isVisible($objectID = null) { return ARTICLE_ENABLE_VISIT_TRACKING && !empty(ViewableArticle::getUnreadArticles()); } } 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 d758bcabfb..63b2b869a7 100644 --- a/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php @@ -16,7 +16,7 @@ class WatchedArticleListPageHandler extends AbstractMenuPageHandler { /** * @inheritDoc */ - public function getOutstandingItemCount(/** @noinspection PhpUnusedParameterInspection */$objectID = null) { + public function getOutstandingItemCount($objectID = null) { return ARTICLE_ENABLE_VISIT_TRACKING ? ViewableArticle::getWatchedUnreadArticles() : 0; }