Completed
Branch master (51e8a3)
by
unknown
50:34
created
includes/deferred/SearchUpdate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
includes/deferred/SiteStatsUpdate.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -38,6 +38,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
includes/diff/DairikiDiff.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -590,6 +590,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
Please login to merge, or discard this patch.
includes/diff/DifferenceEngine.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
includes/diff/TableDiffFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	 * @static
42 42
 	 * @param string $msg
43 43
 	 *
44
-	 * @return mixed
44
+	 * @return string
45 45
 	 */
46 46
 	public static function escapeWhiteSpace( $msg ) {
47 47
 		$msg = preg_replace( '/^ /m', '  ', $msg );
Please login to merge, or discard this patch.
includes/diff/WikiDiff3.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -222,6 +222,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
includes/EditPage.php 1 patch
Doc Comments   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2169,7 +2169,7 @@  discard block
 block discarded – undo
2169 2169
 	 *
2170 2170
 	 * @param string $text
2171 2171
 	 *
2172
-	 * @return string|bool Matching string or false
2172
+	 * @return string|false Matching string or false
2173 2173
 	 */
2174 2174
 	public static function matchSpamRegex( $text ) {
2175 2175
 		global $wgSpamRegex;
@@ -2183,7 +2183,7 @@  discard block
 block discarded – undo
2183 2183
 	 *
2184 2184
 	 * @param string $text
2185 2185
 	 *
2186
-	 * @return string|bool Matching string or false
2186
+	 * @return string|false Matching string or false
2187 2187
 	 */
2188 2188
 	public static function matchSummarySpamRegex( $text ) {
2189 2189
 		global $wgSummarySpamRegex;
@@ -2194,7 +2194,7 @@  discard block
 block discarded – undo
2194 2194
 	/**
2195 2195
 	 * @param string $text
2196 2196
 	 * @param array $regexes
2197
-	 * @return bool|string
2197
+	 * @return string|false
2198 2198
 	 */
2199 2199
 	protected static function matchSpamRegexInternal( $text, $regexes ) {
2200 2200
 		foreach ( $regexes as $regex ) {
@@ -2437,7 +2437,7 @@  discard block
 block discarded – undo
2437 2437
 	 * $this->allowNonTextContent to true to allow editing of non-textual
2438 2438
 	 * content.
2439 2439
 	 *
2440
-	 * @param string|null|bool $text Text to unserialize
2440
+	 * @param false|string $text Text to unserialize
2441 2441
 	 * @return Content The content object created from $text. If $text was false
2442 2442
 	 *   or null, false resp. null will be  returned instead.
2443 2443
 	 *
@@ -3128,6 +3128,10 @@  discard block
 block discarded – undo
3128 3128
 		$this->showTextbox( $this->textbox2, 'wpTextbox2', array( 'tabindex' => 6, 'readonly' ) );
3129 3129
 	}
3130 3130
 
3131
+	/**
3132
+	 * @param string $text
3133
+	 * @param string $name
3134
+	 */
3131 3135
 	protected function showTextbox( $text, $name, $customAttribs = array() ) {
3132 3136
 		global $wgOut, $wgUser;
3133 3137
 
@@ -3157,6 +3161,9 @@  discard block
 block discarded – undo
3157 3161
 		$wgOut->addHTML( Html::textarea( $name, $wikitext, $attribs ) );
3158 3162
 	}
3159 3163
 
3164
+	/**
3165
+	 * @param string $previewOutput
3166
+	 */
3160 3167
 	protected function displayPreviewArea( $previewOutput, $isOnTop = false ) {
3161 3168
 		global $wgOut;
3162 3169
 		$classes = array();
@@ -3763,7 +3770,7 @@  discard block
 block discarded – undo
3763 3770
 	 * Shows a bulletin board style toolbar for common editing functions.
3764 3771
 	 * It can be disabled in the user preferences.
3765 3772
 	 *
3766
-	 * @param $title Title object for the page being edited (optional)
3773
+	 * @param Title $title Title object for the page being edited (optional)
3767 3774
 	 * @return string
3768 3775
 	 */
3769 3776
 	static function getEditToolbar( $title = null ) {
@@ -3903,7 +3910,7 @@  discard block
 block discarded – undo
3903 3910
 	 * @param array $checked Array of checkbox => bool, where bool indicates the checked
3904 3911
 	 *                 status of the checkbox
3905 3912
 	 *
3906
-	 * @return array
3913
+	 * @return string
3907 3914
 	 */
3908 3915
 	public function getCheckboxes( &$tabindex, $checked ) {
3909 3916
 		global $wgUser, $wgUseMediaWikiUIEverywhere;
@@ -3967,7 +3974,7 @@  discard block
 block discarded – undo
3967 3974
 	 *
3968 3975
 	 * @param int $tabindex Current tabindex
3969 3976
 	 *
3970
-	 * @return array
3977
+	 * @return string
3971 3978
 	 */
3972 3979
 	public function getEditButtons( &$tabindex ) {
3973 3980
 		$buttons = array();
Please login to merge, or discard this patch.
includes/exception/BadTitleError.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
  */
29 29
 class BadTitleError extends ErrorPageError {
30 30
 	/**
31
-	 * @param string|Message|MalformedTitleException $msg A message key (default: 'badtitletext'), or
31
+	 * @param MalformedTitleException $msg A message key (default: 'badtitletext'), or
32 32
 	 *     a MalformedTitleException to figure out things from
33 33
 	 * @param array $params Parameter to wfMessage()
34 34
 	 */
Please login to merge, or discard this patch.
includes/exception/MWException.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -265,6 +265,10 @@
 block discarded – undo
265 265
 			header( $header );
266 266
 		}
267 267
 	}
268
+
269
+	/**
270
+	 * @param integer $code
271
+	 */
268 272
 	private static function statusHeader( $code ) {
269 273
 		if ( !headers_sent() ) {
270 274
 			HttpStatus::header( $code );
Please login to merge, or discard this patch.