mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Improve some parameter docs
Change-Id: Ic78a889eb7374731a282312c9eadb701483ae298
This commit is contained in:
parent
f9399ddc9a
commit
afb2db82ad
|
@ -6,7 +6,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
"parallel-lint . --exclude vendor",
|
||||
"parallel-lint . --exclude vendor --exclude node_modules",
|
||||
"phpcs -p -s"
|
||||
],
|
||||
"fix": [
|
||||
|
|
|
@ -74,7 +74,7 @@ class UserPreferencesChangeHandler {
|
|||
* @param array $formData Form data submitted by user
|
||||
* @param PreferencesForm $form A preferences form
|
||||
* @param User $user Logged-in user
|
||||
* @param boolean &$result Variable defining is form save successful
|
||||
* @param bool &$result Variable defining is form save successful
|
||||
* @param array $oldUserOptions Old user options array
|
||||
*/
|
||||
public static function onPreferencesFormPreSave(
|
||||
|
|
10
phpcs.xml
10
phpcs.xml
|
@ -1,17 +1,15 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
</rule>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
|
||||
<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" />
|
||||
|
||||
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
||||
<properties>
|
||||
<property name="equalsSpacing" value="1" />
|
||||
<property name="requiredSpacesAfterOpen" value="1" />
|
||||
<property name="requiredSpacesBeforeClose" value="1" />
|
||||
<property name="requiredSpacesAfterOpen" value="1" />
|
||||
<property name="requiredSpacesBeforeClose" value="1" />
|
||||
</properties>
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue