Completed
Branch master (49a6bc)
by
unknown
27:46
created
includes/media/TransformationalImageHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -563,7 +563,7 @@
 block discarded – undo
563 563
 	 * @param array $params Rotate parameters.
564 564
 	 *   'rotation' clockwise rotation in degrees, allowed are multiples of 90
565 565
 	 * @since 1.24 Is non-static. From 1.21 it was static
566
-	 * @return bool
566
+	 * @return MediaTransformError
567 567
 	 */
568 568
 	public function rotate( $file, $params ) {
569 569
 		return new MediaTransformError( 'thumbnail_error', 0, 0,
Please login to merge, or discard this patch.
includes/specials/SpecialMediaStatistics.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * It's important that img_media_type come first, otherwise the
102 102
 	 * tables will be fragmented.
103
-	 * @return Array Fields to sort by
103
+	 * @return string[] Fields to sort by
104 104
 	 */
105 105
 	function getOrderFields() {
106 106
 		return [ 'img_media_type', 'count(*)', 'img_major_mime', 'img_minor_mime' ];
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 *
171 171
 	 * @param string $mime mime type (e.g. image/jpeg)
172 172
 	 * @param int $count Number of images of this type
173
-	 * @param int $totalBytes Total space for images of this type
173
+	 * @param integer $bytes
174 174
 	 */
175 175
 	protected function outputTableRow( $mime, $count, $bytes ) {
176 176
 		$mimeSearch = SpecialPage::getTitleFor( 'MIMEsearch', $mime );
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 $article
76
-	 * @return mixed|string
76
+	 * @return string
77 77
 	 */
78 78
 	protected function getOptionsKey( $article ) {
79 79
 		$pageid = $article->getId();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * @param WikiPage $article
129 129
 	 * @param ParserOptions $popts
130 130
 	 * @param bool $useOutdated (default true)
131
-	 * @return bool|mixed|string
131
+	 * @return false|string
132 132
 	 */
133 133
 	public function getKey( $article, $popts, $useOutdated = true ) {
134 134
 		global $wgCacheEpoch;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 * Retrieve the ParserOutput from ParserCache.
181 181
 	 * false if not found or outdated.
182 182
 	 *
183
-	 * @param WikiPage|Article $article
183
+	 * @param WikiPage $article
184 184
 	 * @param ParserOptions $popts
185 185
 	 * @param bool $useOutdated (default false)
186 186
 	 *
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.
includes/widget/SearchInputWidget.php 1 patch
Doc Comments   -7 removed lines patch added patch discarded remove patch
@@ -20,13 +20,6 @@
 block discarded – undo
20 20
 
21 21
 	/**
22 22
 	 * @param array $config Configuration options
23
-	 * @param int|null $config['pushPending'] Whether the input should be visually marked as
24
-	 *  "pending", while requesting suggestions (default: true)
25
-	 * @param boolean|null $config['performSearchOnClick'] If true, the script will start a search
26
-	 *  whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the
27
-	 *  text field only (default: true)
28
-	 * @param string $config['dataLocation'] Where the search input field will be
29
-	 *  used (header or content, default: header)
30 23
 	 */
31 24
 	public function __construct( array $config = [] ) {
32 25
 		$config = array_merge( [
Please login to merge, or discard this patch.
includes/parser/BlockLevelPass.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -53,6 +53,8 @@
 block discarded – undo
53 53
 
54 54
 	/**
55 55
 	 * Private constructor
56
+	 * @param string $text
57
+	 * @param boolean $lineStart
56 58
 	 */
57 59
 	private function __construct( $text, $lineStart ) {
58 60
 		$this->text = $text;
Please login to merge, or discard this patch.
maintenance/backup.inc 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 	 * Force the dump to use the provided database connection for database
335 335
 	 * operations, wherever possible.
336 336
 	 *
337
-	 * @param DatabaseBase|null $db (Optional) the database connection to use. If null, resort to
337
+	 * @param null|IDatabase $db (Optional) the database connection to use. If null, resort to
338 338
 	 *   use the globally provided ways to get database connections.
339 339
 	 */
340 340
 	function setDB( IDatabase $db = null ) {
@@ -422,6 +422,10 @@  discard block
 block discarded – undo
422 422
 }
423 423
 
424 424
 class ExportProgressFilter extends DumpFilter {
425
+
426
+	/**
427
+	 * @param BackupDumper $progress
428
+	 */
425 429
 	function __construct( &$sink, &$progress ) {
426 430
 		parent::__construct( $sink );
427 431
 		$this->progress = $progress;
Please login to merge, or discard this patch.
maintenance/backupPrefetch.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@
 block discarded – undo
47 47
 	protected $lastRev = 0;
48 48
 	protected $infiles = null;
49 49
 
50
+	/**
51
+	 * @param string $infile
52
+	 */
50 53
 	public function __construct( $infile ) {
51 54
 		$this->infiles = explode( ';', $infile );
52 55
 		$this->reader = new XMLReader();
Please login to merge, or discard this patch.
maintenance/cleanupImages.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -117,10 +117,16 @@
 block discarded – undo
117 117
 		return $this->repo->getRootDirectory() . '/' . $this->repo->getHashPath( $name ) . $name;
118 118
 	}
119 119
 
120
+	/**
121
+	 * @param IDatabase $db
122
+	 */
120 123
 	private function imageExists( $name, $db ) {
121 124
 		return $db->selectField( 'image', '1', [ 'img_name' => $name ], __METHOD__ );
122 125
 	}
123 126
 
127
+	/**
128
+	 * @param IDatabase $db
129
+	 */
124 130
 	private function pageExists( $name, $db ) {
125 131
 		return $db->selectField(
126 132
 			'page',
Please login to merge, or discard this patch.