Remove phpcs exclusion rule MediaWiki.Commenting.PropertyDocumentation.MissingVar

Fix code to pass phpcs.

Change-Id: I093b87804d6b2c66efa6ba039d6f1e4720f30209
This commit is contained in:
Fomafix 2023-10-23 20:53:13 +00:00
parent dee4a7e067
commit 4fd709678e
2 changed files with 4 additions and 6 deletions

View file

@ -1,8 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingVar" />
</rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php" /> <arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />

View file

@ -51,15 +51,15 @@ class Hooks implements
ResourceLoaderGetConfigVarsHook, ResourceLoaderGetConfigVarsHook,
ThumbnailBeforeProduceHTMLHook ThumbnailBeforeProduceHTMLHook
{ {
/** Link to more information about this module */ /** @var string Link to more information about this module */
protected static $infoLink = protected static $infoLink =
'https://mediawiki.org/wiki/Special:MyLanguage/Extension:Media_Viewer/About'; '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 = protected static $discussionLink =
'https://mediawiki.org/wiki/Special:MyLanguage/Extension_talk:Media_Viewer/About'; '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 = protected static $helpLink =
'https://mediawiki.org/wiki/Special:MyLanguage/Help:Extension:Media_Viewer'; 'https://mediawiki.org/wiki/Special:MyLanguage/Help:Extension:Media_Viewer';