Improve some parameter docs

Change-Id: I27525337ce5774e2a242b20218094ea588178661
This commit is contained in:
Umherirrender 2017-10-11 21:01:37 +02:00
parent 0fa5eac497
commit 16e0650064
2 changed files with 5 additions and 8 deletions

View file

@ -3,8 +3,8 @@
class CodeEditorHooks {
/**
* @param Title $title
* @param $model
* @param $format
* @param string $model
* @param string $format
* @return null|string
*/
static function getPageLanguage( Title $title, $model, $format ) {
@ -29,8 +29,8 @@ class CodeEditorHooks {
}
/**
* @param $user
* @param $defaultPreferences
* @param User $user
* @param array &$defaultPreferences
* @return bool
*/
public static function getPreferences( $user, &$defaultPreferences ) {

View file

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