From: Santhosh Thottingal Date: Thu, 22 Sep 2011 11:52:44 +0000 (+0000) Subject: stylize.php - minor whitespace fixes. X-Git-Tag: 1.31.0-rc.0~27480 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=86b7927ad6d1bda13f7c21dc0dfb6605eb71648a;p=lhc%2Fweb%2Fwiklou.git stylize.php - minor whitespace fixes. --- diff --git a/languages/Language.php b/languages/Language.php index 522c44bc4d..6faf7e6ef5 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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] );