Completed
Branch master (c42d81)
by
unknown
25:37
created
includes/installer/Installer.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
 	 * fake password in which case leave it as it is.
579 579
 	 *
580 580
 	 * @param string $name
581
-	 * @param mixed $value
581
+	 * @param string $value
582 582
 	 */
583 583
 	public function setPassword( $name, $value ) {
584 584
 		if ( !preg_match( '/^\*+$/', $value ) ) {
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
 	 *
1267 1267
 	 * If $versionInfo is not false, only executables with a version
1268 1268
 	 * matching $versionInfo[1] will be returned.
1269
-	 * @return bool|string
1269
+	 * @return string|false
1270 1270
 	 */
1271 1271
 	public static function locateExecutable( $path, $names, $versionInfo = false ) {
1272 1272
 		if ( !is_array( $names ) ) {
@@ -1298,14 +1298,14 @@  discard block
 block discarded – undo
1298 1298
 	/**
1299 1299
 	 * Same as locateExecutable(), but checks in getPossibleBinPaths() by default
1300 1300
 	 * @see locateExecutable()
1301
-	 * @param array $names Array of possible names.
1302
-	 * @param array|bool $versionInfo Default: false or array with two members:
1301
+	 * @param string[] $names Array of possible names.
1302
+	 * @param string[] $versionInfo Default: false or array with two members:
1303 1303
 	 *   0 => Command to run for version check, with $1 for the full executable name
1304 1304
 	 *   1 => String to compare the output with
1305 1305
 	 *
1306 1306
 	 * If $versionInfo is not false, only executables with a version
1307 1307
 	 * matching $versionInfo[1] will be returned.
1308
-	 * @return bool|string
1308
+	 * @return string|false
1309 1309
 	 */
1310 1310
 	public static function locateExecutableInDefaultPaths( $names, $versionInfo = false ) {
1311 1311
 		foreach ( self::getPossibleBinPaths() as $path ) {
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
 	 * Used only by environment checks.
1325 1325
 	 * @param string $dir
1326 1326
 	 * @param string $url
1327
-	 * @return bool|int|string
1327
+	 * @return string|false
1328 1328
 	 */
1329 1329
 	public function dirIsExecutable( $dir, $url ) {
1330 1330
 		$scriptTypes = array(
Please login to merge, or discard this patch.
includes/db/Database.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
 	}
652 652
 
653 653
 	/**
654
-	 * @return bool|string
654
+	 * @return string|false
655 655
 	 */
656 656
 	protected function restoreErrorHandler() {
657 657
 		restore_error_handler();
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
 	 *
1104 1104
 	 * @param array $options Associative array of options to be turned into
1105 1105
 	 *   an SQL query, valid keys are listed in the function.
1106
-	 * @return array
1106
+	 * @return string[]
1107 1107
 	 * @see DatabaseBase::select()
1108 1108
 	 */
1109 1109
 	public function makeSelectOptions( $options ) {
@@ -2959,8 +2959,8 @@  discard block
 block discarded – undo
2959 2959
 	 * on object's error ignore settings).
2960 2960
 	 *
2961 2961
 	 * @param string $filename File name to open
2962
-	 * @param bool|callable $lineCallback Optional function called before reading each line
2963
-	 * @param bool|callable $resultCallback Optional function called for each MySQL result
2962
+	 * @param boolean $lineCallback Optional function called before reading each line
2963
+	 * @param boolean $resultCallback Optional function called for each MySQL result
2964 2964
 	 * @param bool|string $fname Calling function name or false if name should be
2965 2965
 	 *   generated dynamically using $filename
2966 2966
 	 * @param bool|callable $inputCallback Optional function called for each
@@ -3291,7 +3291,7 @@  discard block
 block discarded – undo
3291 3291
 	}
3292 3292
 
3293 3293
 	/**
3294
-	 * @return string|bool Reason this DB is read-only or false if it is not
3294
+	 * @return string|false Reason this DB is read-only or false if it is not
3295 3295
 	 */
3296 3296
 	protected function getReadOnlyReason() {
3297 3297
 		$reason = $this->getLBInfo( 'readOnlyReason' );
Please login to merge, or discard this patch.
includes/filerepo/file/LocalFile.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
 	/**
193 193
 	 * Fields in the image table
194
-	 * @return array
194
+	 * @return string[]
195 195
 	 */
196 196
 	static function selectFields() {
197 197
 		return [
@@ -1114,11 +1114,11 @@  discard block
 block discarded – undo
1114 1114
 
1115 1115
 	/**
1116 1116
 	 * Upload a file and record it in the DB
1117
-	 * @param string|FSFile $src Source storage path, virtual URL, or filesystem path
1117
+	 * @param string $src Source storage path, virtual URL, or filesystem path
1118 1118
 	 * @param string $comment Upload description
1119 1119
 	 * @param string $pageText Text to use for the new description page,
1120 1120
 	 *   if a new description page is created
1121
-	 * @param int|bool $flags Flags for publish()
1121
+	 * @param integer $flags Flags for publish()
1122 1122
 	 * @param array|bool $props File properties, if known. This can be used to
1123 1123
 	 *   reduce the upload time when uploading virtual URLs for which the file
1124 1124
 	 *   info is already known
@@ -1815,7 +1815,7 @@  discard block
 block discarded – undo
1815 1815
 	 * it skips the parser cache.
1816 1816
 	 *
1817 1817
 	 * @param Language $lang What language to get description in (Optional)
1818
-	 * @return bool|mixed
1818
+	 * @return false|string
1819 1819
 	 */
1820 1820
 	function getDescriptionText( $lang = null ) {
1821 1821
 		$revision = Revision::newFromTitle( $this->title, false, Revision::READ_NORMAL );
@@ -1859,7 +1859,7 @@  discard block
 block discarded – undo
1859 1859
 	}
1860 1860
 
1861 1861
 	/**
1862
-	 * @return bool|string
1862
+	 * @return string|false
1863 1863
 	 */
1864 1864
 	public function getDescriptionTouched() {
1865 1865
 		// The DB lookup might return false, e.g. if the file was just deleted, or the shared DB repo
Please login to merge, or discard this patch.
includes/parser/Preprocessor_Hash.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -688,6 +688,9 @@  discard block
 block discarded – undo
688 688
 		return $rootNode;
689 689
 	}
690 690
 
691
+	/**
692
+	 * @param string $text
693
+	 */
691 694
 	private static function addLiteral( array &$accum, $text ) {
692 695
 		$n = count( $accum );
693 696
 		if ( $n && is_string( $accum[$n - 1] ) ) {
@@ -1133,7 +1136,6 @@  discard block
 block discarded – undo
1133 1136
 	/**
1134 1137
 	 * @param string $sep
1135 1138
 	 * @param int $flags
1136
-	 * @param string|PPNode $args,...
1137 1139
 	 * @return string
1138 1140
 	 */
1139 1141
 	public function implodeWithFlags( $sep, $flags /*, ... */ ) {
@@ -1164,7 +1166,6 @@  discard block
 block discarded – undo
1164 1166
 	 * Implode with no flags specified
1165 1167
 	 * This previously called implodeWithFlags but has now been inlined to reduce stack depth
1166 1168
 	 * @param string $sep
1167
-	 * @param string|PPNode $args,...
1168 1169
 	 * @return string
1169 1170
 	 */
1170 1171
 	public function implode( $sep /*, ... */ ) {
@@ -1196,7 +1197,6 @@  discard block
 block discarded – undo
1196 1197
 	 * with implode()
1197 1198
 	 *
1198 1199
 	 * @param string $sep
1199
-	 * @param string|PPNode $args,...
1200 1200
 	 * @return PPNode_Hash_Array
1201 1201
 	 */
1202 1202
 	public function virtualImplode( $sep /*, ... */ ) {
@@ -1229,7 +1229,6 @@  discard block
 block discarded – undo
1229 1229
 	 * @param string $start
1230 1230
 	 * @param string $sep
1231 1231
 	 * @param string $end
1232
-	 * @param string|PPNode $args,...
1233 1232
 	 * @return PPNode_Hash_Array
1234 1233
 	 */
1235 1234
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) {
@@ -1392,7 +1391,7 @@  discard block
 block discarded – undo
1392 1391
 
1393 1392
 	/**
1394 1393
 	 * @param Preprocessor $preprocessor
1395
-	 * @param bool|PPFrame $parent
1394
+	 * @param PPFrame_Hash $parent
1396 1395
 	 * @param array $numberedArgs
1397 1396
 	 * @param array $namedArgs
1398 1397
 	 * @param bool|Title $title
@@ -1572,6 +1571,9 @@  discard block
 block discarded – undo
1572 1571
 
1573 1572
 	public $args;
1574 1573
 
1574
+	/**
1575
+	 * @param Preprocessor_Hash $preprocessor
1576
+	 */
1575 1577
 	public function __construct( $preprocessor, $args ) {
1576 1578
 		parent::__construct( $preprocessor );
1577 1579
 		$this->args = $args;
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_SLAVE );
@@ -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 $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 slaves (usable for GUI creation)
1890 1889
 	 *   - full   : does cheap and expensive checks possibly from a slave
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
 	 */
@@ -2381,7 +2380,7 @@  discard block
 block discarded – undo
2381 2380
 	 *
2382 2381
 	 * @param string $action The action to check
2383 2382
 	 * @param bool $short Short circuit on first error
2384
-	 * @return array List of errors
2383
+	 * @return string[] List of errors
2385 2384
 	 */
2386 2385
 	private function missingPermissionError( $action, $short ) {
2387 2386
 		// We avoid expensive display logic for quickUserCan's and such
@@ -3920,7 +3919,7 @@  discard block
 block discarded – undo
3920 3919
 	 *
3921 3920
 	 * @param int $revId Revision ID. Get the revision that was before this one.
3922 3921
 	 * @param int $flags Title::GAID_FOR_UPDATE
3923
-	 * @return int|bool Old revision ID, or false if none exists
3922
+	 * @return integer Old revision ID, or false if none exists
3924 3923
 	 */
3925 3924
 	public function getPreviousRevisionID( $revId, $flags = 0 ) {
3926 3925
 		$db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_SLAVE );
@@ -4060,8 +4059,8 @@  discard block
 block discarded – undo
4060 4059
 	 * Get the number of revisions between the given revision.
4061 4060
 	 * Used for diffs and other things that really need it.
4062 4061
 	 *
4063
-	 * @param int|Revision $old Old revision or rev ID (first before range)
4064
-	 * @param int|Revision $new New revision or rev ID (first after range)
4062
+	 * @param Revision $old Old revision or rev ID (first before range)
4063
+	 * @param Revision $new New revision or rev ID (first after range)
4065 4064
 	 * @param int|null $max Limit of Revisions to count, will be incremented to detect truncations
4066 4065
 	 * @return int Number of revisions between these revisions.
4067 4066
 	 */
@@ -4173,9 +4172,9 @@  discard block
 block discarded – undo
4173 4172
 	 * Used for diffs and other things that really need it.
4174 4173
 	 *
4175 4174
 	 * @param int|Revision $old Old revision or rev ID (first before range by default)
4176
-	 * @param int|Revision $new New revision or rev ID (first after range by default)
4175
+	 * @param Revision $new New revision or rev ID (first after range by default)
4177 4176
 	 * @param int $limit Maximum number of authors
4178
-	 * @param string|array $options (Optional): Single option, or an array of options:
4177
+	 * @param string $options (Optional): Single option, or an array of options:
4179 4178
 	 *     'include_old' Include $old in the range; $new is excluded.
4180 4179
 	 *     'include_new' Include $new in the range; $old is excluded.
4181 4180
 	 *     'include_both' Include both $old and $new in the range.
@@ -4331,7 +4330,7 @@  discard block
 block discarded – undo
4331 4330
 	/**
4332 4331
 	 * Get the default message text or false if the message doesn't exist
4333 4332
 	 *
4334
-	 * @return string|bool
4333
+	 * @return false|string
4335 4334
 	 */
4336 4335
 	public function getDefaultMessageText() {
4337 4336
 		global $wgContLang;
@@ -4778,7 +4777,7 @@  discard block
 block discarded – undo
4778 4777
 	}
4779 4778
 
4780 4779
 	/**
4781
-	 * @return array
4780
+	 * @return string[]
4782 4781
 	 */
4783 4782
 	public function __sleep() {
4784 4783
 		return [
Please login to merge, or discard this patch.