stylize.php - minor whitespace fixes.
authorSanthosh Thottingal <santhosh@users.mediawiki.org>
Thu, 22 Sep 2011 11:52:44 +0000 (11:52 +0000)
committerSanthosh Thottingal <santhosh@users.mediawiki.org>
Thu, 22 Sep 2011 11:52:44 +0000 (11:52 +0000)
languages/Language.php

index 522c44b..6faf7e6 100644 (file)
@@ -2614,7 +2614,7 @@ class Language {
                $digitGroupingPattern = $this->digitGroupingPattern();
 
                if ( !$digitGroupingPattern || $digitGroupingPattern === "###,###,###" ) {
-                       //default grouping is at thousands,  use the same for ###,###,### pattern too.
+                       // default grouping is at thousands,  use the same for ###,###,### pattern too.
                        return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
                } else {
                        // Ref: http://cldr.unicode.org/translation/number-patterns
@@ -2624,8 +2624,8 @@ class Language {
                        preg_match( "/\d+/", $_, $numberpart );
                        preg_match( "/\.\d*/", $_, $decimalpart );
                        $groupedNumber = ( count( $decimalpart ) > 0 ) ? $decimalpart[0]:"";
-                       if ( $groupedNumber  === $_ ){
-                               //the string does not have any number part. Eg: .12345
+                       if ( $groupedNumber  === $_ ) {
+                               // the string does not have any number part. Eg: .12345
                                return $groupedNumber;
                        }
                        $start = $end = strlen( $numberpart[0] );