Completed
Branch master (573807)
by
unknown
34:51
created
includes/api/ApiQueryBacklinksprop.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -447,6 +447,9 @@
 block discarded – undo
447 447
 		return $vals;
448 448
 	}
449 449
 
450
+	/**
451
+	 * @param null|stdClass $row
452
+	 */
450 453
 	private function continueStr( $row ) {
451 454
 		if ( $this->multiUserMode ) {
452 455
 			if ( $this->idMode ) {
Please login to merge, or discard this patch.
includes/api/ApiQueryLogEvents.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -447,6 +447,9 @@
 block discarded – undo
447 447
 		return $vals;
448 448
 	}
449 449
 
450
+	/**
451
+	 * @param null|stdClass $row
452
+	 */
450 453
 	private function continueStr( $row ) {
451 454
 		if ( $this->multiUserMode ) {
452 455
 			if ( $this->idMode ) {
Please login to merge, or discard this patch.
includes/libs/rdbms/database/DatabasePostgres.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 		return false;
60 60
 	}
61 61
 
62
+	/**
63
+	 * @param string $name
64
+	 */
62 65
 	function hasConstraint( $name ) {
63 66
 		$sql = "SELECT 1 FROM pg_catalog.pg_constraint c, pg_catalog.pg_namespace n " .
64 67
 			"WHERE c.connamespace = n.oid AND conname = '" .
@@ -1109,6 +1112,10 @@  discard block
 block discarded – undo
1109 1112
 		return $this->relationExists( $sequence, 'S', $schema );
1110 1113
 	}
1111 1114
 
1115
+	/**
1116
+	 * @param string $table
1117
+	 * @param string $trigger
1118
+	 */
1112 1119
 	function triggerExists( $table, $trigger ) {
1113 1120
 		$q = <<<SQL
1114 1121
 	SELECT 1 FROM pg_class, pg_namespace, pg_trigger
@@ -1132,6 +1139,10 @@  discard block
 block discarded – undo
1132 1139
 		return $rows;
1133 1140
 	}
1134 1141
 
1142
+	/**
1143
+	 * @param string $table
1144
+	 * @param string $rule
1145
+	 */
1135 1146
 	function ruleExists( $table, $rule ) {
1136 1147
 		$exists = $this->selectField( 'pg_rules', 'rulename',
1137 1148
 			[
@@ -1279,7 +1290,7 @@  discard block
 block discarded – undo
1279 1290
 	 *
1280 1291
 	 * @param array $options An associative array of options to be turned into
1281 1292
 	 *   an SQL query, valid keys are listed in the function.
1282
-	 * @return array
1293
+	 * @return string[]
1283 1294
 	 */
1284 1295
 	function makeSelectOptions( $options ) {
1285 1296
 		$preLimitTail = $postLimitTail = '';
Please login to merge, or discard this patch.
includes/Title.php 1 patch
Doc Comments   +12 added lines, -13 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 	 * objects or LinkCache entries. Uses $wgContentHandlerUseDB to determine
366 366
 	 * whether to include page_content_model.
367 367
 	 *
368
-	 * @return array
368
+	 * @return string[]
369 369
 	 */
370 370
 	protected static function getSelectFields() {
371 371
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 	 * Get the prefixed DB key associated with an ID
559 559
 	 *
560 560
 	 * @param int $id The page_id of the article
561
-	 * @return Title|null An object representing the article, or null if no such article was found
561
+	 * @return null|string An object representing the article, or null if no such article was found
562 562
 	 */
563 563
 	public static function nameOf( $id ) {
564 564
 		$dbr = wfGetDB( DB_REPLICA );
@@ -1079,7 +1079,6 @@  discard block
 block discarded – undo
1079 1079
 	/**
1080 1080
 	 * Returns true if the title is inside one of the specified namespaces.
1081 1081
 	 *
1082
-	 * @param int|int[] $namespaces,... The namespaces to check for
1083 1082
 	 * @return bool
1084 1083
 	 * @since 1.19
1085 1084
 	 */
@@ -1889,7 +1888,7 @@  discard block
 block discarded – undo
1889 1888
 	 *   - quick  : does cheap permission checks from replica DBs (usable for GUI creation)
1890 1889
 	 *   - full   : does cheap and expensive checks possibly from a replica DB
1891 1890
 	 *   - secure : does cheap and expensive checks, using the master as needed
1892
-	 * @param array $ignoreErrors Array of Strings Set this to a list of message keys
1891
+	 * @param string[] $ignoreErrors Array of Strings Set this to a list of message keys
1893 1892
 	 *   whose corresponding errors may be ignored.
1894 1893
 	 * @return array Array of arrays of the arguments to wfMessage to explain permissions problems.
1895 1894
 	 */
@@ -1990,7 +1989,7 @@  discard block
 block discarded – undo
1990 1989
 	 * Add the resulting error code to the errors array
1991 1990
 	 *
1992 1991
 	 * @param array $errors List of current errors
1993
-	 * @param array $result Result of errors
1992
+	 * @param string $result Result of errors
1994 1993
 	 *
1995 1994
 	 * @return array List of errors
1996 1995
 	 */
@@ -2385,7 +2384,7 @@  discard block
 block discarded – undo
2385 2384
 	 *
2386 2385
 	 * @param string $action The action to check
2387 2386
 	 * @param bool $short Short circuit on first error
2388
-	 * @return array List of errors
2387
+	 * @return string[] List of errors
2389 2388
 	 */
2390 2389
 	private function missingPermissionError( $action, $short ) {
2391 2390
 		// We avoid expensive display logic for quickUserCan's and such
@@ -3925,7 +3924,7 @@  discard block
 block discarded – undo
3925 3924
 	 *
3926 3925
 	 * @param int $revId Revision ID. Get the revision that was before this one.
3927 3926
 	 * @param int $flags Title::GAID_FOR_UPDATE
3928
-	 * @return int|bool Old revision ID, or false if none exists
3927
+	 * @return integer Old revision ID, or false if none exists
3929 3928
 	 */
3930 3929
 	public function getPreviousRevisionID( $revId, $flags = 0 ) {
3931 3930
 		$db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_REPLICA );
@@ -4065,8 +4064,8 @@  discard block
 block discarded – undo
4065 4064
 	 * Get the number of revisions between the given revision.
4066 4065
 	 * Used for diffs and other things that really need it.
4067 4066
 	 *
4068
-	 * @param int|Revision $old Old revision or rev ID (first before range)
4069
-	 * @param int|Revision $new New revision or rev ID (first after range)
4067
+	 * @param Revision $old Old revision or rev ID (first before range)
4068
+	 * @param Revision $new New revision or rev ID (first after range)
4070 4069
 	 * @param int|null $max Limit of Revisions to count, will be incremented to detect truncations
4071 4070
 	 * @return int Number of revisions between these revisions.
4072 4071
 	 */
@@ -4178,9 +4177,9 @@  discard block
 block discarded – undo
4178 4177
 	 * Used for diffs and other things that really need it.
4179 4178
 	 *
4180 4179
 	 * @param int|Revision $old Old revision or rev ID (first before range by default)
4181
-	 * @param int|Revision $new New revision or rev ID (first after range by default)
4180
+	 * @param Revision $new New revision or rev ID (first after range by default)
4182 4181
 	 * @param int $limit Maximum number of authors
4183
-	 * @param string|array $options (Optional): Single option, or an array of options:
4182
+	 * @param string $options (Optional): Single option, or an array of options:
4184 4183
 	 *     'include_old' Include $old in the range; $new is excluded.
4185 4184
 	 *     'include_new' Include $new in the range; $old is excluded.
4186 4185
 	 *     'include_both' Include both $old and $new in the range.
@@ -4336,7 +4335,7 @@  discard block
 block discarded – undo
4336 4335
 	/**
4337 4336
 	 * Get the default message text or false if the message doesn't exist
4338 4337
 	 *
4339
-	 * @return string|bool
4338
+	 * @return false|string
4340 4339
 	 */
4341 4340
 	public function getDefaultMessageText() {
4342 4341
 		global $wgContLang;
@@ -4784,7 +4783,7 @@  discard block
 block discarded – undo
4784 4783
 	}
4785 4784
 
4786 4785
 	/**
4787
-	 * @return array
4786
+	 * @return string[]
4788 4787
 	 */
4789 4788
 	public function __sleep() {
4790 4789
 		return [
Please login to merge, or discard this patch.
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.