Completed
Branch master (7440f2)
by
unknown
26:31
created
includes/Message.php 1 patch
Doc Comments   -19 removed lines patch added patch discarded remove patch
@@ -374,7 +374,6 @@  discard block
 block discarded – undo
374 374
 	 * @since 1.17
375 375
 	 *
376 376
 	 * @param string|string[]|MessageSpecifier $key
377
-	 * @param mixed $param,... Parameters as strings.
378 377
 	 *
379 378
 	 * @return Message
380 379
 	 */
@@ -391,8 +390,6 @@  discard block
 block discarded – undo
391 390
 	 *
392 391
 	 * @since 1.18
393 392
 	 *
394
-	 * @param string|string[] $keys,... Message keys, or first argument as an array of all the
395
-	 * message keys.
396 393
 	 *
397 394
 	 * @return Message
398 395
 	 */
@@ -463,8 +460,6 @@  discard block
 block discarded – undo
463 460
 	 *
464 461
 	 * @since 1.17
465 462
 	 *
466
-	 * @param mixed $params,... Raw parameters as strings, or a single argument that is
467
-	 * an array of raw parameters.
468 463
 	 *
469 464
 	 * @return Message $this
470 465
 	 */
@@ -485,8 +480,6 @@  discard block
 block discarded – undo
485 480
 	 *
486 481
 	 * @since 1.18
487 482
 	 *
488
-	 * @param mixed $param,... Numeric parameters, or a single argument that is
489
-	 * an array of numeric parameters.
490 483
 	 *
491 484
 	 * @return Message $this
492 485
 	 */
@@ -507,8 +500,6 @@  discard block
 block discarded – undo
507 500
 	 *
508 501
 	 * @since 1.22
509 502
 	 *
510
-	 * @param int|int[] $param,... Duration parameters, or a single argument that is
511
-	 * an array of duration parameters.
512 503
 	 *
513 504
 	 * @return Message $this
514 505
 	 */
@@ -529,8 +520,6 @@  discard block
 block discarded – undo
529 520
 	 *
530 521
 	 * @since 1.22
531 522
 	 *
532
-	 * @param string|string[] $param,... Expiry parameters, or a single argument that is
533
-	 * an array of expiry parameters.
534 523
 	 *
535 524
 	 * @return Message $this
536 525
 	 */
@@ -551,8 +540,6 @@  discard block
 block discarded – undo
551 540
 	 *
552 541
 	 * @since 1.22
553 542
 	 *
554
-	 * @param int|int[] $param,... Time period parameters, or a single argument that is
555
-	 * an array of time period parameters.
556 543
 	 *
557 544
 	 * @return Message $this
558 545
 	 */
@@ -573,8 +560,6 @@  discard block
 block discarded – undo
573 560
 	 *
574 561
 	 * @since 1.22
575 562
 	 *
576
-	 * @param int|int[] $param,... Size parameters, or a single argument that is
577
-	 * an array of size parameters.
578 563
 	 *
579 564
 	 * @return Message $this
580 565
 	 */
@@ -595,8 +580,6 @@  discard block
 block discarded – undo
595 580
 	 *
596 581
 	 * @since 1.22
597 582
 	 *
598
-	 * @param int|int[] $param,... Bit rate parameters, or a single argument that is
599
-	 * an array of bit rate parameters.
600 583
 	 *
601 584
 	 * @return Message $this
602 585
 	 */
@@ -619,8 +602,6 @@  discard block
 block discarded – undo
619 602
 	 *
620 603
 	 * @since 1.25
621 604
 	 *
622
-	 * @param string|string[] $param,... plaintext parameters, or a single argument that is
623
-	 * an array of plaintext parameters.
624 605
 	 *
625 606
 	 * @return Message $this
626 607
 	 */
Please login to merge, or discard this patch.
includes/api/ApiQueryImageInfo.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 	/**
105 105
 	 * Fields in the oldimage table
106
-	 * @return array
106
+	 * @return string[]
107 107
 	 */
108 108
 	static function selectFields() {
109 109
 		return array(
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
 	/**
234 234
 	 * @param string $prefix
235
-	 * @return array
235
+	 * @return string[]
236 236
 	 */
237 237
 	function getCacheFields( $prefix = 'img_' ) {
238 238
 		$fields = parent::getCacheFields( $prefix );
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
@@ -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 matchSpamRegex( $text ) {
2189 2189
 		global $wgSpamRegex;
@@ -2197,7 +2197,7 @@  discard block
 block discarded – undo
2197 2197
 	 *
2198 2198
 	 * @param string $text
2199 2199
 	 *
2200
-	 * @return string|bool Matching string or false
2200
+	 * @return string|false Matching string or false
2201 2201
 	 */
2202 2202
 	public static function matchSummarySpamRegex( $text ) {
2203 2203
 		global $wgSummarySpamRegex;
@@ -2208,7 +2208,7 @@  discard block
 block discarded – undo
2208 2208
 	/**
2209 2209
 	 * @param string $text
2210 2210
 	 * @param array $regexes
2211
-	 * @return bool|string
2211
+	 * @return string|false
2212 2212
 	 */
2213 2213
 	protected static function matchSpamRegexInternal( $text, $regexes ) {
2214 2214
 		foreach ( $regexes as $regex ) {
@@ -2448,7 +2448,7 @@  discard block
 block discarded – undo
2448 2448
 	 * $this->allowNonTextContent to true to allow editing of non-textual
2449 2449
 	 * content.
2450 2450
 	 *
2451
-	 * @param string|null|bool $text Text to unserialize
2451
+	 * @param false|string $text Text to unserialize
2452 2452
 	 * @return Content The content object created from $text. If $text was false
2453 2453
 	 *   or null, false resp. null will be  returned instead.
2454 2454
 	 *
@@ -3139,6 +3139,10 @@  discard block
 block discarded – undo
3139 3139
 		$this->showTextbox( $this->textbox2, 'wpTextbox2', [ 'tabindex' => 6, 'readonly' ] );
3140 3140
 	}
3141 3141
 
3142
+	/**
3143
+	 * @param string $text
3144
+	 * @param string $name
3145
+	 */
3142 3146
 	protected function showTextbox( $text, $name, $customAttribs = [] ) {
3143 3147
 		global $wgOut, $wgUser;
3144 3148
 
@@ -3168,6 +3172,9 @@  discard block
 block discarded – undo
3168 3172
 		$wgOut->addHTML( Html::textarea( $name, $wikitext, $attribs ) );
3169 3173
 	}
3170 3174
 
3175
+	/**
3176
+	 * @param string $previewOutput
3177
+	 */
3171 3178
 	protected function displayPreviewArea( $previewOutput, $isOnTop = false ) {
3172 3179
 		global $wgOut;
3173 3180
 		$classes = [];
@@ -3754,7 +3761,7 @@  discard block
 block discarded – undo
3754 3761
 	}
3755 3762
 
3756 3763
 	/**
3757
-	 * @return array
3764
+	 * @return Title[]
3758 3765
 	 */
3759 3766
 	function getTemplates() {
3760 3767
 		if ( $this->preview || $this->section != '' ) {
@@ -3917,7 +3924,7 @@  discard block
 block discarded – undo
3917 3924
 	 * @param array $checked Array of checkbox => bool, where bool indicates the checked
3918 3925
 	 *                 status of the checkbox
3919 3926
 	 *
3920
-	 * @return array
3927
+	 * @return string
3921 3928
 	 */
3922 3929
 	public function getCheckboxes( &$tabindex, $checked ) {
3923 3930
 		global $wgUser, $wgUseMediaWikiUIEverywhere;
@@ -3981,7 +3988,7 @@  discard block
 block discarded – undo
3981 3988
 	 *
3982 3989
 	 * @param int $tabindex Current tabindex
3983 3990
 	 *
3984
-	 * @return array
3991
+	 * @return string
3985 3992
 	 */
3986 3993
 	public function getEditButtons( &$tabindex ) {
3987 3994
 		$buttons = [];
Please login to merge, or discard this patch.
includes/libs/CSSMin.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @param bool $ie8Compat By default, a data URI will only be produced if it can be made short
101 101
 	 *     enough to fit in Internet Explorer 8 (and earlier) URI length limit (32,768 bytes). Pass
102 102
 	 *     `false` to remove this limitation.
103
-	 * @return string|bool Image contents encoded as a data URI or false.
103
+	 * @return false|string Image contents encoded as a data URI or false.
104 104
 	 */
105 105
 	public static function encodeImageAsDataURI( $file, $type = null, $ie8Compat = true ) {
106 106
 		// Fast-fail for files that definitely exceed the maximum data URI length
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * @param string $contents File contents to encode.
129 129
 	 * @param string $type File's MIME type.
130 130
 	 * @param bool $ie8Compat See encodeImageAsDataURI().
131
-	 * @return string|bool Image contents encoded as a data URI or false.
131
+	 * @return string|false Image contents encoded as a data URI or false.
132 132
 	 */
133 133
 	public static function encodeStringAsDataURI( $contents, $type, $ie8Compat = true ) {
134 134
 		// Try #1: Non-encoded data URI
Please login to merge, or discard this patch.
includes/media/TransformationalImageHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -563,7 +563,7 @@
 block discarded – undo
563 563
 	 * @param array $params Rotate parameters.
564 564
 	 *   'rotation' clockwise rotation in degrees, allowed are multiples of 90
565 565
 	 * @since 1.24 Is non-static. From 1.21 it was static
566
-	 * @return bool
566
+	 * @return MediaTransformError
567 567
 	 */
568 568
 	public function rotate( $file, $params ) {
569 569
 		return new MediaTransformError( 'thumbnail_error', 0, 0,
Please login to merge, or discard this patch.
includes/specials/SpecialMediaStatistics.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * It's important that img_media_type come first, otherwise the
102 102
 	 * tables will be fragmented.
103
-	 * @return Array Fields to sort by
103
+	 * @return string[] Fields to sort by
104 104
 	 */
105 105
 	function getOrderFields() {
106 106
 		return [ 'img_media_type', 'count(*)', 'img_major_mime', 'img_minor_mime' ];
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 *
171 171
 	 * @param string $mime mime type (e.g. image/jpeg)
172 172
 	 * @param int $count Number of images of this type
173
-	 * @param int $totalBytes Total space for images of this type
173
+	 * @param integer $bytes
174 174
 	 */
175 175
 	protected function outputTableRow( $mime, $count, $bytes ) {
176 176
 		$mimeSearch = SpecialPage::getTitleFor( 'MIMEsearch', $mime );
Please login to merge, or discard this patch.
includes/parser/ParserCache.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * @param WikiPage $article
60 60
 	 * @param string $hash
61
-	 * @return mixed|string
61
+	 * @return string
62 62
 	 */
63 63
 	protected function getParserOutputKey( $article, $hash ) {
64 64
 		global $wgRequest;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * @param WikiPage $article
76
-	 * @return mixed|string
76
+	 * @return string
77 77
 	 */
78 78
 	protected function getOptionsKey( $article ) {
79 79
 		$pageid = $article->getId();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * @param WikiPage $article
129 129
 	 * @param ParserOptions $popts
130 130
 	 * @param bool $useOutdated (default true)
131
-	 * @return bool|mixed|string
131
+	 * @return false|string
132 132
 	 */
133 133
 	public function getKey( $article, $popts, $useOutdated = true ) {
134 134
 		global $wgCacheEpoch;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 * Retrieve the ParserOutput from ParserCache.
181 181
 	 * false if not found or outdated.
182 182
 	 *
183
-	 * @param WikiPage|Article $article
183
+	 * @param WikiPage $article
184 184
 	 * @param ParserOptions $popts
185 185
 	 * @param bool $useOutdated (default false)
186 186
 	 *
Please login to merge, or discard this patch.