Remove `@noinspection PhpUnusedParameterInspection` comments
authorMatthias Schmidt <gravatronics@live.com>
Mon, 18 Jan 2021 16:09:08 +0000 (17:09 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 18 Jan 2021 16:09:08 +0000 (17:09 +0100)
wcfsetup/install/files/lib/system/page/handler/ArticleListPageHandler.class.php
wcfsetup/install/files/lib/system/page/handler/ArticlePageHandler.class.php
wcfsetup/install/files/lib/system/page/handler/TUserOnlineLocationPageHandler.class.php
wcfsetup/install/files/lib/system/page/handler/UnreadArticleListPageHandler.class.php
wcfsetup/install/files/lib/system/page/handler/WatchedArticleListPageHandler.class.php

index 22a38ea83b3152040dc92d1e71aabd2bb87c296a..9fab6b807b8848a09cf2f639df26407f5aad90f4 100644 (file)
@@ -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;
        }
        
index 4a9e07eac961deb6b51cc8b1d891d7bd574e5225..8ec90032aaec6ca938e65469078c000724a567d0 100644 (file)
@@ -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);
                }
index a3867eae23d252a3318ed0c40b2a6b0775bc7ab0..83630b4f28a64be253dc3266f34e939eadd05e3f 100644 (file)
@@ -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);
                }
index fb04d610f8080b2cf71c6b2a214fa7104ec602ea..0cd994d0465c90e2b842f0dc1b469203d2fef512 100644 (file)
@@ -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());
        }
 }
index d758bcabfbe3fe1540f54cd8113992931f2ccac8..63b2b869a7169b6bc0a7ffb03a9e6b0642c0e942 100644 (file)
@@ -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;
        }