From 547c1562c178edc6db00c3636ae8333bcc0bf295 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 11 Jan 2018 21:09:29 +0100 Subject: [PATCH] Improve some parameter docs Change-Id: I8ee2396e6a804ab69965383a9ee6b30787c1f9af --- .phpcs.xml | 5 +---- includes/CookieWarning.hooks.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 001deda..38b0041 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -3,12 +3,9 @@ - - . - - vendor + diff --git a/includes/CookieWarning.hooks.php b/includes/CookieWarning.hooks.php index 22beb7e..d4d21c7 100644 --- a/includes/CookieWarning.hooks.php +++ b/includes/CookieWarning.hooks.php @@ -9,10 +9,10 @@ class CookieWarningHooks { * If the disablecookiewarning POST data is send, disables the cookiewarning bar with a * cookie or a user preference, if the user is logged in. * - * @param Title $title - * @param null $unused - * @param OutputPage $output - * @param User $user + * @param Title &$title + * @param null &$unused + * @param OutputPage &$output + * @param User &$user * @param WebRequest $request * @param MediaWiki $mediawiki */ @@ -36,8 +36,8 @@ class CookieWarningHooks { * * Adds the CookieWarning information bar to the output html. * - * @param SkinTemplate $sk - * @param QuickTemplate $tpl + * @param SkinTemplate &$sk + * @param QuickTemplate &$tpl */ public static function onSkinTemplateOutputPageBeforeExec( SkinTemplate &$sk, QuickTemplate &$tpl @@ -157,7 +157,7 @@ class CookieWarningHooks { /** * ResourceLoaderGetConfigVars hook handler. * - * @param array $vars + * @param array &$vars */ public static function onResourceLoaderGetConfigVars( array &$vars ) { $conf = self::getConfig(); @@ -186,7 +186,7 @@ class CookieWarningHooks { * this page. * * @param IContextSource $context - * @return boolean Returns true, if the cookie warning should be visible, false otherwise. + * @return bool Returns true, if the cookie warning should be visible, false otherwise. */ private static function showWarning( IContextSource $context ) { $user = $context->getUser(); @@ -253,7 +253,7 @@ class CookieWarningHooks { * @see https://www.mediawiki.org/wiki/Manual:Hooks/GetPreferences * * @param User $user - * @param array $defaultPreferences + * @param array &$defaultPreferences * @return bool */ public static function onGetPreferences( User $user, &$defaultPreferences ) {