Completed
Branch master (356b34)
by
unknown
26:23
created
includes/utils/AutoloadGenerator.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 	/**
159 159
 	 * Generates a PHP file setting up autoload information.
160 160
 	 *
161
-	 * @param {string} $commandName Command name to include in comment
162
-	 * @param {string} $filename of PHP file to put autoload information in.
161
+	 * @param string $commandName Command name to include in comment
162
+	 * @param string $filename of PHP file to put autoload information in.
163 163
 	 */
164 164
 	protected function generatePHPAutoload( $commandName, $filename ) {
165 165
 		// No existing JSON file found; update/generate PHP file
@@ -320,6 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
 	/**
322 322
 	 * @var string $code PHP code (including <?php) to detect class names from
323
+	 * @param string $code
323 324
 	 * @return array List of FQCN detected within the tokens
324 325
 	 */
325 326
 	public function getClasses( $code ) {
Please login to merge, or discard this patch.
includes/media/MediaHandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Get a MediaHandler for a given MIME type from the instance cache
42 42
 	 *
43 43
 	 * @param string $type
44
-	 * @return MediaHandler|bool
44
+	 * @return File
45 45
 	 */
46 46
 	static function getHandler( $type ) {
47 47
 		return MediaWikiServices::getInstance()
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 *
174 174
 	 * @note This method is currently unused.
175 175
 	 * @param File $image
176
-	 * @return string
176
+	 * @return boolean
177 177
 	 */
178 178
 	function getMetadataType( $image ) {
179 179
 		return false;
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 * @param string $ext Extension of original file
286 286
 	 * @param string $mime MIME type of original file
287 287
 	 * @param array $params Handler specific rendering parameters
288
-	 * @return array Thumbnail extension and MIME type
288
+	 * @return string[] Thumbnail extension and MIME type
289 289
 	 */
290 290
 	function getThumbType( $ext, $mime, $params = null ) {
291 291
 		$magic = MimeMagic::singleton();
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 	 * @param int $boxWidth Width of the thumbnail box.
626 626
 	 * @param int $boxHeight Height of the thumbnail box.
627 627
 	 * @param int $maxHeight Maximum height expected for the thumbnail.
628
-	 * @return int
628
+	 * @return double
629 629
 	 */
630 630
 	public static function fitBoxWidth( $boxWidth, $boxHeight, $maxHeight ) {
631 631
 		$idealWidth = $boxWidth * $maxHeight / $boxHeight;
Please login to merge, or discard this patch.
includes/OutputPage.php 1 patch
Doc Comments   +15 added lines, -9 removed lines patch added patch discarded remove patch
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 	 * Add one or more head items to the output
653 653
 	 *
654 654
 	 * @since 1.28
655
-	 * @param string|string[] $value Raw HTML
655
+	 * @param string|string[] $values Raw HTML
656 656
 	 */
657 657
 	public function addHeadItems( $values ) {
658 658
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	/**
970 970
 	 * Replace the subtitle with $str
971 971
 	 *
972
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
972
+	 * @param string $str New value of the subtitle. String should be safe HTML.
973 973
 	 */
974 974
 	public function setSubtitle( $str ) {
975 975
 		$this->clearSubtitle();
@@ -1587,7 +1587,7 @@  discard block
 block discarded – undo
1587 1587
 	/**
1588 1588
 	 * Set the displayed file version
1589 1589
 	 *
1590
-	 * @param File|bool $file
1590
+	 * @param File $file
1591 1591
 	 * @return mixed Previous value
1592 1592
 	 */
1593 1593
 	public function setFileVersion( $file ) {
@@ -1936,7 +1936,7 @@  discard block
 block discarded – undo
1936 1936
 	/**
1937 1937
 	 * Get the list of cookies that will influence on the cache
1938 1938
 	 *
1939
-	 * @return array
1939
+	 * @return string[]
1940 1940
 	 */
1941 1941
 	function getCacheVaryCookies() {
1942 1942
 		static $cookies;
@@ -2315,7 +2315,7 @@  discard block
 block discarded – undo
2315 2315
 	 * indexing, clear the current text and redirect, set the page's title
2316 2316
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2317 2317
 	 *
2318
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2318
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2319 2319
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2320 2320
 	 *                   optional, if not passed the "<title>" attribute will be
2321 2321
 	 *                   based on $pageTitle
@@ -2341,8 +2341,8 @@  discard block
 block discarded – undo
2341 2341
 	 * showErrorPage( 'titlemsg', $messageObject );
2342 2342
 	 * showErrorPage( $titleMessageObject, $messageObject );
2343 2343
 	 *
2344
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2345
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2344
+	 * @param string $title Message key (string) for page title, or a Message object
2345
+	 * @param string $msg Message key (string) for page text, or a Message object
2346 2346
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2347 2347
 	 */
2348 2348
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2538,6 +2538,9 @@  discard block
 block discarded – undo
2538 2538
 		}
2539 2539
 	}
2540 2540
 
2541
+	/**
2542
+	 * @param string $message
2543
+	 */
2541 2544
 	public function showFatalError( $message ) {
2542 2545
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2543 2546
 
@@ -2556,6 +2559,9 @@  discard block
 block discarded – undo
2556 2559
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2557 2560
 	}
2558 2561
 
2562
+	/**
2563
+	 * @param string $name
2564
+	 */
2559 2565
 	public function showFileDeleteError( $name ) {
2560 2566
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2561 2567
 	}
@@ -2582,7 +2588,7 @@  discard block
 block discarded – undo
2582 2588
 	 * Add a "return to" link pointing to a specified title,
2583 2589
 	 * or the title indicated in the request, or else the main page
2584 2590
 	 *
2585
-	 * @param mixed $unused
2591
+	 * @param null|boolean $unused
2586 2592
 	 * @param Title|string $returnto Title or String to return to
2587 2593
 	 * @param string $returntoquery Query string for the return to link
2588 2594
 	 */
@@ -3843,7 +3849,7 @@  discard block
 block discarded – undo
3843 3849
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3844 3850
 	 *
3845 3851
 	 * @since 1.27
3846
-	 * @param string $remotePath URL path prefix that points to $localPath
3852
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3847 3853
 	 * @param string $localPath File directory exposed at $remotePath
3848 3854
 	 * @param string $file Path to target file relative to $localPath
3849 3855
 	 * @return string URL
Please login to merge, or discard this patch.