Index: trunk/phase3/maintenance/language/generateCollationData.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | /** The primary weights, indexed by codepoint */ |
14 | 14 | var $weights; |
15 | 15 | |
16 | | - /** |
| 16 | + /** |
17 | 17 | * A hashtable keyed by codepoint, where presence indicates that a character |
18 | 18 | * has a decomposition mapping. This makes it non-preferred for group header |
19 | 19 | * selection. |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct(); |
33 | 33 | $this->addOption( 'data-dir', 'A directory on the local filesystem ' . |
34 | | - 'containing allkeys.txt and ucd.all.grouped.xml from unicode.org', |
| 34 | + 'containing allkeys.txt and ucd.all.grouped.xml from unicode.org', |
35 | 35 | false, true ); |
36 | 36 | $this->addOption( 'debug-output', 'Filename for sending debug output to', |
37 | 37 | false, true ); |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | // but do not skip a normal space (U+0020) since |
74 | 74 | // people like to use that as a fake no header symbol. |
75 | 75 | $category = substr( $data['gc'], 0, 1 ); |
76 | | - if ( strpos( 'LNPS', $category ) === false |
| 76 | + if ( strpos( 'LNPS', $category ) === false |
77 | 77 | && $data['cp'] !== '0020' ) { |
78 | 78 | return; |
79 | 79 | } |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | return; |
86 | 86 | } |
87 | 87 | |
88 | | - // Skip the composed Hangul syllables, we will use the bare Jamo |
| 88 | + // Skip the composed Hangul syllables, we will use the bare Jamo |
89 | 89 | // as first letters |
90 | 90 | if ( $data['block'] == 'Hangul Syllables' ) { |
91 | 91 | return; |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | } |
165 | 165 | $this->weights[$cp] = $primary; |
166 | 166 | if ( $tertiary === '.0008' |
167 | | - || $tertiary === '.000E' ) |
| 167 | + || $tertiary === '.000E' ) |
168 | 168 | { |
169 | 169 | $goodTertiaryChars[$cp] = true; |
170 | 170 | } |
— | — | @@ -192,8 +192,8 @@ |
193 | 193 | } |
194 | 194 | |
195 | 195 | // If one character has a given primary weight sequence, and a second |
196 | | - // character has a longer primary weight sequence with an initial |
197 | | - // portion equal to the first character, then remove the second |
| 196 | + // character has a longer primary weight sequence with an initial |
| 197 | + // portion equal to the first character, then remove the second |
198 | 198 | // character. This avoids having characters like U+A732 (double A) |
199 | 199 | // polluting the basic latin sort area. |
200 | 200 | |
— | — | @@ -306,11 +306,12 @@ |
307 | 307 | while ( $this->xml->name !== 'ucd' && $this->xml->read() ); |
308 | 308 | $this->xml->read(); |
309 | 309 | return $this->xml; |
310 | | - } |
| 310 | + } |
311 | 311 | |
312 | 312 | /** |
313 | | - * Read the attributes of the current element node and return them |
| 313 | + * Read the attributes of the current element node and return them |
314 | 314 | * as an array |
| 315 | + * @return array |
315 | 316 | */ |
316 | 317 | protected function readAttributes() { |
317 | 318 | $attrs = array(); |
Index: trunk/phase3/maintenance/language/function-list.php |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | define( 'NOT_REALLY_MEDIAWIKI', 1 ); |
25 | 25 | |
26 | 26 | class Language { } |
| 27 | + |
27 | 28 | foreach ( glob( 'Language*.php' ) as $file ) { |
28 | 29 | if ( $file != 'Language.php' ) { |
29 | 30 | require_once( $file ); |
— | — | @@ -59,5 +60,3 @@ |
60 | 61 | } |
61 | 62 | |
62 | 63 | print "$numRemoved will be removed out of $total\n"; |
63 | | - |
64 | | - |
Index: trunk/phase3/maintenance/language/writeMessagesArray.inc |
— | — | @@ -106,6 +106,9 @@ |
107 | 107 | # Sort messages to blocks |
108 | 108 | $sortedMessages['unknown'] = $messages; |
109 | 109 | foreach( self::$messageStructure as $blockName => $block ) { |
| 110 | + /** |
| 111 | + * @var $block array |
| 112 | + */ |
110 | 113 | foreach( $block as $key ) { |
111 | 114 | if( array_key_exists( $key, $sortedMessages['unknown'] ) ) { |
112 | 115 | $sortedMessages[$blockName][$key] = $sortedMessages['unknown'][$key]; |