Index: trunk/phase3/languages/Language.php |
— | — | @@ -2614,7 +2614,7 @@ |
2615 | 2615 | $digitGroupingPattern = $this->digitGroupingPattern(); |
2616 | 2616 | |
2617 | 2617 | if ( !$digitGroupingPattern || $digitGroupingPattern === "###,###,###" ) { |
2618 | | - //default grouping is at thousands, use the same for ###,###,### pattern too. |
| 2618 | + // default grouping is at thousands, use the same for ###,###,### pattern too. |
2619 | 2619 | return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); |
2620 | 2620 | } else { |
2621 | 2621 | // Ref: http://cldr.unicode.org/translation/number-patterns |
— | — | @@ -2624,8 +2624,8 @@ |
2625 | 2625 | preg_match( "/\d+/", $_, $numberpart ); |
2626 | 2626 | preg_match( "/\.\d*/", $_, $decimalpart ); |
2627 | 2627 | $groupedNumber = ( count( $decimalpart ) > 0 ) ? $decimalpart[0]:""; |
2628 | | - if ( $groupedNumber === $_ ){ |
2629 | | - //the string does not have any number part. Eg: .12345 |
| 2628 | + if ( $groupedNumber === $_ ) { |
| 2629 | + // the string does not have any number part. Eg: .12345 |
2630 | 2630 | return $groupedNumber; |
2631 | 2631 | } |
2632 | 2632 | $start = $end = strlen( $numberpart[0] ); |