Completed
Branch master (37eb21)
by
unknown
25:17
created
includes/libs/ReplacementArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	/**
88
-	 * @return array
88
+	 * @return string[]
89 89
 	 */
90 90
 	function getOrderFields() {
91 91
 		return array( 'rd_namespace', 'rd_title', 'rd_from' );
Please login to merge, or discard this patch.
includes/logging/LogFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@
 block discarded – undo
423 423
 	 * Returns a sentence describing the log action. Usually
424 424
 	 * a Message object is returned, but old style log types
425 425
 	 * and entries might return pre-escaped HTML string.
426
-	 * @return Message|string Pre-escaped HTML
426
+	 * @return string Pre-escaped HTML
427 427
 	 */
428 428
 	protected function getActionMessage() {
429 429
 		$message = $this->msg( $this->getMessageKey() );
Please login to merge, or discard this patch.
includes/media/DjVu.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -371,6 +371,9 @@
 block discarded – undo
371 371
 		return 'djvuxml';
372 372
 	}
373 373
 
374
+	/**
375
+	 * @param File $image
376
+	 */
374 377
 	function isMetadataValid( $image, $metadata ) {
375 378
 		return !empty( $metadata ) && $metadata != serialize( [] );
376 379
 	}
Please login to merge, or discard this patch.
includes/media/MediaTransformOutput.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	/**
81 81
 	 * Get the final extension of the thumbnail.
82 82
 	 * Returns false for scripted transformations.
83
-	 * @return string|bool
83
+	 * @return string|false
84 84
 	 */
85 85
 	public function getExtension() {
86 86
 		return $this->path ? FileBackend::extensionFromPath( $this->path ) : false;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 *
215 215
 	 * @deprecated since 1.26, use streamFileWithStatus
216 216
 	 * @param array $headers Additional HTTP headers to send on success
217
-	 * @return bool Success
217
+	 * @return boolean|null Success
218 218
 	 */
219 219
 	public function streamFile( $headers = [] ) {
220 220
 		$this->streamFileWithStatus( $headers )->isOK();
@@ -445,6 +445,9 @@  discard block
 block discarded – undo
445 445
 	/** @var string Plain text formatted version of the error */
446 446
 	private $textMsg;
447 447
 
448
+	/**
449
+	 * @param string $msg
450
+	 */
448 451
 	function __construct( $msg, $width, $height /*, ... */ ) {
449 452
 		$args = array_slice( func_get_args(), 3 );
450 453
 		$htmlArgs = array_map( 'htmlspecialchars', $args );
Please login to merge, or discard this patch.
includes/page/Article.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	 * @note Code that wants to retrieve page content from the database should
354 354
 	 * use WikiPage::getContent().
355 355
 	 *
356
-	 * @return Content|null|bool
356
+	 * @return null|Content
357 357
 	 *
358 358
 	 * @since 1.21
359 359
 	 */
@@ -1529,7 +1529,7 @@  discard block
 block discarded – undo
1529 1529
 	 * Chances are you should just be using the ParserOutput from
1530 1530
 	 * WikitextContent::getParserOutput instead of calling this for redirects.
1531 1531
 	 *
1532
-	 * @param Title|array $target Destination(s) to redirect
1532
+	 * @param Title $target Destination(s) to redirect
1533 1533
 	 * @param bool $appendSubtitle [optional]
1534 1534
 	 * @param bool $forceKnown Should the image be shown as a bluelink regardless of existence?
1535 1535
 	 * @return string Containing HTML with redirect link
@@ -2648,7 +2648,7 @@  discard block
 block discarded – undo
2648 2648
 	 * @param string $reason
2649 2649
 	 * @param int $cascade
2650 2650
 	 * @param array $expiry
2651
-	 * @return bool
2651
+	 * @return Status
2652 2652
 	 */
2653 2653
 	public function updateRestrictions( $limit = [], $reason = '',
2654 2654
 		&$cascade = 0, $expiry = []
@@ -2705,7 +2705,7 @@  discard block
 block discarded – undo
2705 2705
 
2706 2706
 	/**
2707 2707
 	 * @param bool $hasHistory
2708
-	 * @return mixed
2708
+	 * @return false|string
2709 2709
 	 */
2710 2710
 	public function generateReason( &$hasHistory ) {
2711 2711
 		$title = $this->mPage->getTitle();
@@ -2714,7 +2714,7 @@  discard block
 block discarded – undo
2714 2714
 	}
2715 2715
 
2716 2716
 	/**
2717
-	 * @return array
2717
+	 * @return string[]
2718 2718
 	 *
2719 2719
 	 * @deprecated since 1.24, use WikiPage::selectFields() instead
2720 2720
 	 */
Please login to merge, or discard this patch.
includes/page/WikiPage.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 * Return the list of revision fields that should be selected to create
258 258
 	 * a new page.
259 259
 	 *
260
-	 * @return array
260
+	 * @return string[]
261 261
 	 */
262 262
 	public static function selectFields() {
263 263
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -1142,7 +1142,7 @@  discard block
 block discarded – undo
1142 1142
 	 * @param IDatabase $dbw
1143 1143
 	 * @param int|null $pageId Custom page ID that will be used for the insert statement
1144 1144
 	 *
1145
-	 * @return bool|int The newly created page_id key; false if the title already existed
1145
+	 * @return integer The newly created page_id key; false if the title already existed
1146 1146
 	 */
1147 1147
 	public function insertOn( $dbw, $pageId = null ) {
1148 1148
 		$pageIdForInsert = $pageId ?: $dbw->nextSequenceValue( 'page_page_id_seq' );
@@ -1487,7 +1487,7 @@  discard block
 block discarded – undo
1487 1487
 	 * error will be returned. These two conditions are also possible with
1488 1488
 	 * auto-detection due to MediaWiki's performance-optimised locking strategy.
1489 1489
 	 *
1490
-	 * @param bool|int $baseRevId The revision ID this edit was based off, if any.
1490
+	 * @param boolean $baseRevId The revision ID this edit was based off, if any.
1491 1491
 	 *   This is not the parent revision ID, rather the revision ID for older
1492 1492
 	 *   content used as the source for a rollback, for example.
1493 1493
 	 * @param User $user The user doing the edit
@@ -3360,7 +3360,7 @@  discard block
 block discarded – undo
3360 3360
 	 * Returns a list of categories this page is a member of.
3361 3361
 	 * Results will include hidden categories
3362 3362
 	 *
3363
-	 * @return TitleArray
3363
+	 * @return TitleArrayFromResult|null
3364 3364
 	 */
3365 3365
 	public function getCategories() {
3366 3366
 		$id = $this->getId();
@@ -3435,7 +3435,7 @@  discard block
 block discarded – undo
3435 3435
 	 * Auto-generates a deletion reason
3436 3436
 	 *
3437 3437
 	 * @param bool &$hasHistory Whether the page has a history
3438
-	 * @return string|bool String containing deletion reason or empty string, or boolean false
3438
+	 * @return false|string String containing deletion reason or empty string, or boolean false
3439 3439
 	 *    if no revision occurred
3440 3440
 	 */
3441 3441
 	public function getAutoDeleteReason( &$hasHistory ) {
Please login to merge, or discard this patch.
includes/parser/Parser.php 1 patch
Doc Comments   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 	 * @since 1.25
616 616
 	 *
617 617
 	 * @param string $text Text extension wants to have parsed
618
-	 * @param bool|PPFrame $frame The frame to use for expanding any template variables
618
+	 * @param PPFrame $frame The frame to use for expanding any template variables
619 619
 	 * @return string Fully parsed HTML
620 620
 	 */
621 621
 	public function recursiveTagParseFully( $text, $frame = false ) {
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 	 * @param ParserOptions $options
634 634
 	 * @param int|null $revid
635 635
 	 * @param bool|PPFrame $frame
636
-	 * @return mixed|string
636
+	 * @return string
637 637
 	 */
638 638
 	public function preprocess( $text, Title $title = null,
639 639
 		ParserOptions $options, $revid = null, $frame = false
@@ -1969,6 +1969,10 @@  discard block
 block discarded – undo
1969 1969
 		return $ret;
1970 1970
 	}
1971 1971
 
1972
+	/**
1973
+	 * @param string $component
1974
+	 * @param string $unsafe
1975
+	 */
1972 1976
 	private static function normalizeUrlComponent( $component, $unsafe ) {
1973 1977
 		$callback = function ( $matches ) use ( $unsafe ) {
1974 1978
 			$char = urldecode( $matches[0] );
@@ -2420,6 +2424,7 @@  discard block
 block discarded – undo
2420 2424
 	 *
2421 2425
 	 * @param string $target The source of the link
2422 2426
 	 * @param string &$text The link text, modified as necessary
2427
+	 * @param string $text
2423 2428
 	 * @return string The full name of the link
2424 2429
 	 * @private
2425 2430
 	 */
@@ -2445,7 +2450,7 @@  discard block
 block discarded – undo
2445 2450
 	 * @private
2446 2451
 	 *
2447 2452
 	 * @param int $index
2448
-	 * @param bool|PPFrame $frame
2453
+	 * @param PPFrame $frame
2449 2454
 	 *
2450 2455
 	 * @throws MWException
2451 2456
 	 * @return string
@@ -2842,7 +2847,7 @@  discard block
 block discarded – undo
2842 2847
 	 *
2843 2848
 	 * @param string $s
2844 2849
 	 *
2845
-	 * @return array
2850
+	 * @return string[]
2846 2851
 	 */
2847 2852
 	public static function splitWhitespace( $s ) {
2848 2853
 		$ltrimmed = ltrim( $s );
@@ -2950,7 +2955,7 @@  discard block
 block discarded – undo
2950 2955
 	 *   'expansion-depth-exceeded' (corresponding messages:
2951 2956
 	 *       'expansion-depth-exceeded-warning',
2952 2957
 	 *       'expansion-depth-exceeded-category')
2953
-	 * @param string|int|null $current Current value
2958
+	 * @param integer $current Current value
2954 2959
 	 * @param string|int|null $max Maximum allowed, when an explicit limit has been
2955 2960
 	 *	 exceeded, provide the values (optional)
2956 2961
 	 */
@@ -3954,7 +3959,7 @@  discard block
 block discarded – undo
3954 3959
 	 * @param string $text
3955 3960
 	 * @param string $origText Original, untouched wikitext
3956 3961
 	 * @param bool $isMain
3957
-	 * @return mixed|string
3962
+	 * @return string
3958 3963
 	 * @private
3959 3964
 	 */
3960 3965
 	public function formatHeadings( $text, $origText, $isMain = true ) {
@@ -4525,7 +4530,7 @@  discard block
 block discarded – undo
4525 4530
 	 * Check that the user's signature contains no bad XML
4526 4531
 	 *
4527 4532
 	 * @param string $text
4528
-	 * @return string|bool An expanded string, or false if invalid.
4533
+	 * @return string|false An expanded string, or false if invalid.
4529 4534
 	 */
4530 4535
 	public function validateSig( $text ) {
4531 4536
 		return Xml::isWellFormedXmlFragment( $text ) ? $text : false;
@@ -5067,7 +5072,7 @@  discard block
 block discarded – undo
5067 5072
 	 *
5068 5073
 	 * @param Title $title
5069 5074
 	 * @param string $options
5070
-	 * @param LinkHolderArray|bool $holders
5075
+	 * @param LinkHolderArray $holders
5071 5076
 	 * @return string HTML
5072 5077
 	 */
5073 5078
 	public function makeImage( $title, $options, $holders = false ) {
@@ -5283,7 +5288,7 @@  discard block
 block discarded – undo
5283 5288
 	/**
5284 5289
 	 * @param string $caption
5285 5290
 	 * @param LinkHolderArray|bool $holders
5286
-	 * @return mixed|string
5291
+	 * @return string
5287 5292
 	 */
5288 5293
 	protected function stripAltText( $caption, $holders ) {
5289 5294
 		# Strip bad stuff out of the title (tooltip).  We can't just use
@@ -5686,7 +5691,7 @@  discard block
 block discarded – undo
5686 5691
 	 * Accessor for $mDefaultSort
5687 5692
 	 * Unlike getDefaultSort(), will return false if none is set
5688 5693
 	 *
5689
-	 * @return string|bool
5694
+	 * @return false|string
5690 5695
 	 */
5691 5696
 	public function getCustomDefaultSort() {
5692 5697
 		return $this->mDefaultSort;
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
@@ -416,6 +416,9 @@  discard block
 block discarded – undo
416 416
 		return $this->mEnableOOUI;
417 417
 	}
418 418
 
419
+	/**
420
+	 * @param string $text
421
+	 */
419 422
 	public function setText( $text ) {
420 423
 		return wfSetVar( $this->mText, $text );
421 424
 	}
@@ -436,32 +439,52 @@  discard block
 block discarded – undo
436 439
 		return wfSetVar( $this->mSections, $toc );
437 440
 	}
438 441
 
442
+	/**
443
+	 * @param boolean $t
444
+	 */
439 445
 	public function setEditSectionTokens( $t ) {
440 446
 		return wfSetVar( $this->mEditSectionTokens, $t );
441 447
 	}
442 448
 
449
+	/**
450
+	 * @param string $policy
451
+	 */
443 452
 	public function setIndexPolicy( $policy ) {
444 453
 		return wfSetVar( $this->mIndexPolicy, $policy );
445 454
 	}
446 455
 
456
+	/**
457
+	 * @param string $tochtml
458
+	 */
447 459
 	public function setTOCHTML( $tochtml ) {
448 460
 		return wfSetVar( $this->mTOCHTML, $tochtml );
449 461
 	}
450 462
 
463
+	/**
464
+	 * @param string|false $timestamp
465
+	 */
451 466
 	public function setTimestamp( $timestamp ) {
452 467
 		return wfSetVar( $this->mTimestamp, $timestamp );
453 468
 	}
454 469
 
470
+	/**
471
+	 * @param boolean $flag
472
+	 */
455 473
 	public function setTOCEnabled( $flag ) {
456 474
 		return wfSetVar( $this->mTOCEnabled, $flag );
457 475
 	}
458 476
 
477
+	/**
478
+	 * @param string $c
479
+	 */
459 480
 	public function addCategory( $c, $sort ) {
460 481
 		$this->mCategories[$c] = $sort;
461 482
 	}
462 483
 
463 484
 	/**
464 485
 	 * @since 1.25
486
+	 * @param string $id
487
+	 * @param string $content
465 488
 	 */
466 489
 	public function setIndicator( $id, $content ) {
467 490
 		$this->mIndicators[$id] = $content;
@@ -478,10 +501,16 @@  discard block
 block discarded – undo
478 501
 		$this->mEnableOOUI = $enable;
479 502
 	}
480 503
 
504
+	/**
505
+	 * @param string $t
506
+	 */
481 507
 	public function addLanguageLink( $t ) {
482 508
 		$this->mLanguageLinks[] = $t;
483 509
 	}
484 510
 
511
+	/**
512
+	 * @param string $s
513
+	 */
485 514
 	public function addWarning( $s ) {
486 515
 		$this->mWarnings[$s] = 1;
487 516
 	}
@@ -490,9 +519,16 @@  discard block
 block discarded – undo
490 519
 		$this->mOutputHooks[] = [ $hook, $data ];
491 520
 	}
492 521
 
522
+	/**
523
+	 * @param boolean $value
524
+	 */
493 525
 	public function setNewSection( $value ) {
494 526
 		$this->mNewSection = (bool)$value;
495 527
 	}
528
+
529
+	/**
530
+	 * @param boolean $value
531
+	 */
496 532
 	public function hideNewSection( $value ) {
497 533
 		$this->mHideNewSection = (bool)$value;
498 534
 	}
@@ -829,6 +865,8 @@  discard block
 block discarded – undo
829 865
 	 *    $parser->getOutput()->my_ext_foo = '...';
830 866
 	 * @endcode
831 867
 	 *
868
+	 * @param string $name
869
+	 * @param string $value
832 870
 	 */
833 871
 	public function setProperty( $name, $value ) {
834 872
 		$this->mProperties[$name] = $value;
@@ -837,7 +875,7 @@  discard block
 block discarded – undo
837 875
 	/**
838 876
 	 * @param string $name The property name to look up.
839 877
 	 *
840
-	 * @return mixed|bool The value previously set using setProperty(). False if null or no value
878
+	 * @return string The value previously set using setProperty(). False if null or no value
841 879
 	 * was set for the given property name.
842 880
 	 *
843 881
 	 * @note You need to use getProperties() to check for boolean and null properties.
@@ -952,6 +990,9 @@  discard block
 block discarded – undo
952 990
 		return null;
953 991
 	}
954 992
 
993
+	/**
994
+	 * @param string $clock
995
+	 */
955 996
 	private static function getTimes( $clock = null ) {
956 997
 		$ret = [];
957 998
 		if ( !$clock || $clock === 'wall' ) {
Please login to merge, or discard this patch.
includes/parser/Preprocessor_DOM.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1311,7 +1311,6 @@  discard block
 block discarded – undo
1311 1311
 	/**
1312 1312
 	 * @param string $sep
1313 1313
 	 * @param int $flags
1314
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1315 1314
 	 * @return string
1316 1315
 	 */
1317 1316
 	public function implodeWithFlags( $sep, $flags /*, ... */ ) {
@@ -1343,7 +1342,6 @@  discard block
 block discarded – undo
1343 1342
 	 * This previously called implodeWithFlags but has now been inlined to reduce stack depth
1344 1343
 	 *
1345 1344
 	 * @param string $sep
1346
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1347 1345
 	 * @return string
1348 1346
 	 */
1349 1347
 	public function implode( $sep /*, ... */ ) {
@@ -1375,7 +1373,6 @@  discard block
 block discarded – undo
1375 1373
 	 * with implode()
1376 1374
 	 *
1377 1375
 	 * @param string $sep
1378
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1379 1376
 	 * @return array
1380 1377
 	 */
1381 1378
 	public function virtualImplode( $sep /*, ... */ ) {
@@ -1407,7 +1404,6 @@  discard block
 block discarded – undo
1407 1404
 	 * @param string $start
1408 1405
 	 * @param string $sep
1409 1406
 	 * @param string $end
1410
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1411 1407
 	 * @return array
1412 1408
 	 */
1413 1409
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) {
@@ -1570,7 +1566,7 @@  discard block
 block discarded – undo
1570 1566
 
1571 1567
 	/**
1572 1568
 	 * @param Preprocessor $preprocessor
1573
-	 * @param bool|PPFrame_DOM $parent
1569
+	 * @param PPFrame_DOM $parent
1574 1570
 	 * @param array $numberedArgs
1575 1571
 	 * @param array $namedArgs
1576 1572
 	 * @param bool|Title $title
@@ -1741,6 +1737,9 @@  discard block
 block discarded – undo
1741 1737
 
1742 1738
 	public $args;
1743 1739
 
1740
+	/**
1741
+	 * @param Preprocessor_DOM $preprocessor
1742
+	 */
1744 1743
 	public function __construct( $preprocessor, $args ) {
1745 1744
 		parent::__construct( $preprocessor );
1746 1745
 		$this->args = $args;
Please login to merge, or discard this patch.