http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73452

Revision: 73452
Author:   reedy
Date:     2010-09-21 06:55:49 +0000 (Tue, 21 Sep 2010)

Log Message:
-----------
Braces, spaces, and a few unused arrays

Modified Paths:
--------------
    trunk/phase3/includes/User.php
    trunk/phase3/includes/parser/Parser.php
    trunk/phase3/languages/classes/LanguageKk.php

Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php      2010-09-21 06:09:41 UTC (rev 73451)
+++ trunk/phase3/includes/User.php      2010-09-21 06:55:49 UTC (rev 73452)
@@ -2761,9 +2761,9 @@
        function getMaxID() {
                static $res; // cache
 
-               if ( isset( $res ) )
+               if ( isset( $res ) ) {
                        return $res;
-               else {
+               } else {
                        $dbr = wfGetDB( DB_SLAVE );
                        return $res = $dbr->selectField( 'user', 
'max(user_id)', false, __METHOD__ );
                }

Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php     2010-09-21 06:09:41 UTC (rev 
73451)
+++ trunk/phase3/includes/parser/Parser.php     2010-09-21 06:55:49 UTC (rev 
73452)
@@ -3307,7 +3307,7 @@
 
                if ( !$title->equals( $cacheTitle ) ) {
                        $this->mTplRedirCache[$cacheTitle->getPrefixedDBkey()] =
-                               array( $title->getNamespace(),$cdb = 
$title->getDBkey() );
+                               array( $title->getNamespace(), $cdb = 
$title->getDBkey() );
                }
 
                return array( $dom, $title );

Modified: trunk/phase3/languages/classes/LanguageKk.php
===================================================================
--- trunk/phase3/languages/classes/LanguageKk.php       2010-09-21 06:09:41 UTC 
(rev 73451)
+++ trunk/phase3/languages/classes/LanguageKk.php       2010-09-21 06:55:49 UTC 
(rev 73452)
@@ -284,10 +284,10 @@
        }
 
        function regsConverter( $text, $toVariant ) {
-               if ( $text == '' ) return $text;
+               if ( $text == '' ) {
+                       return $text;
+               }
 
-               $pat = array();
-               $rep = array();
                switch( $toVariant ) {
                        case 'kk-arab':
                        case 'kk-cn':



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to