Completed
Branch master (eea301)
by
unknown
31:58
created
includes/deferred/DeferredUpdates.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -483,6 +483,9 @@
 block discarded – undo
483 483
 		return Html::element( 'input', $realAttrs );
484 484
 	}
485 485
 
486
+	/**
487
+	 * @param string $mode
488
+	 */
486 489
 	function makeSearchButton( $mode, $attrs = array() ) {
487 490
 		switch ( $mode ) {
488 491
 			case 'go':
Please login to merge, or discard this patch.
includes/installer/Installer.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 	 *
360 360
 	 * @param Config $baseConfig
361 361
 	 *
362
-	 * @return Config The config to use during installation.
362
+	 * @return null|Config The config to use during installation.
363 363
 	 */
364 364
 	public static function getInstallerConfig( Config $baseConfig ) {
365 365
 		$configOverrides = new HashConfig();
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
 	 * fake password in which case leave it as it is.
612 612
 	 *
613 613
 	 * @param string $name
614
-	 * @param mixed $value
614
+	 * @param string $value
615 615
 	 */
616 616
 	public function setPassword( $name, $value ) {
617 617
 		if ( !preg_match( '/^\*+$/', $value ) ) {
@@ -1256,7 +1256,7 @@  discard block
 block discarded – undo
1256 1256
 	 *
1257 1257
 	 * If $versionInfo is not false, only executables with a version
1258 1258
 	 * matching $versionInfo[1] will be returned.
1259
-	 * @return bool|string
1259
+	 * @return string|false
1260 1260
 	 */
1261 1261
 	public static function locateExecutable( $path, $names, $versionInfo = false ) {
1262 1262
 		if ( !is_array( $names ) ) {
@@ -1288,14 +1288,14 @@  discard block
 block discarded – undo
1288 1288
 	/**
1289 1289
 	 * Same as locateExecutable(), but checks in getPossibleBinPaths() by default
1290 1290
 	 * @see locateExecutable()
1291
-	 * @param array $names Array of possible names.
1292
-	 * @param array|bool $versionInfo Default: false or array with two members:
1291
+	 * @param string[] $names Array of possible names.
1292
+	 * @param string[] $versionInfo Default: false or array with two members:
1293 1293
 	 *   0 => Command to run for version check, with $1 for the full executable name
1294 1294
 	 *   1 => String to compare the output with
1295 1295
 	 *
1296 1296
 	 * If $versionInfo is not false, only executables with a version
1297 1297
 	 * matching $versionInfo[1] will be returned.
1298
-	 * @return bool|string
1298
+	 * @return string|false
1299 1299
 	 */
1300 1300
 	public static function locateExecutableInDefaultPaths( $names, $versionInfo = false ) {
1301 1301
 		foreach ( self::getPossibleBinPaths() as $path ) {
@@ -1314,7 +1314,7 @@  discard block
 block discarded – undo
1314 1314
 	 * Used only by environment checks.
1315 1315
 	 * @param string $dir
1316 1316
 	 * @param string $url
1317
-	 * @return bool|int|string
1317
+	 * @return string|false
1318 1318
 	 */
1319 1319
 	public function dirIsExecutable( $dir, $url ) {
1320 1320
 		$scriptTypes = [
Please login to merge, or discard this patch.
includes/MediaWikiServices.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 	 * given $bootstrapConfig. In particular, all wiring files defined in the
184 184
 	 * ServiceWiringFiles setting are loaded, and the MediaWikiServices hook is called.
185 185
 	 *
186
-	 * @param Config|null $bootstrapConfig The Config object to be registered as the
186
+	 * @param Config $bootstrapConfig The Config object to be registered as the
187 187
 	 *        'BootstrapConfig' service. This has to contain at least the information
188 188
 	 *        needed to set up the 'ConfigFactory' service. If not provided, any call
189 189
 	 *        to getBootstrapConfig(), getConfigFactory, or getMainConfig will fail.
Please login to merge, or discard this patch.
includes/search/SearchEngine.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
 	 * Way to pass custom data for engines
98 98
 	 * @since 1.18
99 99
 	 * @param string $feature
100
-	 * @param mixed $data
101
-	 * @return bool
100
+	 * @param boolean $data
101
+	 * @return boolean|null
102 102
 	 */
103 103
 	public function setFeatureData( $feature, $data ) {
104 104
 		$this->features[$feature] = $data;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
 	/**
297 297
 	 * Find snippet highlight settings for all users
298
-	 * @return array Contextlines, contextchars
298
+	 * @return integer[] Contextlines, contextchars
299 299
 	 */
300 300
 	public static function userHighlightPrefs() {
301 301
 		$contextlines = 2; // Hardcode this. Old defaults sucked. :)
@@ -501,6 +501,7 @@  discard block
 block discarded – undo
501 501
 	 * Process completion search results.
502 502
 	 * Resolves the titles and rescores.
503 503
 	 * @param SearchSuggestionSet $suggestions
504
+	 * @param string $search
504 505
 	 * @return SearchSuggestionSet
505 506
 	 */
506 507
 	protected function processCompletionResults( $search, SearchSuggestionSet $suggestions ) {
@@ -584,7 +585,7 @@  discard block
 block discarded – undo
584 585
 	 * settings, returning a list of index numbers.
585 586
 	 * @deprecated since 1.27; use SearchEngineConfig::userNamespaces()
586 587
 	 * @param user $user
587
-	 * @return array
588
+	 * @return integer[]
588 589
 	 */
589 590
 	public static function userNamespaces( $user ) {
590 591
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user );
@@ -593,7 +594,7 @@  discard block
 block discarded – undo
593 594
 	/**
594 595
 	 * An array of namespaces indexes to be searched by default
595 596
 	 * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces()
596
-	 * @return array
597
+	 * @return integer[]
597 598
 	 */
598 599
 	public static function defaultNamespaces() {
599 600
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces();
@@ -604,7 +605,7 @@  discard block
 block discarded – undo
604 605
 	 * and preferences
605 606
 	 * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText()
606 607
 	 * @param array $namespaces
607
-	 * @return array
608
+	 * @return string[]
608 609
 	 */
609 610
 	public static function namespacesAsText( $namespaces ) {
610 611
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces );
Please login to merge, or discard this patch.
includes/specials/SpecialBlock.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
 	 * If the user has already been blocked with similar settings, load that block
235 235
 	 * and change the defaults for the form fields to match the existing settings.
236 236
 	 * @param array $fields HTMLForm descriptor array
237
-	 * @return bool Whether fields were altered (that is, whether the target is
237
+	 * @return boolean|null Whether fields were altered (that is, whether the target is
238 238
 	 *     already blocked)
239 239
 	 */
240 240
 	protected function maybeAlterFormDefaults( &$fields ) {
Please login to merge, or discard this patch.