From: Jack Phoenix Date: Mon, 22 Mar 2010 18:39:53 +0000 (+0000) Subject: braces, spacing + comment tweaks X-Git-Tag: 1.31.0-rc.0~37388 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=8f385c5bb0b9816c9e29db68984e74edcc46413e;p=lhc%2Fweb%2Fwiklou.git braces, spacing + comment tweaks --- diff --git a/includes/Message.php b/includes/Message.php index ccc92429d6..4048c86a41 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -23,7 +23,7 @@ * * Shortcut for escaping the message too, similar to wfMsgHTML, but * parameters are not replaced after escaping by default. - * $escaped = Message::key( 'key' )->rawParam( 'apple' ).escaped(); + * $escaped = Message::key( 'key' )->rawParam( 'apple' )->escaped(); * * TODO: * * document everything @@ -86,7 +86,6 @@ class Message { * @param $value Array: list of parameters, array keys will be ignored. * @return Message: reference to the object */ - public function paramList( array $values ) { $this->parameters += array_values( $values ); return $this; @@ -166,7 +165,9 @@ class Message { protected function transformText( $string ) { global $wgMessageCache; - if ( !isset( $wgMessageCache ) ) return $string; + if ( !isset( $wgMessageCache ) ) { + return $string; + } // FIXME: handle second param correctly return $wgMessageCache->transform( $string, true, $this->getLanguage() ); }