Completed
Branch master (bc4e07)
by
unknown
29:19
created
includes/filebackend/FileBackend.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 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;
@@ -1392,7 +1392,7 @@  discard block
 block discarded – undo
1392 1392
 	 * "mwstore://backend/container/...", or null if there is no parent.
1393 1393
 	 *
1394 1394
 	 * @param string $storagePath
1395
-	 * @return string|null
1395
+	 * @return string
1396 1396
 	 */
1397 1397
 	final public static function parentStoragePath( $storagePath ) {
1398 1398
 		$storagePath = dirname( $storagePath );
Please login to merge, or discard this patch.
includes/filebackend/FileBackendStore.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 	/**
754 754
 	 * @see FileBackendStore::getFileSha1Base36()
755 755
 	 * @param array $params
756
-	 * @return bool|string
756
+	 * @return false|string
757 757
 	 */
758 758
 	protected function doGetFileSha1Base36( array $params ) {
759 759
 		$fsFile = $this->getLocalReference( $params );
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
 	 * @param FileBackendStoreOpHandle[] $fileOpHandles
1191 1191
 	 *
1192 1192
 	 * @throws FileBackendError
1193
-	 * @return array Map of Status objects
1193
+	 * @return Status[] Map of Status objects
1194 1194
 	 */
1195 1195
 	final public function executeOpHandlesInternal( array $fileOpHandles ) {
1196 1196
 		$ps = Profiler::instance()->scopedProfileIn( __METHOD__ . "-{$this->name}" );
@@ -1578,7 +1578,7 @@  discard block
 block discarded – undo
1578 1578
 	 * Subclasses can override this to be more restrictive.
1579 1579
 	 *
1580 1580
 	 * @param string $container
1581
-	 * @return string|null
1581
+	 * @return string
1582 1582
 	 */
1583 1583
 	protected function resolveContainerName( $container ) {
1584 1584
 		return $container;
@@ -1592,7 +1592,7 @@  discard block
 block discarded – undo
1592 1592
 	 *
1593 1593
 	 * @param string $container Container name
1594 1594
 	 * @param string $relStoragePath Storage path relative to the container
1595
-	 * @return string|null Path or null if not valid
1595
+	 * @return string Path or null if not valid
1596 1596
 	 */
1597 1597
 	protected function resolveContainerPath( $container, $relStoragePath ) {
1598 1598
 		return $relStoragePath;
Please login to merge, or discard this patch.
includes/filebackend/filejournal/FileJournal.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
 	/**
218 218
 	 * @see FileJournal::doGetCurrentPosition()
219
-	 * @return int|bool
219
+	 * @return boolean
220 220
 	 */
221 221
 	protected function doGetCurrentPosition() {
222 222
 		return false;
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 	/**
226 226
 	 * @see FileJournal::doGetPositionAtTime()
227 227
 	 * @param int|string $time Timestamp
228
-	 * @return int|bool
228
+	 * @return boolean
229 229
 	 */
230 230
 	protected function doGetPositionAtTime( $time ) {
231 231
 		return false;
Please login to merge, or discard this patch.
includes/filebackend/FileOp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	 * Get the value of the parameter with the given name
129 129
 	 *
130 130
 	 * @param string $name
131
-	 * @return mixed Returns null if the parameter is not set
131
+	 * @return string Returns null if the parameter is not set
132 132
 	 */
133 133
 	final public function getParam( $name ) {
134 134
 		return isset( $this->params[$name] ) ? $this->params[$name] : null;
Please login to merge, or discard this patch.
includes/filebackend/FSFile.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	/**
64 64
 	 * Get the file size in bytes
65 65
 	 *
66
-	 * @return int|bool
66
+	 * @return integer
67 67
 	 */
68 68
 	public function getSize() {
69 69
 		return filesize( $this->path );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	/**
73 73
 	 * Get the file's last-modified timestamp
74 74
 	 *
75
-	 * @return string|bool TS_MW timestamp or false on failure
75
+	 * @return string|false TS_MW timestamp or false on failure
76 76
 	 */
77 77
 	public function getTimestamp() {
78 78
 		MediaWiki\suppressWarnings();
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	 * fairly neatly.
196 196
 	 *
197 197
 	 * @param bool $recache
198
-	 * @return bool|string False on failure
198
+	 * @return string|false False on failure
199 199
 	 */
200 200
 	public function getSha1Base36( $recache = false ) {
201 201
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * fairly neatly.
249 249
 	 *
250 250
 	 * @param string $path
251
-	 * @return bool|string False on failure
251
+	 * @return string|false False on failure
252 252
 	 */
253 253
 	public static function getSha1Base36FromPath( $path ) {
254 254
 		$fsFile = new self( $path );
Please login to merge, or discard this patch.
includes/filebackend/SwiftFileBackend.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1290,7 +1290,7 @@  discard block
 block discarded – undo
1290 1290
 	 * (lists are truncated to 10000 item with no way to page), and is just a performance risk.
1291 1291
 	 *
1292 1292
 	 * @param string $container Resolved Swift container
1293
-	 * @param array $readGrps List of the possible criteria for a request to have
1293
+	 * @param string[] $readGrps List of the possible criteria for a request to have
1294 1294
 	 * access to read a container. Each item is one of the following formats:
1295 1295
 	 *   - account:user        : Grants access if the request is by the given user
1296 1296
 	 *   - ".r:<regex>"        : Grants access if the request is from a referrer host that
@@ -1298,7 +1298,7 @@  discard block
 block discarded – undo
1298 1298
 	 *                           Setting this to '*' effectively makes a container public.
1299 1299
 	 *   -".rlistings:<regex>" : Grants access if the request is from a referrer host that
1300 1300
 	 *                           matches the expression and the request is for a listing.
1301
-	 * @param array $writeGrps A list of the possible criteria for a request to have
1301
+	 * @param string[] $writeGrps A list of the possible criteria for a request to have
1302 1302
 	 * access to write to a container. Each item is of the following format:
1303 1303
 	 *   - account:user       : Grants access if the request is by the given user
1304 1304
 	 * @return Status
@@ -1681,7 +1681,7 @@  discard block
 block discarded – undo
1681 1681
 	 * @param array $creds From getAuthentication()
1682 1682
 	 * @param string $container
1683 1683
 	 * @param string $object
1684
-	 * @return array
1684
+	 * @return string
1685 1685
 	 */
1686 1686
 	protected function storageUrl( array $creds, $container = null, $object = null ) {
1687 1687
 		$parts = array( $creds['storage_url'] );
@@ -1880,7 +1880,7 @@  discard block
 block discarded – undo
1880 1880
 class SwiftFileBackendDirList extends SwiftFileBackendList {
1881 1881
 	/**
1882 1882
 	 * @see Iterator::current()
1883
-	 * @return string|bool String (relative path) or false
1883
+	 * @return string String (relative path) or false
1884 1884
 	 */
1885 1885
 	public function current() {
1886 1886
 		return substr( current( $this->bufferIter ), $this->suffixStart, -1 );
@@ -1897,7 +1897,7 @@  discard block
 block discarded – undo
1897 1897
 class SwiftFileBackendFileList extends SwiftFileBackendList {
1898 1898
 	/**
1899 1899
 	 * @see Iterator::current()
1900
-	 * @return string|bool String (relative path) or false
1900
+	 * @return string String (relative path) or false
1901 1901
 	 */
1902 1902
 	public function current() {
1903 1903
 		list( $path, $stat ) = current( $this->bufferIter );
Please login to merge, or discard this patch.
includes/filerepo/file/ArchivedFile.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
 	/**
217 217
 	 * Fields in the filearchive table
218
-	 * @return array
218
+	 * @return string[]
219 219
 	 */
220 220
 	static function selectFields() {
221 221
 		return array(
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	/**
422 422
 	 * Returns the number of pages of a multipage document, or false for
423 423
 	 * documents which aren't multipage documents
424
-	 * @return bool|int
424
+	 * @return string|boolean
425 425
 	 */
426 426
 	function pageCount() {
427 427
 		if ( !isset( $this->pageCount ) ) {
Please login to merge, or discard this patch.
includes/filerepo/file/File.php 1 patch
Doc Comments   +13 added lines, -13 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 ) ) {
@@ -2108,7 +2108,7 @@  discard block
 block discarded – undo
2108 2108
 	 * Returns false if the file does not have a description page, or retrieving the timestamp
2109 2109
 	 * would be expensive.
2110 2110
 	 * @since 1.25
2111
-	 * @return string|bool
2111
+	 * @return boolean
2112 2112
 	 */
2113 2113
 	public function getDescriptionTouched() {
2114 2114
 		return false;
Please login to merge, or discard this patch.
includes/filerepo/file/ForeignAPIFile.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	protected $repoClass = 'ForeignApiRepo';
34 34
 
35 35
 	/**
36
-	 * @param Title|string|bool $title
36
+	 * @param Title|null $title
37 37
 	 * @param ForeignApiRepo $repo
38 38
 	 * @param array $info
39 39
 	 * @param bool $exists
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 	/**
153 153
 	 * @param int $page
154
-	 * @return int|number
154
+	 * @return integer
155 155
 	 */
156 156
 	public function getWidth( $page = 1 ) {
157 157
 		return isset( $this->mInfo['width'] ) ? intval( $this->mInfo['width'] ) : 0;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	}
167 167
 
168 168
 	/**
169
-	 * @return bool|null|string
169
+	 * @return string|null
170 170
 	 */
171 171
 	public function getMetadata() {
172 172
 		if ( isset( $this->mInfo['metadata'] ) ) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	}
206 206
 
207 207
 	/**
208
-	 * @return bool|int|null
208
+	 * @return integer|null
209 209
 	 */
210 210
 	public function getSize() {
211 211
 		return isset( $this->mInfo['size'] ) ? intval( $this->mInfo['size'] ) : null;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 	}
269 269
 
270 270
 	/**
271
-	 * @return bool|string
271
+	 * @return string|false
272 272
 	 */
273 273
 	function getTimestamp() {
274 274
 		return wfTimestamp( TS_MW,
Please login to merge, or discard this patch.