Completed
Branch master (95e56b)
by
unknown
25:38
created
includes/utils/AutoloadGenerator.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	 * Updates the AutoloadClasses field at the given
123 123
 	 * filename.
124 124
 	 *
125
-	 * @param {string} $filename Filename of JSON
125
+	 * @param string $filename Filename of JSON
126 126
 	 *  extension/skin registration file
127 127
 	 */
128 128
 	protected function generateJsonAutoload( $filename ) {
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 	/**
158 158
 	 * Generates a PHP file setting up autoload information.
159 159
 	 *
160
-	 * @param {string} $commandName Command name to include in comment
161
-	 * @param {string} $filename of PHP file to put autoload information in.
160
+	 * @param string $commandName Command name to include in comment
161
+	 * @param string $filename of PHP file to put autoload information in.
162 162
 	 */
163 163
 	protected function generatePHPAutoload( $commandName, $filename ) {
164 164
 		// No existing JSON file found; update/generate PHP file
@@ -278,6 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
 	/**
280 280
 	 * @var string $code PHP code (including <?php) to detect class names from
281
+	 * @param string $code
281 282
 	 * @return array List of FQCN detected within the tokens
282 283
 	 */
283 284
 	public function getClasses( $code ) {
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +11 added lines, -17 removed lines patch added patch discarded remove patch
@@ -235,7 +235,6 @@  discard block
 block discarded – undo
235 235
  *   		array( 'y' )
236 236
  *   	)
237 237
  *
238
- * @param array $array1,...
239 238
  * @return array
240 239
  */
241 240
 function wfMergeErrorArrays( /*...*/ ) {
@@ -1287,7 +1286,7 @@  discard block
 block discarded – undo
1287 1286
 /**
1288 1287
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1289 1288
  *
1290
- * @return string|bool String when in read-only mode; false otherwise
1289
+ * @return string|false String when in read-only mode; false otherwise
1291 1290
  * @since 1.27
1292 1291
  */
1293 1292
 function wfConfiguredReadOnlyReason() {
@@ -1362,7 +1361,6 @@  discard block
 block discarded – undo
1362 1361
  * This function replaces all old wfMsg* functions.
1363 1362
  *
1364 1363
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1365
- * @param mixed $params,... Normal message parameters
1366 1364
  * @return Message
1367 1365
  *
1368 1366
  * @since 1.17
@@ -1383,7 +1381,6 @@  discard block
 block discarded – undo
1383 1381
  * for the first message which is non-empty. If all messages are empty then an
1384 1382
  * instance of the first message key is returned.
1385 1383
  *
1386
- * @param string|string[] $keys,... Message keys
1387 1384
  * @return Message
1388 1385
  *
1389 1386
  * @since 1.18
@@ -1614,7 +1611,7 @@  discard block
 block discarded – undo
1614 1611
  * @todo FIXME: We may want to blacklist some broken browsers
1615 1612
  *
1616 1613
  * @param bool $force
1617
- * @return bool Whereas client accept gzip compression
1614
+ * @return null|boolean Whereas client accept gzip compression
1618 1615
  */
1619 1616
 function wfClientAcceptsGzip( $force = false ) {
1620 1617
 	static $result = null;
@@ -1750,7 +1747,7 @@  discard block
 block discarded – undo
1750 1747
 /**
1751 1748
  * Provide a simple HTTP error.
1752 1749
  *
1753
- * @param int|string $code
1750
+ * @param integer $code
1754 1751
  * @param string $label
1755 1752
  * @param string $desc
1756 1753
  */
@@ -2032,8 +2029,8 @@  discard block
 block discarded – undo
2032 2029
  *
2033 2030
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2034 2031
  *   function will autodetect which format is supplied and act accordingly.
2035
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2036
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2032
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2033
+ * @return string|false String / false The same date in the format specified in $outputtype or false
2037 2034
  */
2038 2035
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2039 2036
 	try {
@@ -2074,7 +2071,7 @@  discard block
 block discarded – undo
2074 2071
 /**
2075 2072
  * Check if the operating system is Windows
2076 2073
  *
2077
- * @return bool True if it's Windows, false otherwise.
2074
+ * @return boolean|null True if it's Windows, false otherwise.
2078 2075
  */
2079 2076
 function wfIsWindows() {
2080 2077
 	static $isWindows = null;
@@ -2313,7 +2310,7 @@  discard block
 block discarded – undo
2313 2310
 /**
2314 2311
  * Check if wfShellExec() is effectively disabled via php.ini config
2315 2312
  *
2316
- * @return bool|string False or 'disabled'
2313
+ * @return string|false False or 'disabled'
2317 2314
  * @since 1.22
2318 2315
  */
2319 2316
 function wfShellExecDisabled() {
@@ -2927,7 +2924,7 @@  discard block
 block discarded – undo
2927 2924
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2928 2925
  * @param bool $lowercase Whether to output in lowercase or uppercase
2929 2926
  * @param string $engine Either "gmp", "bcmath", or "php"
2930
- * @return string|bool The output number as a string, or false on error
2927
+ * @return false|string The output number as a string, or false on error
2931 2928
  */
2932 2929
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
2933 2930
 	$lowercase = true, $engine = 'auto'
@@ -3012,7 +3009,6 @@  discard block
 block discarded – undo
3012 3009
 /**
3013 3010
  * Make a cache key for the local wiki.
3014 3011
  *
3015
- * @param string $args,...
3016 3012
  * @return string
3017 3013
  */
3018 3014
 function wfMemcKey( /*...*/ ) {
@@ -3029,7 +3025,6 @@  discard block
 block discarded – undo
3029 3025
  *
3030 3026
  * @param string $db
3031 3027
  * @param string $prefix
3032
- * @param string $args,...
3033 3028
  * @return string
3034 3029
  */
3035 3030
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3049,7 +3044,6 @@  discard block
 block discarded – undo
3049 3044
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3050 3045
  *
3051 3046
  * @since 1.26
3052
- * @param string $args,...
3053 3047
  * @return string
3054 3048
  */
3055 3049
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3151,7 +3145,7 @@  discard block
 block discarded – undo
3151 3145
  * Returns a valid placeholder object if the file does not exist.
3152 3146
  *
3153 3147
  * @param Title|string $title
3154
- * @return LocalFile|null A File, or null if passed an invalid Title
3148
+ * @return File|null A File, or null if passed an invalid Title
3155 3149
  */
3156 3150
 function wfLocalFile( $title ) {
3157 3151
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3355,7 +3349,7 @@  discard block
 block discarded – undo
3355 3349
 /**
3356 3350
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3357 3351
  *
3358
- * @return int Prior time limit
3352
+ * @return string Prior time limit
3359 3353
  * @since 1.26
3360 3354
  */
3361 3355
 function wfTransactionalTimeLimit() {
@@ -3491,7 +3485,7 @@  discard block
 block discarded – undo
3491 3485
  *
3492 3486
  * @param string $format The format string (See php's docs)
3493 3487
  * @param string $data A binary string of binary data
3494
- * @param int|bool $length The minimum length of $data or false. This is to
3488
+ * @param integer $length The minimum length of $data or false. This is to
3495 3489
  *	prevent reading beyond the end of $data. false to disable the check.
3496 3490
  *
3497 3491
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/logging/LogPager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
 		}
113 113
 	}
114 114
 
115
+	/**
116
+	 * @return string
117
+	 */
115 118
 	function stripParameters( $text ) {
116 119
 		if ( !$this->stripParametersEnabled ) {
117 120
 			return $text;
Please login to merge, or discard this patch.
includes/skins/SkinTemplate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
 		}
31 31
 	}
32 32
 
33
+	/**
34
+	 * @param string $name
35
+	 */
33 36
 	function __call( $name, array $arguments ) {
34 37
 		if ( $this->conn === null ) {
35 38
 			list( $db, $groups, $wiki ) = $this->params;
Please login to merge, or discard this patch.
includes/FauxRequest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	 * @param array $data Array of *non*-urlencoded key => value pairs, the
40 40
 	 *   fake GET/POST values
41 41
 	 * @param bool $wasPosted Whether to treat the data as POST
42
-	 * @param MediaWiki\Session\Session|array|null $session Session, session
42
+	 * @param MediaWiki\Session\Session|null $session Session, session
43 43
 	 *  data array, or null
44 44
 	 * @param string $protocol 'http' or 'https'
45 45
 	 * @throws MWException
@@ -126,7 +126,6 @@  discard block
 block discarded – undo
126 126
 
127 127
 	/**
128 128
 	 * @since 1.26
129
-	 * @param string $name Unprefixed name of the cookie to set
130 129
 	 * @param string|null $value Value of the cookie to set
131 130
 	 * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix
132 131
 	 */
@@ -152,6 +151,7 @@  discard block
 block discarded – undo
152 151
 
153 152
 	/**
154 153
 	 * @since 1.25
154
+	 * @param string $url
155 155
 	 */
156 156
 	public function setRequestURL( $url ) {
157 157
 		$this->requestUrl = $url;
Please login to merge, or discard this patch.
includes/widget/SearchInputWidget.php 1 patch
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,6 @@
 block discarded – undo
19 19
 
20 20
 	/**
21 21
 	 * @param array $config Configuration options
22
-	 * @param int|null $config['pushPending'] Whether the input should be visually marked as
23
-	 *  "pending", while requesting suggestions (default: true)
24
-	 * @param boolean|null $config['performSearchOnClick'] If true, the script will start a search
25
-	 *  whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the
26
-	 *  text field only (default: true)
27 22
 	 */
28 23
 	public function __construct( array $config = [] ) {
29 24
 		$config = array_merge( [
Please login to merge, or discard this patch.
includes/specials/SpecialUpload.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	/**
219 219
 	 * Show the main upload form
220 220
 	 *
221
-	 * @param HTMLForm|string $form An HTMLForm instance or HTML string to show
221
+	 * @param UploadForm $form An HTMLForm instance or HTML string to show
222 222
 	 */
223 223
 	protected function showUploadForm( $form ) {
224 224
 		# Add links if file was previously deleted
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 	 *
602 602
 	 * Note that the page target can be changed *on the form*, so our check
603 603
 	 * state can get out of sync.
604
-	 * @return bool|string
604
+	 * @return boolean
605 605
 	 */
606 606
 	protected function getWatchCheck() {
607 607
 		if ( $this->getUser()->getOption( 'watchdefault' ) ) {
Please login to merge, or discard this patch.
includes/filerepo/file/File.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * Most subclasses will want to call assertRepoDefined() here.
161 161
 	 *
162 162
 	 * @param Title|string|bool $title
163
-	 * @param FileRepo|bool $repo
163
+	 * @param FileRepo $repo
164 164
 	 */
165 165
 	function __construct( $title, $repo ) {
166 166
 		// Some subclasses do not use $title, but set name/title some other way
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 	 * Most callers don't check the return value, but ForeignAPIFile::getPath
412 412
 	 * returns false.
413 413
 	 *
414
-	 * @return string|bool ForeignAPIFile::getPath can return false
414
+	 * @return string ForeignAPIFile::getPath can return false
415 415
 	 */
416 416
 	public function getPath() {
417 417
 		if ( !isset( $this->path ) ) {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 	 * Overridden by LocalFile, UnregisteredLocalFile
458 458
 	 *
459 459
 	 * @param int $page
460
-	 * @return int|bool
460
+	 * @return boolean
461 461
 	 */
462 462
 	public function getWidth( $page = 1 ) {
463 463
 		return false;
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 	 * Overridden by LocalFile, UnregisteredLocalFile
472 472
 	 *
473 473
 	 * @param int $page
474
-	 * @return bool|int False on failure
474
+	 * @return boolean False on failure
475 475
 	 */
476 476
 	public function getHeight( $page = 1 ) {
477 477
 		return false;
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 	 *
485 485
 	 * @param int $desiredWidth
486 486
 	 * @param int $page
487
-	 * @return bool|int
487
+	 * @return integer
488 488
 	 */
489 489
 	public function getThumbnailBucket( $desiredWidth, $page = 1 ) {
490 490
 		global $wgThumbnailBuckets, $wgThumbnailMinimumBucketDistance;
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 	 * Get handler-specific metadata
634 634
 	 * Overridden by LocalFile, UnregisteredLocalFile
635 635
 	 * STUB
636
-	 * @return bool|array
636
+	 * @return boolean
637 637
 	 */
638 638
 	public function getMetadata() {
639 639
 		return false;
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
 	/**
643 643
 	 * Like getMetadata but returns a handler independent array of common values.
644 644
 	 * @see MediaHandler::getCommonMetaArray()
645
-	 * @return array|bool Array or false if not supported
645
+	 * @return boolean Array or false if not supported
646 646
 	 * @since 1.23
647 647
 	 */
648 648
 	public function getCommonMetaArray() {
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 	 *
661 661
 	 * @param array|string $metadata Array or string of (serialized) metadata
662 662
 	 * @param int $version Version number.
663
-	 * @return array Array containing metadata, or what was passed to it on fail
663
+	 * @return ApiResult Array containing metadata, or what was passed to it on fail
664 664
 	 *   (unserializing if not array)
665 665
 	 */
666 666
 	public function convertMetadataVersion( $metadata, $version ) {
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
 	/**
1360 1360
 	 * Get a MediaHandler instance for this file
1361 1361
 	 *
1362
-	 * @return MediaHandler|bool Registered MediaHandler for file's MIME type
1362
+	 * @return MediaHandler Registered MediaHandler for file's MIME type
1363 1363
 	 *   or false if none found
1364 1364
 	 */
1365 1365
 	function getHandler() {
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
 	 * @param bool $watch
1783 1783
 	 * @param string|bool $timestamp
1784 1784
 	 * @param null|User $user User object or null to use $wgUser
1785
-	 * @return bool
1785
+	 * @return boolean|null
1786 1786
 	 * @throws MWException
1787 1787
 	 */
1788 1788
 	function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
@@ -1817,7 +1817,7 @@  discard block
 block discarded – undo
1817 1817
 	}
1818 1818
 
1819 1819
 	/**
1820
-	 * @param bool|IContextSource $context Context to use (optional)
1820
+	 * @param IContextSource $context Context to use (optional)
1821 1821
 	 * @return bool
1822 1822
 	 */
1823 1823
 	function formatMetadata( $context = false ) {
@@ -1964,7 +1964,7 @@  discard block
 block discarded – undo
1964 1964
 	 * Returns the number of pages of a multipage document, or false for
1965 1965
 	 * documents which aren't multipage documents
1966 1966
 	 *
1967
-	 * @return bool|int
1967
+	 * @return string|boolean
1968 1968
 	 */
1969 1969
 	function pageCount() {
1970 1970
 		if ( !isset( $this->pageCount ) ) {
@@ -2031,7 +2031,7 @@  discard block
 block discarded – undo
2031 2031
 	/**
2032 2032
 	 * Get the HTML text of the description page, if available
2033 2033
 	 *
2034
-	 * @param bool|Language $lang Optional language to fetch description in
2034
+	 * @param Language $lang Optional language to fetch description in
2035 2035
 	 * @return string
2036 2036
 	 */
2037 2037
 	function getDescriptionText( $lang = false ) {
@@ -2103,7 +2103,7 @@  discard block
 block discarded – undo
2103 2103
 	 * Returns false if the file does not have a description page, or retrieving the timestamp
2104 2104
 	 * would be expensive.
2105 2105
 	 * @since 1.25
2106
-	 * @return string|bool
2106
+	 * @return boolean
2107 2107
 	 */
2108 2108
 	public function getDescriptionTouched() {
2109 2109
 		return false;
Please login to merge, or discard this patch.