jenkins-bot has submitted this change and it was merged.

Change subject: Code formatting fixes
......................................................................


Code formatting fixes

Stylized.
Follow up Ic8ffb0d9759338617a92ad171a87652aaca6ccb6

Change-Id: I0db5f0eb4ba097882f9a620c3d32e8e9a7a9c2b5
---
M rebuild.php
1 file changed, 12 insertions(+), 12 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/rebuild.php b/rebuild.php
index 50006b2..d494dbc 100644
--- a/rebuild.php
+++ b/rebuild.php
@@ -90,9 +90,9 @@
                        }
                }
 
-               //Now parse out what we want form the supplemental file
+               // Now parse out what we want form the supplemental file
                $this->output( "Parsing Supplemental Data...\n" );
-               //argh! If $DATA defaulted to something slightly more general 
in the
+               // argh! If $DATA defaulted to something slightly more general 
in the
                // CLDR dump, this wouldn't have to be this way.
                $input = "$DATA/../supplemental/supplementalData.xml";
                if ( file_exists( $input ) ) {
@@ -216,9 +216,9 @@
                        'localeCurrencies' => array(),
                );
 
-               //Pull currency attributes - digits, rounding, and cashRounding.
-               //This will tell us how many decmal places make sense to use 
with any currency,
-               //or if the currency is totally non-fractional
+               // Pull currency attributes - digits, rounding, and 
cashRounding.
+               // This will tell us how many decmal places make sense to use 
with any currency,
+               // or if the currency is totally non-fractional
                foreach ( $doc->xpath( '//currencyData/fractions/info' ) as 
$elem ) {
                        if ( (string)$elem['iso4217'] === '' ) {
                                continue;
@@ -232,7 +232,7 @@
                        }
                }
 
-               //Pull a map of regions to currencies in order of perference.
+               // Pull a map of regions to currencies in order of perference.
                foreach ( $doc->xpath( '//currencyData/region' ) as $elem ) {
                        if ( (string)$elem['iso3166'] === '' ) {
                                continue;
@@ -297,7 +297,7 @@
                        }
                }
 
-               //now massage the data somewhat. It's pretty blown up at this 
point.
+               // now massage the data somewhat. It's pretty blown up at this 
point.
 
                /**
                 * Part 1: Stop blowing up on defaults.
@@ -311,7 +311,7 @@
                 * From narrowest scope to widest, collapse the defaults
                 */
                foreach ( $data['currencySymbols'] as $currency => $language ) {
-                       //get the currency default symbol. This will either be 
defined in the
+                       // get the currency default symbol. This will either be 
defined in the
                        // 'root' language file, or taken from the ISO code.
                        $default = $currency;
                        if ( array_key_exists( 'root', $language ) ) {
@@ -319,7 +319,7 @@
                        }
 
                        foreach ( $language as $lang => $territories ) {
-                               //Collapse a language (no locality) array if 
it's just the default. One value will do fine.
+                               // Collapse a language (no locality) array if 
it's just the default. One value will do fine.
                                if ( is_array( $territories ) ) {
                                        if ( count( $territories ) === 1 && 
array_key_exists( 'DEFAULT', $territories ) ) {
                                                
$data['currencySymbols'][$currency][$lang] = $territories['DEFAULT'];
@@ -359,8 +359,8 @@
                        return;
                }
 
-               //Yes, I am aware I could have simply used var_export.
-               //...the spacing was ugly.
+               // Yes, I am aware I could have simply used var_export.
+               // ...the spacing was ugly.
                $output = "<?php\n";
                foreach ( $data as $varname => $values ) {
                        if ( !count( $values ) ) {
@@ -415,7 +415,7 @@
                        }
                }
 
-               if( $subKeys === '' ) {
+               if ( $subKeys === '' ) {
                        $ret = '';
                } else {
                        $ret = "$tabs$key => array(\n$subKeys$tabs),\n";

-- 
To view, visit https://gerrit.wikimedia.org/r/91558
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0db5f0eb4ba097882f9a620c3d32e8e9a7a9c2b5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/cldr
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to