mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-12 08:50:57 +00:00
Improve some parameter docs
Change-Id: Iaabc83e52c97bc6d33a89208a4ce512ec944b57d
This commit is contained in:
parent
8fd002756a
commit
b1ef6a7f2c
|
@ -34,8 +34,8 @@ class CodeMirrorHooks {
|
|||
*
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/BeforePageDisplay
|
||||
*
|
||||
* @param OutputPage $out
|
||||
* @param Skin $skin
|
||||
* @param OutputPage &$out
|
||||
* @param Skin &$skin
|
||||
*/
|
||||
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
|
||||
if ( self::isCodeMirrorEnabled( $out->getContext() ) ) {
|
||||
|
@ -49,7 +49,7 @@ class CodeMirrorHooks {
|
|||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/GetPreferences
|
||||
*
|
||||
* @param User $user
|
||||
* @param array $defaultPreferences
|
||||
* @param array &$defaultPreferences
|
||||
*/
|
||||
public static function onGetPreferences( User $user, &$defaultPreferences ) {
|
||||
// CodeMirror is enabled by default for users. It can
|
||||
|
@ -64,7 +64,7 @@ class CodeMirrorHooks {
|
|||
* GetBetaFeaturePreferences hook handler
|
||||
*
|
||||
* @param User $user
|
||||
* @param array $preferences
|
||||
* @param array &$preferences
|
||||
*/
|
||||
public static function onGetBetaFeaturePreferences( User $user, &$preferences ) {
|
||||
global $wgCodeMirrorBetaFeature, $wgExtensionAssetsPath;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
class ResourceLoaderCodeMirrorModule extends ResourceLoaderFileModule {
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getScript( ResourceLoaderContext $context ) {
|
||||
return ResourceLoader::makeConfigSetScript(
|
||||
|
@ -36,7 +36,7 @@ class ResourceLoaderCodeMirrorModule extends ResourceLoaderFileModule {
|
|||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function supportsURLLoading() {
|
||||
// This module does not support loading URLs, because it inserts
|
||||
|
@ -45,7 +45,7 @@ class ResourceLoaderCodeMirrorModule extends ResourceLoaderFileModule {
|
|||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function enableModuleContentVersion() {
|
||||
return true;
|
||||
|
|
|
@ -2,14 +2,9 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment"/>
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag"/>
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
|
||||
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn"/>
|
||||
</rule>
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,php5,inc"/>
|
||||
<arg name="encoding" value="UTF-8"/>
|
||||
<exclude-pattern>vendor</exclude-pattern>
|
||||
<exclude-pattern>node_modules</exclude-pattern>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue