@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | * Filter the options used in SELECT statements |
552 | 552 | * |
553 | 553 | * @param array $options |
554 | - * @return array |
|
554 | + * @return string[] |
|
555 | 555 | */ |
556 | 556 | function makeSelectOptions( $options ) { |
557 | 557 | foreach ( $options as $k => $v ) { |
@@ -1048,6 +1048,9 @@ discard block |
||
1048 | 1048 | class SQLiteField implements Field { |
1049 | 1049 | private $info, $tableName; |
1050 | 1050 | |
1051 | + /** |
|
1052 | + * @param string $tableName |
|
1053 | + */ |
|
1051 | 1054 | function __construct( $info, $tableName ) { |
1052 | 1055 | $this->info = $info; |
1053 | 1056 | $this->tableName = $tableName; |
@@ -31,6 +31,9 @@ |
||
31 | 31 | /** @var string */ |
32 | 32 | protected $mData; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $data |
|
36 | + */ |
|
34 | 37 | function __construct( $data ) { |
35 | 38 | $this->mData = $data; |
36 | 39 | } |
@@ -30,6 +30,9 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $name |
|
35 | + */ |
|
33 | 36 | function __call( $name, array $arguments ) { |
34 | 37 | if ( $this->conn === null ) { |
35 | 38 | list( $db, $groups, $wiki ) = $this->params; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Create an update object from an array of Title objects, or a TitleArray object |
50 | 50 | * |
51 | - * @param Traversable|array $titles |
|
51 | + * @param TitleArrayFromResult|null $titles |
|
52 | 52 | * @param string[] $urlArr |
53 | 53 | * @return CdnCacheUpdate |
54 | 54 | */ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param int $id Page id to update |
48 | 48 | * @param Title|string $title Title of page to update |
49 | - * @param Content|string|bool $c Content of the page to update. Default: false. |
|
49 | + * @param Content|null $c Content of the page to update. Default: false. |
|
50 | 50 | * If a Content object, text will be gotten from it. String is for back-compat. |
51 | 51 | * Passing false tells the backend to just update the title, not the content |
52 | 52 | */ |
@@ -38,6 +38,12 @@ |
||
38 | 38 | protected $images = 0; |
39 | 39 | |
40 | 40 | // @todo deprecate this constructor |
41 | + |
|
42 | + /** |
|
43 | + * @param integer $views |
|
44 | + * @param integer $edits |
|
45 | + * @param integer $good |
|
46 | + */ |
|
41 | 47 | function __construct( $views, $edits, $good, $pages = 0, $users = 0 ) { |
42 | 48 | $this->edits = $edits; |
43 | 49 | $this->articles = $good; |
@@ -590,6 +590,7 @@ discard block |
||
590 | 590 | * to be the "change". |
591 | 591 | * |
592 | 592 | * This is extracted verbatim from analyze.c (GNU diffutils-2.7). |
593 | + * @param string[] $lines |
|
593 | 594 | */ |
594 | 595 | private function shiftBoundaries( $lines, &$changed, $other_changed ) { |
595 | 596 | $i = 0; |
@@ -750,7 +751,7 @@ discard block |
||
750 | 751 | * $diff = new Diff($lines1, $lines2); |
751 | 752 | * $rev = $diff->reverse(); |
752 | 753 | * |
753 | - * @return Object A Diff object representing the inverse of the |
|
754 | + * @return Diff A Diff object representing the inverse of the |
|
754 | 755 | * original diff. |
755 | 756 | */ |
756 | 757 | public function reverse() { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Constructor |
105 | 105 | * @param IContextSource $context Context to use, anything else will be ignored |
106 | 106 | * @param int $old Old ID we want to show and diff with. |
107 | - * @param string|int $new Either revision ID or 'prev' or 'next'. Default: 0. |
|
107 | + * @param integer $new Either revision ID or 'prev' or 'next'. Default: 0. |
|
108 | 108 | * @param int $rcid Deprecated, no longer used! |
109 | 109 | * @param bool $refreshCache If set, refreshes the diff cache |
110 | 110 | * @param bool $unhide If set, allow viewing deleted revs |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
163 | - * @return bool|int |
|
163 | + * @return integer |
|
164 | 164 | */ |
165 | 165 | public function getNewid() { |
166 | 166 | $this->loadRevisionIds(); |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @param int $id Revision ID |
176 | 176 | * |
177 | - * @return mixed URL or false |
|
177 | + * @return string|false URL or false |
|
178 | 178 | */ |
179 | 179 | public function deletedLink( $id ) { |
180 | 180 | if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) { |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | * @param string|bool $ntitle Header for new text or false |
676 | 676 | * @param string $notice HTML between diff header and body |
677 | 677 | * |
678 | - * @return mixed |
|
678 | + * @return false|string |
|
679 | 679 | */ |
680 | 680 | public function getDiff( $otitle, $ntitle, $notice = '' ) { |
681 | 681 | $body = $this->getDiffBody(); |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | /** |
698 | 698 | * Get the diff table body, without header |
699 | 699 | * |
700 | - * @return mixed (string/false) |
|
700 | + * @return false|string (string/false) |
|
701 | 701 | */ |
702 | 702 | public function getDiffBody() { |
703 | 703 | $this->mCacheHit = true; |
@@ -931,7 +931,7 @@ discard block |
||
931 | 931 | * |
932 | 932 | * @param string $text |
933 | 933 | * |
934 | - * @return mixed |
|
934 | + * @return string |
|
935 | 935 | */ |
936 | 936 | public function localiseLineNumbers( $text ) { |
937 | 937 | return preg_replace_callback( |
@@ -222,6 +222,13 @@ discard block |
||
222 | 222 | return $ranges; |
223 | 223 | } |
224 | 224 | |
225 | + /** |
|
226 | + * @param integer $bottoml1 |
|
227 | + * @param integer $topl1 |
|
228 | + * @param integer $bottoml2 |
|
229 | + * @param integer $topl2 |
|
230 | + * @param integer[] $snake |
|
231 | + */ |
|
225 | 232 | private function lcs_rec( $bottoml1, $topl1, $bottoml2, $topl2, &$V, &$snake ) { |
226 | 233 | // check that both sequences are non-empty |
227 | 234 | if ( $bottoml1 > $topl1 || $bottoml2 > $topl2 ) { |
@@ -490,6 +497,11 @@ discard block |
||
490 | 497 | */ |
491 | 498 | } |
492 | 499 | |
500 | + /** |
|
501 | + * @param double $M |
|
502 | + * @param double $N |
|
503 | + * @param double $limit |
|
504 | + */ |
|
493 | 505 | private static function findMostProgress( $M, $N, $limit, $V ) { |
494 | 506 | $delta = $N - $M; |
495 | 507 | |
@@ -609,6 +621,12 @@ discard block |
||
609 | 621 | /** @var int */ |
610 | 622 | public $rightlength; |
611 | 623 | |
624 | + /** |
|
625 | + * @param integer $leftstart |
|
626 | + * @param integer $leftend |
|
627 | + * @param integer $rightstart |
|
628 | + * @param integer $rightend |
|
629 | + */ |
|
612 | 630 | function __construct( $leftstart, $leftend, $rightstart, $rightend ) { |
613 | 631 | $this->leftstart = $leftstart; |
614 | 632 | $this->leftend = $leftend; |