Improve some parameter docs

Change-Id: Ic78a889eb7374731a282312c9eadb701483ae298
This commit is contained in:
Umherirrender 2017-08-10 13:23:37 +02:00
parent f9399ddc9a
commit afb2db82ad
3 changed files with 6 additions and 8 deletions

View file

@ -6,7 +6,7 @@
},
"scripts": {
"test": [
"parallel-lint . --exclude vendor",
"parallel-lint . --exclude vendor --exclude node_modules",
"phpcs -p -s"
],
"fix": [

View file

@ -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(

View file

@ -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>