r97809 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97808‎ | r97809 | r97810 >
Date:11:52, 22 September 2011
Author:santhosh
Status:ok
Tags:
Comment:
stylize.php - minor whitespace fixes.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -2614,7 +2614,7 @@
26152615 $digitGroupingPattern = $this->digitGroupingPattern();
26162616
26172617 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.
26192619 return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) );
26202620 } else {
26212621 // Ref: http://cldr.unicode.org/translation/number-patterns
@@ -2624,8 +2624,8 @@
26252625 preg_match( "/\d+/", $_, $numberpart );
26262626 preg_match( "/\.\d*/", $_, $decimalpart );
26272627 $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
26302630 return $groupedNumber;
26312631 }
26322632 $start = $end = strlen( $numberpart[0] );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97807Fix mixed tabs and spaces from r97793...reedy11:06, 22 September 2011

Status & tagging log