http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100129

Revision: 100129
Author:   reedy
Date:     2011-10-18 17:30:36 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Cleanup whitespace

Couple of bits of documentation

Modified Paths:
--------------
    trunk/phase3/maintenance/language/function-list.php
    trunk/phase3/maintenance/language/generateCollationData.php
    trunk/phase3/maintenance/language/writeMessagesArray.inc

Modified: trunk/phase3/maintenance/language/function-list.php
===================================================================
--- trunk/phase3/maintenance/language/function-list.php 2011-10-18 17:29:06 UTC 
(rev 100128)
+++ trunk/phase3/maintenance/language/function-list.php 2011-10-18 17:30:36 UTC 
(rev 100129)
@@ -23,6 +23,7 @@
 define( 'NOT_REALLY_MEDIAWIKI', 1 );
 
 class Language { }
+
 foreach ( glob( 'Language*.php' ) as $file ) {
        if ( $file != 'Language.php' ) {
                require_once( $file );
@@ -59,5 +60,3 @@
 }
 
 print "$numRemoved will be removed out of $total\n";
-
-

Modified: trunk/phase3/maintenance/language/generateCollationData.php
===================================================================
--- trunk/phase3/maintenance/language/generateCollationData.php 2011-10-18 
17:29:06 UTC (rev 100128)
+++ trunk/phase3/maintenance/language/generateCollationData.php 2011-10-18 
17:30:36 UTC (rev 100129)
@@ -12,7 +12,7 @@
        /** The primary weights, indexed by codepoint */
        var $weights;
 
-       /** 
+       /**
         * A hashtable keyed by codepoint, where presence indicates that a 
character
         * has a decomposition mapping. This makes it non-preferred for group 
header
         * selection.
@@ -30,7 +30,7 @@
        public function __construct() {
                parent::__construct();
                $this->addOption( 'data-dir', 'A directory on the local 
filesystem ' .
-                       'containing allkeys.txt and ucd.all.grouped.xml from 
unicode.org', 
+                       'containing allkeys.txt and ucd.all.grouped.xml from 
unicode.org',
                        false, true );
                $this->addOption( 'debug-output', 'Filename for sending debug 
output to',
                        false, true );
@@ -72,7 +72,7 @@
                // but do not skip a normal space (U+0020) since
                // people like to use that as a fake no header symbol.
                $category = substr( $data['gc'], 0, 1 );
-               if ( strpos( 'LNPS', $category ) === false 
+               if ( strpos( 'LNPS', $category ) === false
                        && $data['cp'] !== '0020' ) {
                        return;
                }
@@ -84,7 +84,7 @@
                        return;
                }
 
-               // Skip the composed Hangul syllables, we will use the bare 
Jamo 
+               // Skip the composed Hangul syllables, we will use the bare Jamo
                // as first letters
                if ( $data['block'] == 'Hangul Syllables' ) {
                        return;
@@ -163,7 +163,7 @@
                        }
                        $this->weights[$cp] = $primary;
                        if ( $tertiary === '.0008'
-                               || $tertiary === '.000E' ) 
+                               || $tertiary === '.000E' )
                        {
                                $goodTertiaryChars[$cp] = true;
                        }
@@ -192,8 +192,8 @@
                }
 
                // If one character has a given primary weight sequence, and a 
second
-               // character has a longer primary weight sequence with an 
initial 
-               // portion equal to the first character, then remove the second 
+               // character has a longer primary weight sequence with an 
initial
+               // portion equal to the first character, then remove the second
                // character. This avoids having characters like U+A732 (double 
A)
                // polluting the basic latin sort area.
 
@@ -306,11 +306,12 @@
                while ( $this->xml->name !== 'ucd' && $this->xml->read() );
                $this->xml->read();
                return $this->xml;
-       }       
+       }
 
        /**
-        * Read the attributes of the current element node and return them 
+        * Read the attributes of the current element node and return them
         * as an array
+        * @return array
         */
        protected function readAttributes() {
                $attrs = array();

Modified: trunk/phase3/maintenance/language/writeMessagesArray.inc
===================================================================
--- trunk/phase3/maintenance/language/writeMessagesArray.inc    2011-10-18 
17:29:06 UTC (rev 100128)
+++ trunk/phase3/maintenance/language/writeMessagesArray.inc    2011-10-18 
17:30:36 UTC (rev 100129)
@@ -106,6 +106,9 @@
                # Sort messages to blocks
                $sortedMessages['unknown'] = $messages;
                foreach( self::$messageStructure as $blockName => $block ) {
+                       /**
+                        * @var $block array
+                        */
                        foreach( $block as $key ) {
                                if( array_key_exists( $key, 
$sortedMessages['unknown'] ) ) {
                                        $sortedMessages[$blockName][$key] = 
$sortedMessages['unknown'][$key];


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to