Completed
Branch master (715cbe)
by
unknown
51:55
created
includes/pager/IndexPager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 	/**
183 183
 	 * Get the Database object in use
184 184
 	 *
185
-	 * @return IDatabase
185
+	 * @return Database|null
186 186
 	 */
187 187
 	public function getDatabase() {
188 188
 		return $this->mDb;
Please login to merge, or discard this patch.
includes/PrefixSearch.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -186,6 +186,11 @@
 block discarded – undo
186 186
 			$this->handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) );
187 187
 	}
188 188
 
189
+	/**
190
+	 * @param string $search
191
+	 * @param integer $limit
192
+	 * @param integer $offset
193
+	 */
189 194
 	private function handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) {
190 195
 		if ( $offset === 0 ) {
191 196
 			// Only perform exact db match if offset === 0
Please login to merge, or discard this patch.
includes/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/parser/ParserCache.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * @param WikiPage $article
60 60
 	 * @param string $hash
61
-	 * @return mixed|string
61
+	 * @return string
62 62
 	 */
63 63
 	protected function getParserOutputKey( $article, $hash ) {
64 64
 		global $wgRequest;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * @param WikiPage $page
76
-	 * @return mixed|string
76
+	 * @return string
77 77
 	 */
78 78
 	protected function getOptionsKey( $page ) {
79 79
 		return wfMemcKey( 'pcache', 'idoptions', $page->getId() );
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 * @param WikiPage $article
136 136
 	 * @param ParserOptions $popts
137 137
 	 * @param bool $useOutdated (default true)
138
-	 * @return bool|mixed|string
138
+	 * @return false|string
139 139
 	 */
140 140
 	public function getKey( $article, $popts, $useOutdated = true ) {
141 141
 		global $wgCacheEpoch;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * Retrieve the ParserOutput from ParserCache.
188 188
 	 * false if not found or outdated.
189 189
 	 *
190
-	 * @param WikiPage|Article $article
190
+	 * @param WikiPage|null $article
191 191
 	 * @param ParserOptions $popts
192 192
 	 * @param bool $useOutdated (default false)
193 193
 	 *
Please login to merge, or discard this patch.
includes/OutputPage.php 1 patch
Doc Comments   +16 added lines, -10 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	 * Add one or more head items to the output
662 662
 	 *
663 663
 	 * @since 1.28
664
-	 * @param string|string[] $value Raw HTML
664
+	 * @param string|string[] $values Raw HTML
665 665
 	 */
666 666
 	public function addHeadItems( $values ) {
667 667
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
 	/**
979 979
 	 * Replace the subtitle with $str
980 980
 	 *
981
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
981
+	 * @param string $str New value of the subtitle. String should be safe HTML.
982 982
 	 */
983 983
 	public function setSubtitle( $str ) {
984 984
 		$this->clearSubtitle();
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 	/**
1597 1597
 	 * Set the displayed file version
1598 1598
 	 *
1599
-	 * @param File|bool $file
1599
+	 * @param File $file
1600 1600
 	 * @return mixed Previous value
1601 1601
 	 */
1602 1602
 	public function setFileVersion( $file ) {
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
 	 * the TTL is higher the older the $mtime timestamp is. Essentially, the
1941 1941
 	 * TTL is 90% of the age of the object, subject to the min and max.
1942 1942
 	 *
1943
-	 * @param string|integer|float|bool|null $mtime Last-Modified timestamp
1943
+	 * @param false|string $mtime Last-Modified timestamp
1944 1944
 	 * @param integer $minTTL Mimimum TTL in seconds [default: 1 minute]
1945 1945
 	 * @param integer $maxTTL Maximum TTL in seconds [default: $wgSquidMaxage]
1946 1946
 	 * @return integer TTL in seconds
@@ -1977,7 +1977,7 @@  discard block
 block discarded – undo
1977 1977
 	/**
1978 1978
 	 * Get the list of cookies that will influence on the cache
1979 1979
 	 *
1980
-	 * @return array
1980
+	 * @return string[]
1981 1981
 	 */
1982 1982
 	function getCacheVaryCookies() {
1983 1983
 		static $cookies;
@@ -2368,7 +2368,7 @@  discard block
 block discarded – undo
2368 2368
 	 * indexing, clear the current text and redirect, set the page's title
2369 2369
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2370 2370
 	 *
2371
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2371
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2372 2372
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2373 2373
 	 *                   optional, if not passed the "<title>" attribute will be
2374 2374
 	 *                   based on $pageTitle
@@ -2394,8 +2394,8 @@  discard block
 block discarded – undo
2394 2394
 	 * showErrorPage( 'titlemsg', $messageObject );
2395 2395
 	 * showErrorPage( $titleMessageObject, $messageObject );
2396 2396
 	 *
2397
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2398
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2397
+	 * @param string $title Message key (string) for page title, or a Message object
2398
+	 * @param string $msg Message key (string) for page text, or a Message object
2399 2399
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2400 2400
 	 */
2401 2401
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2596,6 +2596,9 @@  discard block
 block discarded – undo
2596 2596
 		}
2597 2597
 	}
2598 2598
 
2599
+	/**
2600
+	 * @param string $message
2601
+	 */
2599 2602
 	public function showFatalError( $message ) {
2600 2603
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2601 2604
 
@@ -2614,6 +2617,9 @@  discard block
 block discarded – undo
2614 2617
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2615 2618
 	}
2616 2619
 
2620
+	/**
2621
+	 * @param string $name
2622
+	 */
2617 2623
 	public function showFileDeleteError( $name ) {
2618 2624
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2619 2625
 	}
@@ -2640,7 +2646,7 @@  discard block
 block discarded – undo
2640 2646
 	 * Add a "return to" link pointing to a specified title,
2641 2647
 	 * or the title indicated in the request, or else the main page
2642 2648
 	 *
2643
-	 * @param mixed $unused
2649
+	 * @param null|boolean $unused
2644 2650
 	 * @param Title|string $returnto Title or String to return to
2645 2651
 	 * @param string $returntoquery Query string for the return to link
2646 2652
 	 */
@@ -3668,7 +3674,7 @@  discard block
 block discarded – undo
3668 3674
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3669 3675
 	 *
3670 3676
 	 * @since 1.27
3671
-	 * @param string $remotePath URL path prefix that points to $localPath
3677
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3672 3678
 	 * @param string $localPath File directory exposed at $remotePath
3673 3679
 	 * @param string $file Path to target file relative to $localPath
3674 3680
 	 * @return string URL
Please login to merge, or discard this patch.