mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-28 00:40:38 +00:00
Improve param docs
Change-Id: I4b91b39757bb1a2717550f7c771537ee28ce0761
This commit is contained in:
parent
8b0361f994
commit
159b6b3b38
|
@ -1,9 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
|
||||
<exclude name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
|
||||
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
|
||||
</rule>
|
||||
|
||||
|
|
|
@ -562,7 +562,7 @@ class LoginNotify implements LoggerAwareInterface {
|
|||
* machines.
|
||||
*
|
||||
* @param User $user
|
||||
* @param $cookieRecord
|
||||
* @param string $cookieRecord
|
||||
* @return bool
|
||||
*/
|
||||
private function isUserRecordGivenCookie( User $user, $cookieRecord ) {
|
||||
|
@ -638,8 +638,8 @@ class LoginNotify implements LoggerAwareInterface {
|
|||
/**
|
||||
* Get the cache key for the counter.
|
||||
*
|
||||
* @param $user User
|
||||
* @param $type string 'known' or 'new'
|
||||
* @param User $user
|
||||
* @param string $type 'known' or 'new'
|
||||
* @return string The cache key
|
||||
*/
|
||||
private function getKey( User $user, $type ) {
|
||||
|
|
|
@ -100,7 +100,7 @@ class MigratePreferences extends LoggedUpdateMaintenance {
|
|||
* Update one user's preferences
|
||||
*
|
||||
* @param object $userRow Row from the user table
|
||||
* @param array $options Associative array of preference => value
|
||||
* @param array &$options Associative array of preference => value
|
||||
* @return int Number of options updated
|
||||
*/
|
||||
private function updateUser( $userRow, array &$options ) {
|
||||
|
|
Loading…
Reference in a new issue