mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
Improve some parameter docs
Change-Id: I27525337ce5774e2a242b20218094ea588178661
This commit is contained in:
parent
0fa5eac497
commit
16e0650064
|
@ -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 ) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue