Improve some parameter docs

Change-Id: Ib81e443362b506772d6b7df1815baaa9f94fa5a6
This commit is contained in:
Umherirrender 2017-10-06 21:29:48 +02:00
parent 7960df75ca
commit 9b6bbc99d0
3 changed files with 7 additions and 11 deletions

View file

@ -3,10 +3,10 @@
class CiteThisPageHooks { class CiteThisPageHooks {
/** /**
* @param SkinTemplate $skintemplate * @param SkinTemplate &$skintemplate
* @param $nav_urls * @param array &$nav_urls
* @param $oldid * @param int &$oldid
* @param $revid * @param int &$revid
* @return bool * @return bool
*/ */
public static function onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink( public static function onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink(
@ -49,7 +49,7 @@ class CiteThisPageHooks {
/** /**
* @param BaseTemplate $baseTemplate * @param BaseTemplate $baseTemplate
* @param array $toolbox * @param array &$toolbox
* @return bool * @return bool
*/ */
public static function onBaseTemplateToolbox( BaseTemplate $baseTemplate, array &$toolbox ) { public static function onBaseTemplateToolbox( BaseTemplate $baseTemplate, array &$toolbox ) {

View file

@ -17,7 +17,7 @@ class SpecialCiteThisPage extends FormSpecialPage {
} }
/** /**
* @param $par string * @param string $par
*/ */
public function execute( $par ) { public function execute( $par ) {
$this->setHeaders(); $this->setHeaders();

View file

@ -2,9 +2,6 @@
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" /> <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
@ -12,6 +9,5 @@
</rule> </rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,php5,inc" /> <arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="utf8" /> <arg name="encoding" value="UTF-8" />
<exclude-pattern>vendor</exclude-pattern>
</ruleset> </ruleset>