Completed
Branch master (537795)
by
unknown
33:10
created
includes/parser/ParserOptions.php 1 patch
Doc Comments   +29 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,6 +356,9 @@  discard block
 block discarded – undo
356 356
 		return $this->mPreSaveTransform;
357 357
 	}
358 358
 
359
+	/**
360
+	 * @return string
361
+	 */
359 362
 	public function getDateFormat() {
360 363
 		$this->optionUsed( 'dateformat' );
361 364
 		if ( !isset( $this->mDateFormat ) ) {
@@ -429,6 +432,9 @@  discard block
 block discarded – undo
429 432
 		return wfSetVar( $this->mDateFormat, $x );
430 433
 	}
431 434
 
435
+	/**
436
+	 * @param boolean $x
437
+	 */
432 438
 	public function setEditSection( $x ) {
433 439
 		return wfSetVar( $this->mEditSection, $x );
434 440
 	}
@@ -445,6 +451,9 @@  discard block
 block discarded – undo
445 451
 		return wfSetVar( $this->mTidy, $x );
446 452
 	}
447 453
 
454
+	/**
455
+	 * @param boolean $x
456
+	 */
448 457
 	public function setInterfaceMessage( $x ) {
449 458
 		return wfSetVar( $this->mInterfaceMessage, $x );
450 459
 	}
@@ -453,6 +462,9 @@  discard block
 block discarded – undo
453 462
 		return wfSetVar( $this->mTargetLanguage, $x, true );
454 463
 	}
455 464
 
465
+	/**
466
+	 * @param integer $x
467
+	 */
456 468
 	public function setMaxIncludeSize( $x ) {
457 469
 		return wfSetVar( $this->mMaxIncludeSize, $x );
458 470
 	}
@@ -474,11 +486,18 @@  discard block
 block discarded – undo
474 486
 		return wfSetVar( $this->mExpensiveParserFunctionLimit, $x );
475 487
 	}
476 488
 
489
+	/**
490
+	 * @param boolean $x
491
+	 */
477 492
 	public function setRemoveComments( $x ) {
478 493
 		return wfSetVar( $this->mRemoveComments, $x );
479 494
 	}
480 495
 
481 496
 	/* @since 1.24 */
497
+
498
+	/**
499
+	 * @param Closure $x
500
+	 */
482 501
 	public function setCurrentRevisionCallback( $x ) {
483 502
 		return wfSetVar( $this->mCurrentRevisionCallback, $x );
484 503
 	}
@@ -491,6 +510,9 @@  discard block
 block discarded – undo
491 510
 		return wfSetVar( $this->mEnableLimitReport, $x );
492 511
 	}
493 512
 
513
+	/**
514
+	 * @param string|false $x
515
+	 */
494 516
 	public function setTimestamp( $x ) {
495 517
 		return wfSetVar( $this->mTimestamp, $x );
496 518
 	}
@@ -531,6 +553,9 @@  discard block
 block discarded – undo
531 553
 		return wfSetVar( $this->mPreSaveTransform, $x );
532 554
 	}
533 555
 
556
+	/**
557
+	 * @param boolean $x
558
+	 */
534 559
 	public function setIsPreview( $x ) {
535 560
 		return wfSetVar( $this->mIsPreview, $x );
536 561
 	}
@@ -539,6 +564,9 @@  discard block
 block discarded – undo
539 564
 		return wfSetVar( $this->mIsSectionPreview, $x );
540 565
 	}
541 566
 
567
+	/**
568
+	 * @param boolean $x
569
+	 */
542 570
 	public function setIsPrintable( $x ) {
543 571
 		return wfSetVar( $this->mIsPrintable, $x );
544 572
 	}
@@ -723,7 +751,7 @@  discard block
 block discarded – undo
723 751
 	 * Returns the full array of options that would have been used by
724 752
 	 * in 1.16.
725 753
 	 * Used to get the old parser cache entries when available.
726
-	 * @return array
754
+	 * @return string[]
727 755
 	 */
728 756
 	public static function legacyOptions() {
729 757
 		return array(
Please login to merge, or discard this patch.
includes/libs/rdbms/database/IDatabase.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 * High times could be due to scanning, updates, locking, and such
256 256
 	 *
257 257
 	 * @param string $type IDatabase::ESTIMATE_* constant [default: ESTIMATE_ALL]
258
-	 * @return float|bool Returns false if not transaction is active
258
+	 * @return null|IDatabase Returns false if not transaction is active
259 259
 	 * @since 1.26
260 260
 	 */
261 261
 	public function pendingWriteQueryDuration( $type = self::ESTIMATE_TOTAL );
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 	 * Change the position of the cursor in a result object
430 430
 	 * @see http://www.php.net/mysql_data_seek
431 431
 	 *
432
-	 * @param mixed $res A SQL result
432
+	 * @param ResultWrapper $res A SQL result
433 433
 	 * @param int $row
434 434
 	 */
435 435
 	public function dataSeek( $res, $row );
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 	 * @param string|array $table Table name. See IDatabase::select() for details.
560 560
 	 * @param string $var The field name to select. This must be a valid SQL
561 561
 	 *   fragment: do not use unvalidated user input.
562
-	 * @param string|array $cond The condition array. See IDatabase::select() for details.
562
+	 * @param string $cond The condition array. See IDatabase::select() for details.
563 563
 	 * @param string $fname The function name of the caller.
564 564
 	 * @param string|array $options The query options. See IDatabase::select() for details.
565 565
 	 *
@@ -577,10 +577,10 @@  discard block
 block discarded – undo
577 577
 	 *
578 578
 	 * If no result rows are returned from the query, false is returned.
579 579
 	 *
580
-	 * @param string|array $table Table name. See IDatabase::select() for details.
580
+	 * @param string $table Table name. See IDatabase::select() for details.
581 581
 	 * @param string $var The field name to select. This must be a valid SQL
582 582
 	 *   fragment: do not use unvalidated user input.
583
-	 * @param string|array $cond The condition array. See IDatabase::select() for details.
583
+	 * @param string $cond The condition array. See IDatabase::select() for details.
584 584
 	 * @param string $fname The function name of the caller.
585 585
 	 * @param string|array $options The query options. See IDatabase::select() for details.
586 586
 	 *
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
 	 *
598 598
 	 * @param string|array $table Table name
599 599
 	 * @param string|array $vars Field names
600
-	 * @param string|array $conds Conditions
600
+	 * @param string $conds Conditions
601 601
 	 * @param string $fname Caller function name
602 602
 	 * @param array $options Query options
603 603
 	 * @param array $join_conds Join conditions
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 	 *
636 636
 	 * Untrusted user input must not be passed to this parameter.
637 637
 	 *
638
-	 * @param string|array $conds
638
+	 * @param string $conds
639 639
 	 *
640 640
 	 * May be either a string containing a single condition, or an array of
641 641
 	 * conditions. If an array is given, the conditions constructed from each
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 	 *
754 754
 	 * @param string|array $table Table name
755 755
 	 * @param string|array $vars Field names
756
-	 * @param string|array $conds Conditions
756
+	 * @param string $conds Conditions
757 757
 	 * @param string $fname Caller function name
758 758
 	 * @param string|array $options Query options
759 759
 	 * @param string|array $join_conds Join conditions
@@ -817,9 +817,9 @@  discard block
 block discarded – undo
817 817
 	 *
818 818
 	 * @since 1.27 Added $join_conds parameter
819 819
 	 *
820
-	 * @param array|string $tables Table names
820
+	 * @param string $tables Table names
821 821
 	 * @param string $vars Unused
822
-	 * @param array|string $conds Filters on the table
822
+	 * @param string $conds Filters on the table
823 823
 	 * @param string $fname Function name for profiling
824 824
 	 * @param array $options Options for select
825 825
 	 * @param array $join_conds Join conditions (since 1.27)
@@ -1013,7 +1013,7 @@  discard block
 block discarded – undo
1013 1013
 	 * @param string $delim Glue to bind the results together
1014 1014
 	 * @param string|array $table Table name
1015 1015
 	 * @param string $field Field name
1016
-	 * @param string|array $conds Conditions
1016
+	 * @param string $conds Conditions
1017 1017
 	 * @param string|array $join_conds Join conditions
1018 1018
 	 * @return string SQL text
1019 1019
 	 * @since 1.23
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 	 * Adds quotes and backslashes.
1054 1054
 	 *
1055 1055
 	 * @param string|int|null|bool|Blob $s
1056
-	 * @return string|int
1056
+	 * @return string
1057 1057
 	 */
1058 1058
 	public function addQuotes( $s );
1059 1059
 
@@ -1572,7 +1572,7 @@  discard block
 block discarded – undo
1572 1572
 	 * The result is unquoted, and needs to be passed through addQuotes()
1573 1573
 	 * before it can be included in raw SQL.
1574 1574
 	 *
1575
-	 * @param string|int $ts
1575
+	 * @param integer $ts
1576 1576
 	 *
1577 1577
 	 * @return string
1578 1578
 	 */
Please login to merge, or discard this patch.
includes/libs/rdbms/database/Database.php 1 patch
Doc Comments   +18 added lines, -5 removed lines patch added patch discarded remove patch
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 	}
651 651
 
652 652
 	/**
653
-	 * @return bool|string
653
+	 * @return string|false
654 654
 	 */
655 655
 	protected function restoreErrorHandler() {
656 656
 		restore_error_handler();
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 	}
663 663
 
664 664
 	/**
665
-	 * @return string|bool Last PHP error for this DB (typically connection errors)
665
+	 * @return string|false Last PHP error for this DB (typically connection errors)
666 666
 	 */
667 667
 	protected function getLastPHPError() {
668 668
 		if ( $this->mPHPError ) {
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
 	}
771 771
 
772 772
 	/**
773
-	 * @param $sql
773
+	 * @param string $sql
774 774
 	 * @return string|null
775 775
 	 */
776 776
 	protected function getQueryVerb( $sql ) {
@@ -917,6 +917,12 @@  discard block
 block discarded – undo
917 917
 		return $res;
918 918
 	}
919 919
 
920
+	/**
921
+	 * @param string $sql
922
+	 * @param string $commentedSql
923
+	 * @param boolean $isWrite
924
+	 * @param string $fname
925
+	 */
920 926
 	private function doProfiledQuery( $sql, $commentedSql, $isWrite, $fname ) {
921 927
 		$isMaster = !is_null( $this->getLBInfo( 'master' ) );
922 928
 		# generalizeSQL() will probably cut down the query to reasonable
@@ -998,6 +1004,10 @@  discard block
 block discarded – undo
998 1004
 		}
999 1005
 	}
1000 1006
 
1007
+	/**
1008
+	 * @param string $sql
1009
+	 * @param boolean $priorWritesPending
1010
+	 */
1001 1011
 	private function canRecoverFromDisconnect( $sql, $priorWritesPending ) {
1002 1012
 		# Transaction dropped; this can mean lost writes, or REPEATABLE-READ snapshots.
1003 1013
 		# Dropped connections also mean that named locks are automatically released.
@@ -1117,7 +1127,7 @@  discard block
 block discarded – undo
1117 1127
 	 *
1118 1128
 	 * @param array $options Associative array of options to be turned into
1119 1129
 	 *   an SQL query, valid keys are listed in the function.
1120
-	 * @return array
1130
+	 * @return string[]
1121 1131
 	 * @see Database::select()
1122 1132
 	 */
1123 1133
 	protected function makeSelectOptions( $options ) {
@@ -2288,6 +2298,9 @@  discard block
 block discarded – undo
2288 2298
 		return $this->insert( $destTable, $rows, $fname, $insertOptions );
2289 2299
 	}
2290 2300
 
2301
+	/**
2302
+	 * @param string $destTable
2303
+	 */
2291 2304
 	protected function nativeInsertSelect( $destTable, $srcTable, $varMap, $conds,
2292 2305
 		$fname = __METHOD__,
2293 2306
 		$insertOptions = [], $selectOptions = []
@@ -3365,7 +3378,7 @@  discard block
 block discarded – undo
3365 3378
 	}
3366 3379
 
3367 3380
 	/**
3368
-	 * @return string|bool Reason this DB is read-only or false if it is not
3381
+	 * @return string|false Reason this DB is read-only or false if it is not
3369 3382
 	 */
3370 3383
 	protected function getReadOnlyReason() {
3371 3384
 		$reason = $this->getLBInfo( 'readOnlyReason' );
Please login to merge, or discard this patch.
includes/resourceloader/ResourceLoaderWikiModule.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 * NOTE: This ONLY works for getTitleInfo() and isKnownEmpty(), NOT FOR ANYTHING ELSE.
138 138
 	 * In particular, it doesn't work for getContent() or getScript() etc.
139 139
 	 *
140
-	 * @return IDatabase|null
140
+	 * @return Database|null
141 141
 	 */
142 142
 	protected function getDB() {
143 143
 		return wfGetDB( DB_REPLICA );
@@ -277,6 +277,9 @@  discard block
 block discarded – undo
277 277
 		return count( $revisions ) === 0;
278 278
 	}
279 279
 
280
+	/**
281
+	 * @param string $key
282
+	 */
280 283
 	private function setTitleInfo( $key, array $titleInfo ) {
281 284
 		$this->titleInfo[$key] = $titleInfo;
282 285
 	}
Please login to merge, or discard this patch.
includes/Title.php 1 patch
Doc Comments   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 	 * objects or LinkCache entries. Uses $wgContentHandlerUseDB to determine
372 372
 	 * whether to include page_content_model.
373 373
 	 *
374
-	 * @return array
374
+	 * @return string[]
375 375
 	 */
376 376
 	protected static function getSelectFields() {
377 377
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 	 * Get the prefixed DB key associated with an ID
567 567
 	 *
568 568
 	 * @param int $id The page_id of the article
569
-	 * @return Title|null An object representing the article, or null if no such article was found
569
+	 * @return null|string An object representing the article, or null if no such article was found
570 570
 	 */
571 571
 	public static function nameOf( $id ) {
572 572
 		$dbr = wfGetDB( DB_REPLICA );
@@ -1104,7 +1104,6 @@  discard block
 block discarded – undo
1104 1104
 	/**
1105 1105
 	 * Returns true if the title is inside one of the specified namespaces.
1106 1106
 	 *
1107
-	 * @param int|int[] $namespaces,... The namespaces to check for
1108 1107
 	 * @return bool
1109 1108
 	 * @since 1.19
1110 1109
 	 */
@@ -1914,7 +1913,7 @@  discard block
 block discarded – undo
1914 1913
 	 *   - quick  : does cheap permission checks from replica DBs (usable for GUI creation)
1915 1914
 	 *   - full   : does cheap and expensive checks possibly from a replica DB
1916 1915
 	 *   - secure : does cheap and expensive checks, using the master as needed
1917
-	 * @param array $ignoreErrors Array of Strings Set this to a list of message keys
1916
+	 * @param string[] $ignoreErrors Array of Strings Set this to a list of message keys
1918 1917
 	 *   whose corresponding errors may be ignored.
1919 1918
 	 * @return array Array of arrays of the arguments to wfMessage to explain permissions problems.
1920 1919
 	 */
@@ -2015,7 +2014,7 @@  discard block
 block discarded – undo
2015 2014
 	 * Add the resulting error code to the errors array
2016 2015
 	 *
2017 2016
 	 * @param array $errors List of current errors
2018
-	 * @param array $result Result of errors
2017
+	 * @param string $result Result of errors
2019 2018
 	 *
2020 2019
 	 * @return array List of errors
2021 2020
 	 */
@@ -2410,7 +2409,7 @@  discard block
 block discarded – undo
2410 2409
 	 *
2411 2410
 	 * @param string $action The action to check
2412 2411
 	 * @param bool $short Short circuit on first error
2413
-	 * @return array List of errors
2412
+	 * @return string[] List of errors
2414 2413
 	 */
2415 2414
 	private function missingPermissionError( $action, $short ) {
2416 2415
 		// We avoid expensive display logic for quickUserCan's and such
@@ -3934,7 +3933,7 @@  discard block
 block discarded – undo
3934 3933
 	 * Get an associative array for selecting this title from
3935 3934
 	 * the "page" table
3936 3935
 	 *
3937
-	 * @return array Array suitable for the $where parameter of DB::select()
3936
+	 * @return IDatabase Array suitable for the $where parameter of DB::select()
3938 3937
 	 */
3939 3938
 	public function pageCond() {
3940 3939
 		if ( $this->mArticleID > 0 ) {
@@ -3950,7 +3949,7 @@  discard block
 block discarded – undo
3950 3949
 	 *
3951 3950
 	 * @param int $revId Revision ID. Get the revision that was before this one.
3952 3951
 	 * @param int $flags Title::GAID_FOR_UPDATE
3953
-	 * @return int|bool Old revision ID, or false if none exists
3952
+	 * @return integer Old revision ID, or false if none exists
3954 3953
 	 */
3955 3954
 	public function getPreviousRevisionID( $revId, $flags = 0 ) {
3956 3955
 		$db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_REPLICA );
@@ -4090,8 +4089,8 @@  discard block
 block discarded – undo
4090 4089
 	 * Get the number of revisions between the given revision.
4091 4090
 	 * Used for diffs and other things that really need it.
4092 4091
 	 *
4093
-	 * @param int|Revision $old Old revision or rev ID (first before range)
4094
-	 * @param int|Revision $new New revision or rev ID (first after range)
4092
+	 * @param Revision $old Old revision or rev ID (first before range)
4093
+	 * @param Revision $new New revision or rev ID (first after range)
4095 4094
 	 * @param int|null $max Limit of Revisions to count, will be incremented to detect truncations
4096 4095
 	 * @return int Number of revisions between these revisions.
4097 4096
 	 */
@@ -4203,9 +4202,9 @@  discard block
 block discarded – undo
4203 4202
 	 * Used for diffs and other things that really need it.
4204 4203
 	 *
4205 4204
 	 * @param int|Revision $old Old revision or rev ID (first before range by default)
4206
-	 * @param int|Revision $new New revision or rev ID (first after range by default)
4205
+	 * @param Revision $new New revision or rev ID (first after range by default)
4207 4206
 	 * @param int $limit Maximum number of authors
4208
-	 * @param string|array $options (Optional): Single option, or an array of options:
4207
+	 * @param string $options (Optional): Single option, or an array of options:
4209 4208
 	 *     'include_old' Include $old in the range; $new is excluded.
4210 4209
 	 *     'include_new' Include $new in the range; $old is excluded.
4211 4210
 	 *     'include_both' Include both $old and $new in the range.
@@ -4361,7 +4360,7 @@  discard block
 block discarded – undo
4361 4360
 	/**
4362 4361
 	 * Get the default message text or false if the message doesn't exist
4363 4362
 	 *
4364
-	 * @return string|bool
4363
+	 * @return false|string
4365 4364
 	 */
4366 4365
 	public function getDefaultMessageText() {
4367 4366
 		global $wgContLang;
@@ -4812,7 +4811,7 @@  discard block
 block discarded – undo
4812 4811
 	}
4813 4812
 
4814 4813
 	/**
4815
-	 * @return array
4814
+	 * @return string[]
4816 4815
 	 */
4817 4816
 	public function __sleep() {
4818 4817
 		return [
Please login to merge, or discard this patch.
includes/OutputPage.php 1 patch
Doc Comments   +16 added lines, -10 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	 * Add one or more head items to the output
662 662
 	 *
663 663
 	 * @since 1.28
664
-	 * @param string|string[] $value Raw HTML
664
+	 * @param string|string[] $values Raw HTML
665 665
 	 */
666 666
 	public function addHeadItems( $values ) {
667 667
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
 	/**
979 979
 	 * Replace the subtitle with $str
980 980
 	 *
981
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
981
+	 * @param string $str New value of the subtitle. String should be safe HTML.
982 982
 	 */
983 983
 	public function setSubtitle( $str ) {
984 984
 		$this->clearSubtitle();
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 	/**
1597 1597
 	 * Set the displayed file version
1598 1598
 	 *
1599
-	 * @param File|bool $file
1599
+	 * @param File $file
1600 1600
 	 * @return mixed Previous value
1601 1601
 	 */
1602 1602
 	public function setFileVersion( $file ) {
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
 	 * the TTL is higher the older the $mtime timestamp is. Essentially, the
1941 1941
 	 * TTL is 90% of the age of the object, subject to the min and max.
1942 1942
 	 *
1943
-	 * @param string|integer|float|bool|null $mtime Last-Modified timestamp
1943
+	 * @param false|string $mtime Last-Modified timestamp
1944 1944
 	 * @param integer $minTTL Mimimum TTL in seconds [default: 1 minute]
1945 1945
 	 * @param integer $maxTTL Maximum TTL in seconds [default: $wgSquidMaxage]
1946 1946
 	 * @return integer TTL in seconds
@@ -1977,7 +1977,7 @@  discard block
 block discarded – undo
1977 1977
 	/**
1978 1978
 	 * Get the list of cookies that will influence on the cache
1979 1979
 	 *
1980
-	 * @return array
1980
+	 * @return string[]
1981 1981
 	 */
1982 1982
 	function getCacheVaryCookies() {
1983 1983
 		static $cookies;
@@ -2368,7 +2368,7 @@  discard block
 block discarded – undo
2368 2368
 	 * indexing, clear the current text and redirect, set the page's title
2369 2369
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2370 2370
 	 *
2371
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2371
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2372 2372
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2373 2373
 	 *                   optional, if not passed the "<title>" attribute will be
2374 2374
 	 *                   based on $pageTitle
@@ -2394,8 +2394,8 @@  discard block
 block discarded – undo
2394 2394
 	 * showErrorPage( 'titlemsg', $messageObject );
2395 2395
 	 * showErrorPage( $titleMessageObject, $messageObject );
2396 2396
 	 *
2397
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2398
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2397
+	 * @param string $title Message key (string) for page title, or a Message object
2398
+	 * @param string $msg Message key (string) for page text, or a Message object
2399 2399
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2400 2400
 	 */
2401 2401
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2596,6 +2596,9 @@  discard block
 block discarded – undo
2596 2596
 		}
2597 2597
 	}
2598 2598
 
2599
+	/**
2600
+	 * @param string $message
2601
+	 */
2599 2602
 	public function showFatalError( $message ) {
2600 2603
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2601 2604
 
@@ -2614,6 +2617,9 @@  discard block
 block discarded – undo
2614 2617
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2615 2618
 	}
2616 2619
 
2620
+	/**
2621
+	 * @param string $name
2622
+	 */
2617 2623
 	public function showFileDeleteError( $name ) {
2618 2624
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2619 2625
 	}
@@ -2640,7 +2646,7 @@  discard block
 block discarded – undo
2640 2646
 	 * Add a "return to" link pointing to a specified title,
2641 2647
 	 * or the title indicated in the request, or else the main page
2642 2648
 	 *
2643
-	 * @param mixed $unused
2649
+	 * @param null|boolean $unused
2644 2650
 	 * @param Title|string $returnto Title or String to return to
2645 2651
 	 * @param string $returntoquery Query string for the return to link
2646 2652
 	 */
@@ -3668,7 +3674,7 @@  discard block
 block discarded – undo
3668 3674
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3669 3675
 	 *
3670 3676
 	 * @since 1.27
3671
-	 * @param string $remotePath URL path prefix that points to $localPath
3677
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3672 3678
 	 * @param string $localPath File directory exposed at $remotePath
3673 3679
 	 * @param string $file Path to target file relative to $localPath
3674 3680
 	 * @return string URL
Please login to merge, or discard this patch.
includes/libs/StatusValue.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	/**
247 247
 	 * Returns true if the specified message is present as a warning or error
248 248
 	 *
249
-	 * @param string|MessageSpecifier $message Message key or object to search for
249
+	 * @param string $message Message key or object to search for
250 250
 	 *
251 251
 	 * @return bool
252 252
 	 */
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
 	 * Note, due to the lack of tools for comparing IStatusMessage objects, this
275 275
 	 * function will not work when using such an object as the search parameter.
276 276
 	 *
277
-	 * @param MessageSpecifier|string $source Message key or object to search for
278
-	 * @param MessageSpecifier|string $dest Replacement message key or object
277
+	 * @param string $source Message key or object to search for
278
+	 * @param string $dest Replacement message key or object
279 279
 	 * @return bool Return true if the replacement was done, false otherwise.
280 280
 	 */
281 281
 	public function replaceMessage( $source, $dest ) {
Please login to merge, or discard this patch.
includes/Status.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	 *     1 => object(Status) # The Status with warning messages, only
114 114
 	 * ]
115 115
 	 *
116
-	 * @return Status[]
116
+	 * @return StatusValue[]
117 117
 	 */
118 118
 	public function splitByErrorType() {
119 119
 		list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 	 *
226 226
 	 * If both parameters are missing, and there is only one error, no bullet will be added.
227 227
 	 *
228
-	 * @param string|string[]|bool $shortContext A message name or an array of message names.
228
+	 * @param string $shortContext A message name or an array of message names.
229 229
 	 * @param string|string[]|bool $longContext A message name or an array of message names.
230 230
 	 * @param string|Language $lang Language to use for processing messages
231 231
 	 * @return Message
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 	 * @param string|bool $shortContext A short enclosing context message name, to
310 310
 	 *        be used when there is a single error
311 311
 	 * @param string|bool $longContext A long enclosing context message name, for a list
312
-	 * @param string|Language|null $lang Language to use for processing messages
312
+	 * @param Language $lang Language to use for processing messages
313 313
 	 * @return string
314 314
 	 */
315 315
 	public function getHTML( $shortContext = false, $longContext = false, $lang = null ) {
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +14 added lines, -20 removed lines patch added patch discarded remove patch
@@ -235,7 +235,6 @@  discard block
 block discarded – undo
235 235
  *   		[ 'y' ]
236 236
  *   	]
237 237
  *
238
- * @param array $array1,...
239 238
  * @return array
240 239
  */
241 240
 function wfMergeErrorArrays( /*...*/ ) {
@@ -262,8 +261,8 @@  discard block
 block discarded – undo
262 261
  *
263 262
  * @param array $array The array.
264 263
  * @param array $insert The array to insert.
265
- * @param mixed $after The key to insert after
266
- * @return array
264
+ * @param string $after The key to insert after
265
+ * @return string[]
267 266
  */
268 267
 function wfArrayInsertAfter( array $array, array $insert, $after ) {
269 268
 	// Find the offset of the element to insert after.
@@ -1302,7 +1301,7 @@  discard block
 block discarded – undo
1302 1301
 /**
1303 1302
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1304 1303
  *
1305
- * @return string|bool String when in read-only mode; false otherwise
1304
+ * @return string|false String when in read-only mode; false otherwise
1306 1305
  * @since 1.27
1307 1306
  */
1308 1307
 function wfConfiguredReadOnlyReason() {
@@ -1377,7 +1376,6 @@  discard block
 block discarded – undo
1377 1376
  * This function replaces all old wfMsg* functions.
1378 1377
  *
1379 1378
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1380
- * @param mixed $params,... Normal message parameters
1381 1379
  * @return Message
1382 1380
  *
1383 1381
  * @since 1.17
@@ -1398,7 +1396,6 @@  discard block
 block discarded – undo
1398 1396
  * for the first message which is non-empty. If all messages are empty then an
1399 1397
  * instance of the first message key is returned.
1400 1398
  *
1401
- * @param string|string[] $keys,... Message keys
1402 1399
  * @return Message
1403 1400
  *
1404 1401
  * @since 1.18
@@ -1631,7 +1628,7 @@  discard block
 block discarded – undo
1631 1628
  * Use this when considering to send a gzip-encoded response to the client.
1632 1629
  *
1633 1630
  * @param bool $force Forces another check even if we already have a cached result.
1634
- * @return bool
1631
+ * @return null|boolean
1635 1632
  */
1636 1633
 function wfClientAcceptsGzip( $force = false ) {
1637 1634
 	static $result = null;
@@ -1719,7 +1716,7 @@  discard block
 block discarded – undo
1719 1716
  * @param mixed $dest
1720 1717
  * @param mixed $source
1721 1718
  * @param bool $force
1722
- * @return mixed
1719
+ * @return string
1723 1720
  */
1724 1721
 function wfSetVar( &$dest, $source, $force = false ) {
1725 1722
 	$temp = $dest;
@@ -1769,7 +1766,7 @@  discard block
 block discarded – undo
1769 1766
 /**
1770 1767
  * Provide a simple HTTP error.
1771 1768
  *
1772
- * @param int|string $code
1769
+ * @param integer $code
1773 1770
  * @param string $label
1774 1771
  * @param string $desc
1775 1772
  */
@@ -2002,8 +1999,8 @@  discard block
 block discarded – undo
2002 1999
  *
2003 2000
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2004 2001
  *   function will autodetect which format is supplied and act accordingly.
2005
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2006
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2002
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2003
+ * @return false|string String / false The same date in the format specified in $outputtype or false
2007 2004
  */
2008 2005
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2009 2006
 	$ret = MWTimestamp::convert( $outputtype, $ts );
@@ -2042,7 +2039,7 @@  discard block
 block discarded – undo
2042 2039
 /**
2043 2040
  * Check if the operating system is Windows
2044 2041
  *
2045
- * @return bool True if it's Windows, false otherwise.
2042
+ * @return boolean|null True if it's Windows, false otherwise.
2046 2043
  */
2047 2044
 function wfIsWindows() {
2048 2045
 	static $isWindows = null;
@@ -2270,7 +2267,7 @@  discard block
 block discarded – undo
2270 2267
 /**
2271 2268
  * Check if wfShellExec() is effectively disabled via php.ini config
2272 2269
  *
2273
- * @return bool|string False or 'disabled'
2270
+ * @return string|false False or 'disabled'
2274 2271
  * @since 1.22
2275 2272
  */
2276 2273
 function wfShellExecDisabled() {
@@ -2884,7 +2881,7 @@  discard block
 block discarded – undo
2884 2881
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2885 2882
  * @param bool $lowercase Whether to output in lowercase or uppercase
2886 2883
  * @param string $engine Either "gmp", "bcmath", or "php"
2887
- * @return string|bool The output number as a string, or false on error
2884
+ * @return false|string The output number as a string, or false on error
2888 2885
  */
2889 2886
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
2890 2887
 	$lowercase = true, $engine = 'auto'
@@ -2969,7 +2966,6 @@  discard block
 block discarded – undo
2969 2966
 /**
2970 2967
  * Make a cache key for the local wiki.
2971 2968
  *
2972
- * @param string $args,...
2973 2969
  * @return string
2974 2970
  */
2975 2971
 function wfMemcKey( /*...*/ ) {
@@ -2986,7 +2982,6 @@  discard block
 block discarded – undo
2986 2982
  *
2987 2983
  * @param string $db
2988 2984
  * @param string $prefix
2989
- * @param string $args,...
2990 2985
  * @return string
2991 2986
  */
2992 2987
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3006,7 +3001,6 @@  discard block
 block discarded – undo
3006 3001
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3007 3002
  *
3008 3003
  * @since 1.26
3009
- * @param string $args,...
3010 3004
  * @return string
3011 3005
  */
3012 3006
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3121,7 +3115,7 @@  discard block
 block discarded – undo
3121 3115
  * Returns a valid placeholder object if the file does not exist.
3122 3116
  *
3123 3117
  * @param Title|string $title
3124
- * @return LocalFile|null A File, or null if passed an invalid Title
3118
+ * @return File|null A File, or null if passed an invalid Title
3125 3119
  */
3126 3120
 function wfLocalFile( $title ) {
3127 3121
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3326,7 +3320,7 @@  discard block
 block discarded – undo
3326 3320
 /**
3327 3321
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3328 3322
  *
3329
- * @return int Prior time limit
3323
+ * @return string Prior time limit
3330 3324
  * @since 1.26
3331 3325
  */
3332 3326
 function wfTransactionalTimeLimit() {
@@ -3462,7 +3456,7 @@  discard block
 block discarded – undo
3462 3456
  *
3463 3457
  * @param string $format The format string (See php's docs)
3464 3458
  * @param string $data A binary string of binary data
3465
- * @param int|bool $length The minimum length of $data or false. This is to
3459
+ * @param integer $length The minimum length of $data or false. This is to
3466 3460
  *	prevent reading beyond the end of $data. false to disable the check.
3467 3461
  *
3468 3462
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.