Index: trunk/phase3/includes/parser/LinkHolderArray.php |
— | — | @@ -28,6 +28,7 @@ |
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Merge another LinkHolderArray into this one |
| 32 | + * @param $other LinkHolderArray |
32 | 33 | */ |
33 | 34 | function merge( $other ) { |
34 | 35 | foreach ( $other->internals as $ns => $entries ) { |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -10,6 +10,11 @@ |
11 | 11 | * @ingroup Parser |
12 | 12 | */ |
13 | 13 | class CoreParserFunctions { |
| 14 | + /** |
| 15 | + * @static |
| 16 | + * @param $parser Parser |
| 17 | + * @return void |
| 18 | + */ |
14 | 19 | static function register( $parser ) { |
15 | 20 | global $wgAllowDisplayTitle, $wgAllowSlowParserFunctions; |
16 | 21 | |
— | — | @@ -507,6 +512,7 @@ |
508 | 513 | * to the link cache, so the local cache here should be unnecessary, but |
509 | 514 | * in fact calling getLength() repeatedly for the same $page does seem to |
510 | 515 | * run one query for each call? |
| 516 | + * @param $parser Parser |
511 | 517 | */ |
512 | 518 | static function pagesize( $parser, $page = '', $raw = null ) { |
513 | 519 | static $cache = array(); |
— | — | @@ -584,6 +590,12 @@ |
585 | 591 | return self::pad( $string, $length, $padding ); |
586 | 592 | } |
587 | 593 | |
| 594 | + /** |
| 595 | + * @static |
| 596 | + * @param $parser Parser |
| 597 | + * @param $text |
| 598 | + * @return string |
| 599 | + */ |
588 | 600 | static function anchorencode( $parser, $text ) { |
589 | 601 | return substr( $parser->guessSectionNameFromWikiText( $text ), 1); |
590 | 602 | } |
— | — | @@ -598,6 +610,12 @@ |
599 | 611 | } |
600 | 612 | } |
601 | 613 | |
| 614 | + /** |
| 615 | + * @static |
| 616 | + * @param $parser Parser |
| 617 | + * @param $text |
| 618 | + * @return string |
| 619 | + */ |
602 | 620 | public static function defaultsort( $parser, $text ) { |
603 | 621 | $text = trim( $text ); |
604 | 622 | if( strlen( $text ) == 0 ) |
Index: trunk/phase3/includes/parser/Parser_DiffTest.php |
— | — | @@ -111,6 +111,10 @@ |
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
| 115 | + /** |
| 116 | + * @param $parser Parser |
| 117 | + * @return bool |
| 118 | + */ |
115 | 119 | function onClearState( &$parser ) { |
116 | 120 | // hack marker prefixes to get identical output |
117 | 121 | if ( !isset( $this->dtUniqPrefix ) ) { |
Index: trunk/phase3/includes/parser/CoreTagHooks.php |
— | — | @@ -10,6 +10,11 @@ |
11 | 11 | * @ingroup Parser |
12 | 12 | */ |
13 | 13 | class CoreTagHooks { |
| 14 | + /** |
| 15 | + * @static |
| 16 | + * @param $parser Parser |
| 17 | + * @return void |
| 18 | + */ |
14 | 19 | static function register( $parser ) { |
15 | 20 | global $wgRawHtml, $wgUseTeX; |
16 | 21 | $parser->setHook( 'pre', array( __CLASS__, 'pre' ) ); |
— | — | @@ -52,6 +57,13 @@ |
53 | 58 | return $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes, $parser->getOptions() ) ); |
54 | 59 | } |
55 | 60 | |
| 61 | + /** |
| 62 | + * @static |
| 63 | + * @param $content |
| 64 | + * @param $attributes |
| 65 | + * @param $parser Parser |
| 66 | + * @return |
| 67 | + */ |
56 | 68 | static function gallery( $content, $attributes, $parser ) { |
57 | 69 | return $parser->renderImageGallery( $content, $attributes ); |
58 | 70 | } |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -192,6 +192,7 @@ |
193 | 193 | /** |
194 | 194 | * Factory: creates an object representing an ID |
195 | 195 | * @static |
| 196 | + * @return MagicWord |
196 | 197 | */ |
197 | 198 | static function &get( $id ) { |
198 | 199 | wfProfileIn( __METHOD__ ); |