From: Reedy Date: Wed, 6 Mar 2013 01:25:45 +0000 (+0000) Subject: Few more message parameter type hints X-Git-Tag: 1.31.0-rc.0~20432^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=9f4d498bebdb3993c116342dd307f54aae5aca34;p=lhc%2Fweb%2Fwiklou.git Few more message parameter type hints Change-Id: I9017170a434b8924692e04410acc88831237ef8d --- diff --git a/includes/Message.php b/includes/Message.php index 6e533a317e..d8a94f9cee 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -743,8 +743,8 @@ class RawMessage extends Message { * Call the parent constructor, then store the key as * the message. * - * @param $key Message to use - * @param $params Parameters for the message + * @param $key string Message to use + * @param $params array Parameters for the message * @see Message::__construct */ public function __construct( $key, $params = array() ) { diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 634d06f8d1..c2a49478fc 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -201,7 +201,7 @@ class LoginForm extends SpecialPage { if( !$status->isGood() ) { $error = $this->getOutput()->parse( $status->getWikiText() ); $this->mainLoginForm( $error ); - return false; + return; } $u = $status->getValue(); @@ -831,6 +831,9 @@ class LoginForm extends SpecialPage { } } + /** + * @param $error string + */ function resetLoginForm( $error ) { $this->getOutput()->addHTML( Xml::element( 'p', array( 'class' => 'error' ), $error ) ); $reset = new SpecialChangePassword(); @@ -945,6 +948,7 @@ class LoginForm extends SpecialPage { * User::isBlockedFromCreateAccount(), which gets this block, ignores the 'hardblock' * setting on blocks (bug 13611). * @param $block Block the block causing this error + * @throws ErrorPageError */ function userBlockedMessage( Block $block ) { # Let's be nice about this, it's likely that this feature will be used @@ -1334,8 +1338,8 @@ class LoginForm extends SpecialPage { * Create a language selector link for a particular language * Links back to this page preserving type and returnto * - * @param $text Link text - * @param $lang Language code + * @param $text string Link text + * @param $lang string Language code * @return string */ function makeLanguageSelectorLink( $text, $lang ) {