Completed
Branch master (5e4b9e)
by
unknown
18:12
created
includes/libs/filebackend/FileBackend.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
 	/**
193 193
 	 * Get an explanatory message if this backend is read-only
194 194
 	 *
195
-	 * @return string|bool Returns false if the backend is not read-only
195
+	 * @return string|false Returns false if the backend is not read-only
196 196
 	 */
197 197
 	final public function getReadOnlyReason() {
198 198
 		return ( $this->readOnly != '' ) ? $this->readOnly : false;
Please login to merge, or discard this patch.
includes/libs/xmp/XMP.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@
 block discarded – undo
491 491
 	 * <exif:DigitalZoomRatio>0/10</exif:DigitalZoomRatio>
492 492
 	 * and are processing the 0/10 bit.
493 493
 	 *
494
-	 * @param XMLParser $parser XMLParser reference to the xml parser
494
+	 * @param resource $parser XMLParser reference to the xml parser
495 495
 	 * @param string $data Character data
496 496
 	 * @throws RuntimeException On invalid data
497 497
 	 */
Please login to merge, or discard this patch.
includes/filerepo/file/ForeignAPIFile.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	protected $repoClass = 'ForeignApiRepo';
37 37
 
38 38
 	/**
39
-	 * @param Title|string|bool $title
39
+	 * @param Title|null $title
40 40
 	 * @param ForeignApiRepo $repo
41 41
 	 * @param array $info
42 42
 	 * @param bool $exists
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	}
170 170
 
171 171
 	/**
172
-	 * @return bool|null|string
172
+	 * @return string|null
173 173
 	 */
174 174
 	public function getMetadata() {
175 175
 		if ( isset( $this->mInfo['metadata'] ) ) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	}
209 209
 
210 210
 	/**
211
-	 * @return bool|int|null
211
+	 * @return integer|null
212 212
 	 */
213 213
 	public function getSize() {
214 214
 		return isset( $this->mInfo['size'] ) ? intval( $this->mInfo['size'] ) : null;
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 	}
272 272
 
273 273
 	/**
274
-	 * @return bool|string
274
+	 * @return false|string
275 275
 	 */
276 276
 	function getTimestamp() {
277 277
 		return wfTimestamp( TS_MW,
Please login to merge, or discard this patch.
includes/libs/IP.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 	 *
300 300
 	 * @param string $host
301 301
 	 * @param int $port
302
-	 * @param bool|int $defaultPort
302
+	 * @param integer $defaultPort
303 303
 	 * @return string
304 304
 	 */
305 305
 	public static function combineHostAndPort( $host, $port, $defaultPort = false ) {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 	 * hexadecimal string which sorts after the IPv4 addresses.
403 403
 	 *
404 404
 	 * @param string $ip Quad dotted/octet IP address.
405
-	 * @return string|bool False on failure
405
+	 * @return string|false False on failure
406 406
 	 */
407 407
 	public static function toHex( $ip ) {
408 408
 		if ( self::isIPv6( $ip ) ) {
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 	 * Given an IPv6 address in octet notation, returns a pure hex string.
436 436
 	 *
437 437
 	 * @param string $ip Octet ipv6 IP address.
438
-	 * @return string|bool Pure hex (uppercase); false on failure
438
+	 * @return false|string Pure hex (uppercase); false on failure
439 439
 	 */
440 440
 	private static function IPv6ToRawHex( $ip ) {
441 441
 		$ip = self::sanitizeIP( $ip );
Please login to merge, or discard this patch.
includes/libs/rdbms/database/DatabaseSqlite.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
 	 * Filter the options used in SELECT statements
555 555
 	 *
556 556
 	 * @param array $options
557
-	 * @return array
557
+	 * @return string[]
558 558
 	 */
559 559
 	function makeSelectOptions( $options ) {
560 560
 		foreach ( $options as $k => $v ) {
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 
785 785
 	/**
786 786
 	 * @param string|int|null|bool|Blob $s
787
-	 * @return string|int
787
+	 * @return string
788 788
 	 */
789 789
 	function addQuotes( $s ) {
790 790
 		if ( $s instanceof Blob ) {
Please login to merge, or discard this patch.
includes/libs/stats/SamplingStatsdClient.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@
 block discarded – undo
35 35
 	 * The sample rate specified in a StatsdData entity overrides the sample rate specified here.
36 36
 	 *
37 37
 	 * {@inheritDoc}
38
+	 * @return StatsdDataInterface[]
38 39
 	 */
39 40
 	public function appendSampleRate( $data, $sampleRate = 1 ) {
40 41
 		if ( $sampleRate < 1 ) {
Please login to merge, or discard this patch.
includes/parser/ParserOutput.php 1 patch
Doc Comments   +42 added lines, -1 removed lines patch added patch discarded remove patch
@@ -417,6 +417,9 @@  discard block
 block discarded – undo
417 417
 		return $this->mEnableOOUI;
418 418
 	}
419 419
 
420
+	/**
421
+	 * @param string $text
422
+	 */
420 423
 	public function setText( $text ) {
421 424
 		return wfSetVar( $this->mText, $text );
422 425
 	}
@@ -437,32 +440,52 @@  discard block
 block discarded – undo
437 440
 		return wfSetVar( $this->mSections, $toc );
438 441
 	}
439 442
 
443
+	/**
444
+	 * @param boolean $t
445
+	 */
440 446
 	public function setEditSectionTokens( $t ) {
441 447
 		return wfSetVar( $this->mEditSectionTokens, $t );
442 448
 	}
443 449
 
450
+	/**
451
+	 * @param string $policy
452
+	 */
444 453
 	public function setIndexPolicy( $policy ) {
445 454
 		return wfSetVar( $this->mIndexPolicy, $policy );
446 455
 	}
447 456
 
457
+	/**
458
+	 * @param string $tochtml
459
+	 */
448 460
 	public function setTOCHTML( $tochtml ) {
449 461
 		return wfSetVar( $this->mTOCHTML, $tochtml );
450 462
 	}
451 463
 
464
+	/**
465
+	 * @param false|string $timestamp
466
+	 */
452 467
 	public function setTimestamp( $timestamp ) {
453 468
 		return wfSetVar( $this->mTimestamp, $timestamp );
454 469
 	}
455 470
 
471
+	/**
472
+	 * @param boolean $flag
473
+	 */
456 474
 	public function setTOCEnabled( $flag ) {
457 475
 		return wfSetVar( $this->mTOCEnabled, $flag );
458 476
 	}
459 477
 
478
+	/**
479
+	 * @param string $c
480
+	 */
460 481
 	public function addCategory( $c, $sort ) {
461 482
 		$this->mCategories[$c] = $sort;
462 483
 	}
463 484
 
464 485
 	/**
465 486
 	 * @since 1.25
487
+	 * @param string $id
488
+	 * @param string $content
466 489
 	 */
467 490
 	public function setIndicator( $id, $content ) {
468 491
 		$this->mIndicators[$id] = $content;
@@ -479,10 +502,16 @@  discard block
 block discarded – undo
479 502
 		$this->mEnableOOUI = $enable;
480 503
 	}
481 504
 
505
+	/**
506
+	 * @param string $t
507
+	 */
482 508
 	public function addLanguageLink( $t ) {
483 509
 		$this->mLanguageLinks[] = $t;
484 510
 	}
485 511
 
512
+	/**
513
+	 * @param string $s
514
+	 */
486 515
 	public function addWarning( $s ) {
487 516
 		$this->mWarnings[$s] = 1;
488 517
 	}
@@ -491,9 +520,16 @@  discard block
 block discarded – undo
491 520
 		$this->mOutputHooks[] = [ $hook, $data ];
492 521
 	}
493 522
 
523
+	/**
524
+	 * @param boolean $value
525
+	 */
494 526
 	public function setNewSection( $value ) {
495 527
 		$this->mNewSection = (bool)$value;
496 528
 	}
529
+
530
+	/**
531
+	 * @param boolean $value
532
+	 */
497 533
 	public function hideNewSection( $value ) {
498 534
 		$this->mHideNewSection = (bool)$value;
499 535
 	}
@@ -822,6 +858,8 @@  discard block
 block discarded – undo
822 858
 	 *    $parser->getOutput()->my_ext_foo = '...';
823 859
 	 * @endcode
824 860
 	 *
861
+	 * @param string $name
862
+	 * @param string $value
825 863
 	 */
826 864
 	public function setProperty( $name, $value ) {
827 865
 		$this->mProperties[$name] = $value;
@@ -830,7 +868,7 @@  discard block
 block discarded – undo
830 868
 	/**
831 869
 	 * @param string $name The property name to look up.
832 870
 	 *
833
-	 * @return mixed|bool The value previously set using setProperty(). False if null or no value
871
+	 * @return string The value previously set using setProperty(). False if null or no value
834 872
 	 * was set for the given property name.
835 873
 	 *
836 874
 	 * @note You need to use getProperties() to check for boolean and null properties.
@@ -945,6 +983,9 @@  discard block
 block discarded – undo
945 983
 		return null;
946 984
 	}
947 985
 
986
+	/**
987
+	 * @param string $clock
988
+	 */
948 989
 	private static function getTimes( $clock = null ) {
949 990
 		$ret = [];
950 991
 		if ( !$clock || $clock === 'wall' ) {
Please login to merge, or discard this patch.
includes/RevisionList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	/**
58 58
 	 * Get the internal type name of this list. Equal to the table name.
59 59
 	 * Override this function.
60
-	 * @return null
60
+	 * @return string
61 61
 	 */
62 62
 	public function getType() {
63 63
 		return null;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
 	/**
230 230
 	 * Get the timestamp in MW 14-char form
231
-	 * @return mixed
231
+	 * @return false|string
232 232
 	 */
233 233
 	public function getTimestamp() {
234 234
 		$field = $this->getTimestampField();
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLRestrictionsField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
 	/**
112 112
 	 * @param MWRestrictions $value
113
-	 * @return string
113
+	 * @return OOUI\TextInputWidget
114 114
 	 */
115 115
 	public function getInputOOUI( $value ) {
116 116
 		if ( $value instanceof MWRestrictions ) {
Please login to merge, or discard this patch.