Completed
Branch master (9ca75b)
by
unknown
26:06
created
maintenance/sql.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -143,6 +143,9 @@
 block discarded – undo
143 143
 		wfWaitForSlaves();
144 144
 	}
145 145
 
146
+	/**
147
+	 * @param boolean $dieOnError
148
+	 */
146 149
 	protected function sqlDoQuery( IDatabase $db, $line, $dieOnError ) {
147 150
 		try {
148 151
 			$res = $db->query( $line );
Please login to merge, or discard this patch.
includes/api/ApiBase.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 *
422 422
 	 * @since 1.24
423 423
 	 * @param array $params All supplied parameters for the module
424
-	 * @return string|array|null
424
+	 * @return string
425 425
 	 */
426 426
 	protected function getWebUITokenSalt( array $params ) {
427 427
 		return null;
@@ -627,6 +627,7 @@  discard block
 block discarded – undo
627 627
 	/**
628 628
 	 * Set the continuation manager
629 629
 	 * @param ApiContinuationManager|null
630
+	 * @param ApiContinuationManager|null $manager
630 631
 	 */
631 632
 	public function setContinuationManager( $manager ) {
632 633
 		// Main module has setContinuationManager() method overridden
@@ -710,6 +711,7 @@  discard block
 block discarded – undo
710 711
 	 *
711 712
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
712 713
 	 * @param string $required,... Names of parameters of which exactly one must be set
714
+	 * @param string $required
713 715
 	 */
714 716
 	public function requireOnlyOneParameter( $params, $required /*...*/ ) {
715 717
 		$required = func_get_args();
@@ -736,6 +738,7 @@  discard block
 block discarded – undo
736 738
 	 *
737 739
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
738 740
 	 * @param string $required,... Names of parameters of which at most one must be set
741
+	 * @param string $required
739 742
 	 */
740 743
 	public function requireMaxOneParameter( $params, $required /*...*/ ) {
741 744
 		$required = func_get_args();
@@ -759,6 +762,7 @@  discard block
 block discarded – undo
759 762
 	 * @since 1.23
760 763
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
761 764
 	 * @param string $required,... Names of parameters of which at least one must be set
765
+	 * @param string $required
762 766
 	 */
763 767
 	public function requireAtLeastOneParameter( $params, $required /*...*/ ) {
764 768
 		$required = func_get_args();
@@ -1431,7 +1435,7 @@  discard block
 block discarded – undo
1431 1435
 
1432 1436
 	/**
1433 1437
 	 * Truncate an array to a certain length.
1434
-	 * @param array $arr Array to truncate
1438
+	 * @param string[] $arr Array to truncate
1435 1439
 	 * @param int $limit Maximum length
1436 1440
 	 * @return bool True if the array was truncated, false otherwise
1437 1441
 	 */
@@ -2638,7 +2642,7 @@  discard block
 block discarded – undo
2638 2642
 	 * "apihelp-{$this->getModulePath()}-description".
2639 2643
 	 *
2640 2644
 	 * @deprecated since 1.25
2641
-	 * @return Message|string|array
2645
+	 * @return boolean
2642 2646
 	 */
2643 2647
 	protected function getDescription() {
2644 2648
 		return false;
@@ -2715,7 +2719,7 @@  discard block
 block discarded – undo
2715 2719
 
2716 2720
 	/**
2717 2721
 	 * @deprecated since 1.25, always returns 0
2718
-	 * @return float
2722
+	 * @return integer
2719 2723
 	 */
2720 2724
 	public function getProfileTime() {
2721 2725
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2738,7 +2742,7 @@  discard block
 block discarded – undo
2738 2742
 
2739 2743
 	/**
2740 2744
 	 * @deprecated since 1.25, always returns 0
2741
-	 * @return float
2745
+	 * @return integer
2742 2746
 	 */
2743 2747
 	public function getProfileDBTime() {
2744 2748
 		wfDeprecated( __METHOD__, '1.25' );
Please login to merge, or discard this patch.
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.