Completed
Branch master (a8a8eb)
by
unknown
24:51
created
includes/db/DatabaseMssql.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
 	/**
374 374
 	 * SELECT wrapper
375 375
 	 *
376
-	 * @param mixed $table Array or string, table name(s) (prefix auto-added)
377
-	 * @param mixed $vars Array or string, field name(s) to be retrieved
376
+	 * @param string $table Array or string, table name(s) (prefix auto-added)
377
+	 * @param string $vars Array or string, field name(s) to be retrieved
378 378
 	 * @param mixed $conds Array or string, condition(s) for WHERE
379 379
 	 * @param string $fname Calling function name (use __METHOD__) for logs/profiling
380 380
 	 * @param array $options Associative array of options (e.g.
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 	 *   code for list of supported stuff
383 383
 	 * @param array $join_conds Associative array of table join conditions
384 384
 	 *   (optional) (e.g. array( 'page' => array('LEFT JOIN','page_latest=rev_id') )
385
-	 * @return mixed Database result resource (feed to Database::fetchObject
385
+	 * @return MssqlResultWrapper Database result resource (feed to Database::fetchObject
386 386
 	 *   or whatever), or false on failure
387 387
 	 * @throws DBQueryError
388 388
 	 * @throws DBUnexpectedError
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
 	 *
872 872
 	 * @param string $sql SQL query we will append the limit too
873 873
 	 * @param int $limit The SQL limit
874
-	 * @param bool|int $offset The SQL offset (default false)
874
+	 * @param string|false $offset The SQL offset (default false)
875 875
 	 * @return array|string
876 876
 	 * @throws DBUnexpectedError
877 877
 	 */
@@ -1189,7 +1189,7 @@  discard block
 block discarded – undo
1189 1189
 	/**
1190 1190
 	 * @param array $options An associative array of options to be turned into
1191 1191
 	 *   an SQL query, valid keys are listed in the function.
1192
-	 * @return array
1192
+	 * @return string[]
1193 1193
 	 */
1194 1194
 	public function makeSelectOptions( $options ) {
1195 1195
 		$tailOpts = '';
Please login to merge, or discard this patch.
includes/db/DatabaseOracle.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@  discard block
 block discarded – undo
85 85
 		unset( $this->db );
86 86
 	}
87 87
 
88
+	/**
89
+	 * @param integer $row
90
+	 */
88 91
 	public function seek( $row ) {
89 92
 		$this->cursor = min( $row, $this->nrows );
90 93
 	}
@@ -583,6 +586,9 @@  discard block
 block discarded – undo
583 586
 		return $retVal;
584 587
 	}
585 588
 
589
+	/**
590
+	 * @param string $table
591
+	 */
586 592
 	private function fieldBindStatement( $table, $col, &$val, $includeCol = false ) {
587 593
 		$col_info = $this->fieldInfoMulti( $table, $col );
588 594
 		$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';
@@ -824,6 +830,9 @@  discard block
 block discarded – undo
824 830
 		return strtoupper( parent::tableName( $name, $format ) );
825 831
 	}
826 832
 
833
+	/**
834
+	 * @param string $name
835
+	 */
827 836
 	function tableNameInternal( $name ) {
828 837
 		$name = $this->tableName( $name );
829 838
 
@@ -1281,6 +1290,9 @@  discard block
 block discarded – undo
1281 1290
 		return "'" . $this->strencode( $s ) . "'";
1282 1291
 	}
1283 1292
 
1293
+	/**
1294
+	 * @param string $s
1295
+	 */
1284 1296
 	public function addIdentifierQuotes( $s ) {
1285 1297
 		if ( !$this->getFlag( DBO_DDLMODE ) ) {
1286 1298
 			$s = '/*Q*/' . $s;
@@ -1344,7 +1356,7 @@  discard block
 block discarded – undo
1344 1356
 	 *
1345 1357
 	 * @param array $options An associative array of options to be turned into
1346 1358
 	 *   an SQL query, valid keys are listed in the function.
1347
-	 * @return array
1359
+	 * @return string[]
1348 1360
 	 */
1349 1361
 	function makeSelectOptions( $options ) {
1350 1362
 		$preLimitTail = $postLimitTail = '';
Please login to merge, or discard this patch.
includes/diff/DifferenceEngine.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * Constructor
105 105
 	 * @param IContextSource $context Context to use, anything else will be ignored
106 106
 	 * @param int $old Old ID we want to show and diff with.
107
-	 * @param string|int $new Either revision ID or 'prev' or 'next'. Default: 0.
107
+	 * @param integer $new Either revision ID or 'prev' or 'next'. Default: 0.
108 108
 	 * @param int $rcid Deprecated, no longer used!
109 109
 	 * @param bool $refreshCache If set, refreshes the diff cache
110 110
 	 * @param bool $unhide If set, allow viewing deleted revs
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	 *
175 175
 	 * @param int $id Revision ID
176 176
 	 *
177
-	 * @return mixed URL or false
177
+	 * @return string|false URL or false
178 178
 	 */
179 179
 	public function deletedLink( $id ) {
180 180
 		if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
 	 * @param string|bool $ntitle Header for new text or false
677 677
 	 * @param string $notice HTML between diff header and body
678 678
 	 *
679
-	 * @return mixed
679
+	 * @return false|string
680 680
 	 */
681 681
 	public function getDiff( $otitle, $ntitle, $notice = '' ) {
682 682
 		$body = $this->getDiffBody();
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
 	/**
699 699
 	 * Get the diff table body, without header
700 700
 	 *
701
-	 * @return mixed (string/false)
701
+	 * @return false|string (string/false)
702 702
 	 */
703 703
 	public function getDiffBody() {
704 704
 		$this->mCacheHit = true;
@@ -973,7 +973,7 @@  discard block
 block discarded – undo
973 973
 	 *
974 974
 	 * @param string $text
975 975
 	 *
976
-	 * @return mixed
976
+	 * @return string
977 977
 	 */
978 978
 	public function localiseLineNumbers( $text ) {
979 979
 		return preg_replace_callback(
Please login to merge, or discard this patch.
includes/export/DumpFileOutput.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	}
74 74
 
75 75
 	/**
76
-	 * @param array $newname
76
+	 * @param string $newname
77 77
 	 * @return string
78 78
 	 * @throws MWException
79 79
 	 */
Please login to merge, or discard this patch.
includes/filebackend/SwiftFileBackend.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1314,7 +1314,7 @@  discard block
 block discarded – undo
1314 1314
 	 * (lists are truncated to 10000 item with no way to page), and is just a performance risk.
1315 1315
 	 *
1316 1316
 	 * @param string $container Resolved Swift container
1317
-	 * @param array $readGrps List of the possible criteria for a request to have
1317
+	 * @param string[] $readGrps List of the possible criteria for a request to have
1318 1318
 	 * access to read a container. Each item is one of the following formats:
1319 1319
 	 *   - account:user        : Grants access if the request is by the given user
1320 1320
 	 *   - ".r:<regex>"        : Grants access if the request is from a referrer host that
@@ -1322,7 +1322,7 @@  discard block
 block discarded – undo
1322 1322
 	 *                           Setting this to '*' effectively makes a container public.
1323 1323
 	 *   -".rlistings:<regex>" : Grants access if the request is from a referrer host that
1324 1324
 	 *                           matches the expression and the request is for a listing.
1325
-	 * @param array $writeGrps A list of the possible criteria for a request to have
1325
+	 * @param string[] $writeGrps A list of the possible criteria for a request to have
1326 1326
 	 * access to write to a container. Each item is of the following format:
1327 1327
 	 *   - account:user       : Grants access if the request is by the given user
1328 1328
 	 * @return Status
@@ -1705,7 +1705,7 @@  discard block
 block discarded – undo
1705 1705
 	 * @param array $creds From getAuthentication()
1706 1706
 	 * @param string $container
1707 1707
 	 * @param string $object
1708
-	 * @return array
1708
+	 * @return string
1709 1709
 	 */
1710 1710
 	protected function storageUrl( array $creds, $container = null, $object = null ) {
1711 1711
 		$parts = [ $creds['storage_url'] ];
Please login to merge, or discard this patch.
includes/filerepo/file/File.php 1 patch
Doc Comments   +8 added lines, -8 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
@@ -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;
@@ -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 ApiResult 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 ) {
@@ -1781,7 +1781,7 @@  discard block
 block discarded – undo
1781 1781
 	 * @param bool $watch
1782 1782
 	 * @param string|bool $timestamp
1783 1783
 	 * @param null|User $user User object or null to use $wgUser
1784
-	 * @return bool
1784
+	 * @return boolean|null
1785 1785
 	 * @throws MWException
1786 1786
 	 */
1787 1787
 	function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
@@ -1816,7 +1816,7 @@  discard block
 block discarded – undo
1816 1816
 	}
1817 1817
 
1818 1818
 	/**
1819
-	 * @param bool|IContextSource $context Context to use (optional)
1819
+	 * @param IContextSource $context Context to use (optional)
1820 1820
 	 * @return bool
1821 1821
 	 */
1822 1822
 	function formatMetadata( $context = false ) {
@@ -1963,7 +1963,7 @@  discard block
 block discarded – undo
1963 1963
 	 * Returns the number of pages of a multipage document, or false for
1964 1964
 	 * documents which aren't multipage documents
1965 1965
 	 *
1966
-	 * @return bool|int
1966
+	 * @return string|boolean
1967 1967
 	 */
1968 1968
 	function pageCount() {
1969 1969
 		if ( !isset( $this->pageCount ) ) {
@@ -2030,7 +2030,7 @@  discard block
 block discarded – undo
2030 2030
 	/**
2031 2031
 	 * Get the HTML text of the description page, if available
2032 2032
 	 *
2033
-	 * @param bool|Language $lang Optional language to fetch description in
2033
+	 * @param Language $lang Optional language to fetch description in
2034 2034
 	 * @return string
2035 2035
 	 */
2036 2036
 	function getDescriptionText( $lang = false ) {
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/import/WikiImporter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -116,6 +116,9 @@
 block discarded – undo
116 116
 		wfDebug( "IMPORT: $data\n" );
117 117
 	}
118 118
 
119
+	/**
120
+	 * @param string $msg
121
+	 */
119 122
 	public function notice( $msg /*, $param, ...*/ ) {
120 123
 		$params = func_get_args();
121 124
 		array_shift( $params );
Please login to merge, or discard this patch.
includes/jobqueue/aggregator/JobQueueAggregatorRedis.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 
123 123
 	/**
124 124
 	 * @param string $name
125
-	 * @return string
125
+	 * @return string[]
126 126
 	 */
127 127
 	private function decodeQueueName( $name ) {
128 128
 		list( $type, $wiki ) = explode( '/', $name, 2 );
Please login to merge, or discard this patch.