From 4fd709678e76a2656a782772a3f18c158c3e5923 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 23 Oct 2023 20:53:13 +0000 Subject: [PATCH] Remove phpcs exclusion rule MediaWiki.Commenting.PropertyDocumentation.MissingVar Fix code to pass phpcs. Change-Id: I093b87804d6b2c66efa6ba039d6f1e4720f30209 --- .phpcs.xml | 4 +--- includes/Hooks.php | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 9a638bf7a..eddb6dc85 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,8 +1,6 @@ - - - + . diff --git a/includes/Hooks.php b/includes/Hooks.php index a20f4f44c..d21418c39 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -51,15 +51,15 @@ class Hooks implements ResourceLoaderGetConfigVarsHook, ThumbnailBeforeProduceHTMLHook { - /** Link to more information about this module */ + /** @var string Link to more information about this module */ protected static $infoLink = 'https://mediawiki.org/wiki/Special:MyLanguage/Extension:Media_Viewer/About'; - /** Link to a page where this module can be discussed */ + /** @var string Link to a page where this module can be discussed */ protected static $discussionLink = 'https://mediawiki.org/wiki/Special:MyLanguage/Extension_talk:Media_Viewer/About'; - /** Link to help about this module */ + /** @var string Link to help about this module */ protected static $helpLink = 'https://mediawiki.org/wiki/Special:MyLanguage/Help:Extension:Media_Viewer';