Completed
Branch master (573807)
by
unknown
34:51
created
includes/deferred/LinksDeletionUpdate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@
 block discarded – undo
163 163
 		} );
164 164
 	}
165 165
 
166
+	/**
167
+	 * @param string $table
168
+	 */
166 169
 	private function batchDeleteByPK( $table, array $conds, array $pk, $bSize ) {
167 170
 		$dbw = $this->mDb; // convenience
168 171
 		$res = $dbw->select( $table, $pk, $conds, __METHOD__ );
Please login to merge, or discard this patch.
includes/changes/ChangesList.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @param RecentChange|RCCacheEntry $rc
154 154
 	 * @param string|bool $watched Optionally timestamp for adding watched class
155 155
 	 *
156
-	 * @return array of classes
156
+	 * @return string[] of classes
157 157
 	 */
158 158
 	protected function getHTMLClasses( $rc, $watched ) {
159 159
 		$classes = [];
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	}
229 229
 
230 230
 	/**
231
-	 * @param ResultWrapper|array $rows
231
+	 * @param ResultWrapper $rows
232 232
 	 */
233 233
 	public function initChangesListRows( $rows ) {
234 234
 		Hooks::run( 'ChangesListInitRows', [ $this, $rows ] );
@@ -478,6 +478,8 @@  discard block
 block discarded – undo
478 478
 	 *
479 479
 	 * @param string &$s HTML to update
480 480
 	 * @param RecentChange &$rc
481
+	 * @param string $s
482
+	 * @param RecentChange $rc
481 483
 	 */
482 484
 	public function insertUserRelatedLinks( &$s, &$rc ) {
483 485
 		if ( $this->isDeleted( $rc, Revision::DELETED_USER ) ) {
@@ -636,7 +638,7 @@  discard block
 block discarded – undo
636 638
 
637 639
 	/**
638 640
 	 * @param RecentChange $rc
639
-	 * @param array $classes
641
+	 * @param string[] $classes
640 642
 	 * @return string
641 643
 	 * @since 1.26
642 644
 	 */
@@ -646,6 +648,10 @@  discard block
 block discarded – undo
646 648
 		return $s;
647 649
 	}
648 650
 
651
+	/**
652
+	 * @param string $s
653
+	 * @param RecentChange $rc
654
+	 */
649 655
 	public function insertExtra( &$s, &$rc, &$classes ) {
650 656
 		// Empty, used for subclasses to add anything special.
651 657
 	}
Please login to merge, or discard this patch.
includes/gallery/SlideshowImageGallery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	/**
88
-	 * @return array
88
+	 * @return string[]
89 89
 	 */
90 90
 	function getOrderFields() {
91 91
 		return array( 'rd_namespace', 'rd_title', 'rd_from' );
Please login to merge, or discard this patch.
includes/Sanitizer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 	 * @since 1.27
1207 1207
 	 *
1208 1208
 	 * @param string $referenceString Space delimited list of ids
1209
-	 * @param string|array $options String or array of strings (default is array()):
1209
+	 * @param string $options String or array of strings (default is array()):
1210 1210
 	 *   'noninitial': This is a non-initial fragment of an id, not a full id,
1211 1211
 	 *       so don't pay attention if the first character isn't valid at the
1212 1212
 	 *       beginning of an id.  Only matters if $wgExperimentalHtmlIds is
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
 	 * Pick the appropriate attribute value from a match set from the
1335 1335
 	 * attribs regex matches.
1336 1336
 	 *
1337
-	 * @param array $set
1337
+	 * @param string[] $set
1338 1338
 	 * @throws MWException When tag conditions are not met.
1339 1339
 	 * @return string
1340 1340
 	 */
@@ -1850,7 +1850,7 @@  discard block
 block discarded – undo
1850 1850
 
1851 1851
 	/**
1852 1852
 	 * @param string $url
1853
-	 * @return mixed|string
1853
+	 * @return string
1854 1854
 	 */
1855 1855
 	static function cleanUrl( $url ) {
1856 1856
 		# Normalize any HTML entities in input. They will be
@@ -1936,7 +1936,7 @@  discard block
 block discarded – undo
1936 1936
 	 * @since 1.18
1937 1937
 	 *
1938 1938
 	 * @param string $addr E-mail address
1939
-	 * @return bool
1939
+	 * @return null|boolean
1940 1940
 	 */
1941 1941
 	public static function validateEmail( $addr ) {
1942 1942
 		$result = null;
Please login to merge, or discard this patch.
includes/utils/MWGrants.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
 	/**
102 102
 	 * Fetch the rights allowed by a set of grants.
103
-	 * @param string[]|string $grants
103
+	 * @param string[] $grants
104 104
 	 * @return string[]
105 105
 	 */
106 106
 	public static function getGrantRights( $grants ) {
Please login to merge, or discard this patch.
includes/Block.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	/**
186 186
 	 * Return the list of ipblocks fields that should be selected to create
187 187
 	 * a new block.
188
-	 * @return array
188
+	 * @return string[]
189 189
 	 */
190 190
 	public static function selectFields() {
191 191
 		return [
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
 	/**
1005 1005
 	 * Get a timestamp of the expiry for autoblocks
1006 1006
 	 *
1007
-	 * @param string|int $timestamp
1007
+	 * @param string|false $timestamp
1008 1008
 	 * @return string
1009 1009
 	 */
1010 1010
 	public static function getAutoblockExpiry( $timestamp ) {
@@ -1361,7 +1361,7 @@  discard block
 block discarded – undo
1361 1361
 	/**
1362 1362
 	 * @since 1.19
1363 1363
 	 *
1364
-	 * @return mixed|string
1364
+	 * @return string
1365 1365
 	 */
1366 1366
 	public function getExpiry() {
1367 1367
 		return $this->mExpiry;
Please login to merge, or discard this patch.
includes/Category.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -205,42 +205,42 @@  discard block
 block discarded – undo
205 205
 	}
206 206
 
207 207
 	/**
208
-	 * @return mixed DB key name, or false on failure
208
+	 * @return boolean DB key name, or false on failure
209 209
 	 */
210 210
 	public function getName() {
211 211
 		return $this->getX( 'mName' );
212 212
 	}
213 213
 
214 214
 	/**
215
-	 * @return mixed Category ID, or false on failure
215
+	 * @return boolean Category ID, or false on failure
216 216
 	 */
217 217
 	public function getID() {
218 218
 		return $this->getX( 'mID' );
219 219
 	}
220 220
 
221 221
 	/**
222
-	 * @return mixed Total number of member pages, or false on failure
222
+	 * @return boolean Total number of member pages, or false on failure
223 223
 	 */
224 224
 	public function getPageCount() {
225 225
 		return $this->getX( 'mPages' );
226 226
 	}
227 227
 
228 228
 	/**
229
-	 * @return mixed Number of subcategories, or false on failure
229
+	 * @return boolean Number of subcategories, or false on failure
230 230
 	 */
231 231
 	public function getSubcatCount() {
232 232
 		return $this->getX( 'mSubcats' );
233 233
 	}
234 234
 
235 235
 	/**
236
-	 * @return mixed Number of member files, or false on failure
236
+	 * @return boolean Number of member files, or false on failure
237 237
 	 */
238 238
 	public function getFileCount() {
239 239
 		return $this->getX( 'mFiles' );
240 240
 	}
241 241
 
242 242
 	/**
243
-	 * @return Title|bool Title for this category, or false on failure.
243
+	 * @return Title Title for this category, or false on failure.
244 244
 	 */
245 245
 	public function getTitle() {
246 246
 		if ( $this->mTitle ) {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 * category sort key $offset.
261 261
 	 * @param int $limit
262 262
 	 * @param string $offset
263
-	 * @return TitleArray TitleArray object for category members.
263
+	 * @return TitleArrayFromResult|null TitleArray object for category members.
264 264
 	 */
265 265
 	public function getMembers( $limit = false, $offset = '' ) {
266 266
 
Please login to merge, or discard this patch.
includes/content/ContentHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
 	 *
660 660
 	 * @param IContextSource $context Context to use, anything else will be ignored.
661 661
 	 * @param int $old Revision ID we want to show and diff with.
662
-	 * @param int|string $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'.
662
+	 * @param integer $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'.
663 663
 	 * @param int $rcid FIXME: Deprecated, no longer used. Defaults to 0.
664 664
 	 * @param bool $refreshCache If set, refreshes the diff cache. Defaults to false.
665 665
 	 * @param bool $unhide If set, allow viewing deleted revs. Defaults to false.
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
 	 * @param Title $title The page's title
890 890
 	 * @param bool &$hasHistory Whether the page has a history
891 891
 	 *
892
-	 * @return mixed String containing deletion reason or empty string, or
892
+	 * @return false|string String containing deletion reason or empty string, or
893 893
 	 *    boolean false if no revision occurred
894 894
 	 *
895 895
 	 * @todo &$hasHistory is extremely ugly, it's here because
Please login to merge, or discard this patch.
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.