Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -228,6 +228,7 @@ |
229 | 229 | |
230 | 230 | /** |
231 | 231 | * Get an array of parser substitution modifier IDs |
| 232 | + * @return array |
232 | 233 | */ |
233 | 234 | static function getSubstIDs() { |
234 | 235 | return self::$mSubstIDs; |
— | — | @@ -236,9 +237,10 @@ |
237 | 238 | /** |
238 | 239 | * Allow external reads of TTL array |
239 | 240 | * |
| 241 | + * @param $id int |
240 | 242 | * @return array |
241 | 243 | */ |
242 | | - static function getCacheTTL($id) { |
| 244 | + static function getCacheTTL( $id ) { |
243 | 245 | if ( array_key_exists( $id, self::$mCacheTTLs ) ) { |
244 | 246 | return self::$mCacheTTLs[$id]; |
245 | 247 | } else { |
— | — | @@ -383,7 +385,7 @@ |
384 | 386 | /** |
385 | 387 | * Returns true if the text contains the word |
386 | 388 | * |
387 | | - * @paran $text string |
| 389 | + * @param $text string |
388 | 390 | * |
389 | 391 | * @return bool |
390 | 392 | */ |
— | — | @@ -712,7 +714,7 @@ |
713 | 715 | /** |
714 | 716 | * Get a regex anchored to the start of the string that does not match parameters |
715 | 717 | * |
716 | | - * @return string |
| 718 | + * @return array |
717 | 719 | */ |
718 | 720 | function getRegexStart() { |
719 | 721 | $base = $this->getBaseRegex(); |
— | — | @@ -729,7 +731,7 @@ |
730 | 732 | /** |
731 | 733 | * Get an anchored regex for matching variables with parameters |
732 | 734 | * |
733 | | - * @return string |
| 735 | + * @return array |
734 | 736 | */ |
735 | 737 | function getVariableStartToEndRegex() { |
736 | 738 | $base = $this->getBaseRegex(); |
— | — | @@ -754,7 +756,7 @@ |
755 | 757 | */ |
756 | 758 | function parseMatch( $m ) { |
757 | 759 | reset( $m ); |
758 | | - foreach ( $m as $key => $value ) { |
| 760 | + while ( list( $key, $value ) = each( $m ) ) { |
759 | 761 | if ( $key === 0 || $value === '' ) { |
760 | 762 | continue; |
761 | 763 | } |