Completed
Branch master (8850f3)
by
unknown
38:32
created
includes/collation/IcuCollation.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@  discard block
 block discarded – undo
182 182
 	 */
183 183
 	const RECORD_LENGTH = 14;
184 184
 
185
+	/**
186
+	 * @param string $locale
187
+	 */
185 188
 	public function __construct( $locale ) {
186 189
 		if ( !extension_loaded( 'intl' ) ) {
187 190
 			throw new MWException( 'An ICU collation was requested, ' .
@@ -413,6 +416,8 @@  discard block
 block discarded – undo
413 416
 
414 417
 	/**
415 418
 	 * @since 1.16.3
419
+	 * @param integer $index
420
+	 * @return string
416 421
 	 */
417 422
 	public function getLetterByIndex( $index ) {
418 423
 		return $this->getFirstLetterData()['chars'][$index];
@@ -466,7 +471,7 @@  discard block
 block discarded – undo
466 471
 	 * currently in use, or false when it can't be determined.
467 472
 	 *
468 473
 	 * @since 1.21
469
-	 * @return string|bool
474
+	 * @return false|string
470 475
 	 */
471 476
 	static function getUnicodeVersionForICU() {
472 477
 		$icuVersion = IcuCollation::getICUVersion();
Please login to merge, or discard this patch.
includes/revisiondelete/RevDelArchivedFileItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
 	/** @var LocalFile */
31 31
 	protected $lockFile;
32 32
 
33
+	/**
34
+	 * @param RevDelArchivedFileList $list
35
+	 */
33 36
 	public function __construct( $list, $row ) {
34 37
 		RevDelItem::__construct( $list, $row );
35 38
 		$this->file = ArchivedFile::newFromRow( $row );
Please login to merge, or discard this patch.
includes/search/SearchEngine.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * @since 1.18
105 105
 	 * @param string $feature
106 106
 	 * @param mixed $data
107
-	 * @return bool
107
+	 * @return boolean|null
108 108
 	 */
109 109
 	public function setFeatureData( $feature, $data ) {
110 110
 		$this->features[$feature] = $data;
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
 	/**
303 303
 	 * Find snippet highlight settings for all users
304
-	 * @return array Contextlines, contextchars
304
+	 * @return integer[] Contextlines, contextchars
305 305
 	 */
306 306
 	public static function userHighlightPrefs() {
307 307
 		$contextlines = 2; // Hardcode this. Old defaults sucked. :)
@@ -507,6 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * Process completion search results.
508 508
 	 * Resolves the titles and rescores.
509 509
 	 * @param SearchSuggestionSet $suggestions
510
+	 * @param string $search
510 511
 	 * @return SearchSuggestionSet
511 512
 	 */
512 513
 	protected function processCompletionResults( $search, SearchSuggestionSet $suggestions ) {
@@ -590,7 +591,7 @@  discard block
 block discarded – undo
590 591
 	 * settings, returning a list of index numbers.
591 592
 	 * @deprecated since 1.27; use SearchEngineConfig::userNamespaces()
592 593
 	 * @param user $user
593
-	 * @return array
594
+	 * @return integer[]
594 595
 	 */
595 596
 	public static function userNamespaces( $user ) {
596 597
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user );
@@ -599,7 +600,7 @@  discard block
 block discarded – undo
599 600
 	/**
600 601
 	 * An array of namespaces indexes to be searched by default
601 602
 	 * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces()
602
-	 * @return array
603
+	 * @return integer[]
603 604
 	 */
604 605
 	public static function defaultNamespaces() {
605 606
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces();
@@ -610,7 +611,7 @@  discard block
 block discarded – undo
610 611
 	 * and preferences
611 612
 	 * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText()
612 613
 	 * @param array $namespaces
613
-	 * @return array
614
+	 * @return string[]
614 615
 	 */
615 616
 	public static function namespacesAsText( $namespaces ) {
616 617
 		return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces );
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLButtonField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 
126 126
 	/**
127 127
 	 * IE<8 has bugs with <button>, so we'll need to avoid them.
128
-	 * @return bool Whether the request is from a bad version of IE
128
+	 * @return integer Whether the request is from a bad version of IE
129 129
 	 */
130 130
 	private function isBadIE() {
131 131
 		$request = $this->mParent
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLCheckMatrix.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 * mParams['rows'] is an array with row labels as keys and row tags as values.
76 76
 	 * mParams['columns'] is an array with column labels as keys and column tags as values.
77 77
 	 *
78
-	 * @param array $value Array of the options that should be checked
78
+	 * @param string $value Array of the options that should be checked
79 79
 	 *
80 80
 	 * @return string
81 81
 	 */
@@ -151,6 +151,9 @@  discard block
 block discarded – undo
151 151
 		return $html;
152 152
 	}
153 153
 
154
+	/**
155
+	 * @param boolean $checked
156
+	 */
154 157
 	protected function getOneCheckbox( $checked, $attribs ) {
155 158
 		if ( $this->mParent instanceof OOUIHTMLForm ) {
156 159
 			return new OOUI\CheckboxInputWidget( array(
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLMultiSelectField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
 		return $html;
64 64
 	}
65 65
 
66
+	/**
67
+	 * @param boolean $checked
68
+	 */
66 69
 	protected function getOneCheckbox( $checked, $attribs, $label ) {
67 70
 		if ( $this->mParent instanceof OOUIHTMLForm ) {
68 71
 			if ( $this->mOptionsLabelsNotFromMessage ) {
Please login to merge, or discard this patch.
includes/htmlform/fields/HTMLRadioField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
 		) + $this->getAttributes( array( 'disabled', 'tabindex' ), array( 'tabindex' => 'tabIndex' ) ) );
56 56
 	}
57 57
 
58
+	/**
59
+	 * @param string $value
60
+	 */
58 61
 	function formatOptions( $options, $value ) {
59 62
 		$html = '';
60 63
 
Please login to merge, or discard this patch.
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.