r82586 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82585‎ | r82586 | r82587 >
Date:00:28, 22 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Tweak and improve some documentation

Change !( $foo === $bar ) to $foo !== $bar
Modified paths:
  • /trunk/extensions/Babel/Babel.class.php (modified) (history)
  • /trunk/extensions/Babel/BabelAutoCreate.class.php (modified) (history)
  • /trunk/extensions/Babel/BabelStatic.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/Babel.class.php
@@ -6,12 +6,16 @@
77 * @ingroup Extensions
88 */
99 class Babel {
 10+
 11+ /**
 12+ * @var Title
 13+ */
1014 static $title;
1115
1216 /**
1317 * Render the Babel tower.
1418 *
15 - * @param $parser Object: Parser.
 19+ * @param $parser Parser.
1620 * @return string: Babel tower.
1721 */
1822 public static function Render( $parser ) {
Index: trunk/extensions/Babel/BabelStatic.class.php
@@ -8,6 +8,9 @@
99 class BabelStatic {
1010 /**
1111 * Registers the parser function hook.
 12+ *
 13+ * @param $parser Parser
 14+ *
1215 * @return Boolean: True.
1316 */
1417 public static function Setup( $parser ) {
Index: trunk/extensions/Babel/BabelAutoCreate.class.php
@@ -5,6 +5,10 @@
66 * @ingroup Extensions
77 */
88 class BabelAutoCreate {
 9+
 10+ /**
 11+ * @var User
 12+ */
913 static $user = false;
1014
1115 /**
@@ -12,7 +16,7 @@
1317 */
1418 public static function RegisterAbort( User $user, &$message ) {
1519 $message = wfMsg( 'babel-autocreate-abort', wfMsg( 'babel-url' ) );
16 - return !( $user->getName() === wfMsgForContent( 'babel-autocreate-user' ) );
 20+ return $user->getName() !== wfMsgForContent( 'babel-autocreate-user' );
1721 }
1822
1923 /**

Status & tagging log