Completed
Branch master (86dc85)
by
unknown
23:45
created
includes/widget/SearchInputWidget.php 1 patch
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,6 @@
 block discarded – undo
19 19
 
20 20
 	/**
21 21
 	 * @param array $config Configuration options
22
-	 * @param int|null $config['pushPending'] Whether the input should be visually marked as
23
-	 *  "pending", while requesting suggestions (default: true)
24
-	 * @param boolean|null $config['performSearchOnClick'] If true, the script will start a search
25
-	 *  whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the
26
-	 *  text field only (default: true)
27 22
 	 */
28 23
 	public function __construct( array $config = [] ) {
29 24
 		$config = array_merge( [
Please login to merge, or discard this patch.
includes/specials/SpecialUpload.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	/**
219 219
 	 * Show the main upload form
220 220
 	 *
221
-	 * @param HTMLForm|string $form An HTMLForm instance or HTML string to show
221
+	 * @param UploadForm $form An HTMLForm instance or HTML string to show
222 222
 	 */
223 223
 	protected function showUploadForm( $form ) {
224 224
 		# Add links if file was previously deleted
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 	 *
602 602
 	 * Note that the page target can be changed *on the form*, so our check
603 603
 	 * state can get out of sync.
604
-	 * @return bool|string
604
+	 * @return boolean
605 605
 	 */
606 606
 	protected function getWatchCheck() {
607 607
 		if ( $this->getUser()->getOption( 'watchdefault' ) ) {
Please login to merge, or discard this patch.
includes/filerepo/file/File.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * Most subclasses will want to call assertRepoDefined() here.
161 161
 	 *
162 162
 	 * @param Title|string|bool $title
163
-	 * @param FileRepo|bool $repo
163
+	 * @param FileRepo $repo
164 164
 	 */
165 165
 	function __construct( $title, $repo ) {
166 166
 		// Some subclasses do not use $title, but set name/title some other way
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 	 * Most callers don't check the return value, but ForeignAPIFile::getPath
412 412
 	 * returns false.
413 413
 	 *
414
-	 * @return string|bool ForeignAPIFile::getPath can return false
414
+	 * @return string ForeignAPIFile::getPath can return false
415 415
 	 */
416 416
 	public function getPath() {
417 417
 		if ( !isset( $this->path ) ) {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 	 * Overridden by LocalFile, UnregisteredLocalFile
458 458
 	 *
459 459
 	 * @param int $page
460
-	 * @return int|bool
460
+	 * @return boolean
461 461
 	 */
462 462
 	public function getWidth( $page = 1 ) {
463 463
 		return false;
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 	 * Overridden by LocalFile, UnregisteredLocalFile
472 472
 	 *
473 473
 	 * @param int $page
474
-	 * @return bool|int False on failure
474
+	 * @return boolean False on failure
475 475
 	 */
476 476
 	public function getHeight( $page = 1 ) {
477 477
 		return false;
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 	 *
485 485
 	 * @param int $desiredWidth
486 486
 	 * @param int $page
487
-	 * @return bool|int
487
+	 * @return integer
488 488
 	 */
489 489
 	public function getThumbnailBucket( $desiredWidth, $page = 1 ) {
490 490
 		global $wgThumbnailBuckets, $wgThumbnailMinimumBucketDistance;
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 	 * Get handler-specific metadata
634 634
 	 * Overridden by LocalFile, UnregisteredLocalFile
635 635
 	 * STUB
636
-	 * @return bool|array
636
+	 * @return boolean
637 637
 	 */
638 638
 	public function getMetadata() {
639 639
 		return false;
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
 	/**
643 643
 	 * Like getMetadata but returns a handler independent array of common values.
644 644
 	 * @see MediaHandler::getCommonMetaArray()
645
-	 * @return array|bool Array or false if not supported
645
+	 * @return boolean Array or false if not supported
646 646
 	 * @since 1.23
647 647
 	 */
648 648
 	public function getCommonMetaArray() {
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 	 *
661 661
 	 * @param array|string $metadata Array or string of (serialized) metadata
662 662
 	 * @param int $version Version number.
663
-	 * @return array Array containing metadata, or what was passed to it on fail
663
+	 * @return ApiResult Array containing metadata, or what was passed to it on fail
664 664
 	 *   (unserializing if not array)
665 665
 	 */
666 666
 	public function convertMetadataVersion( $metadata, $version ) {
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
 	/**
1360 1360
 	 * Get a MediaHandler instance for this file
1361 1361
 	 *
1362
-	 * @return MediaHandler|bool Registered MediaHandler for file's MIME type
1362
+	 * @return MediaHandler Registered MediaHandler for file's MIME type
1363 1363
 	 *   or false if none found
1364 1364
 	 */
1365 1365
 	function getHandler() {
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
 	 * @param bool $watch
1783 1783
 	 * @param string|bool $timestamp
1784 1784
 	 * @param null|User $user User object or null to use $wgUser
1785
-	 * @return bool
1785
+	 * @return boolean|null
1786 1786
 	 * @throws MWException
1787 1787
 	 */
1788 1788
 	function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
@@ -1817,7 +1817,7 @@  discard block
 block discarded – undo
1817 1817
 	}
1818 1818
 
1819 1819
 	/**
1820
-	 * @param bool|IContextSource $context Context to use (optional)
1820
+	 * @param IContextSource $context Context to use (optional)
1821 1821
 	 * @return bool
1822 1822
 	 */
1823 1823
 	function formatMetadata( $context = false ) {
@@ -1964,7 +1964,7 @@  discard block
 block discarded – undo
1964 1964
 	 * Returns the number of pages of a multipage document, or false for
1965 1965
 	 * documents which aren't multipage documents
1966 1966
 	 *
1967
-	 * @return bool|int
1967
+	 * @return string|boolean
1968 1968
 	 */
1969 1969
 	function pageCount() {
1970 1970
 		if ( !isset( $this->pageCount ) ) {
@@ -2031,7 +2031,7 @@  discard block
 block discarded – undo
2031 2031
 	/**
2032 2032
 	 * Get the HTML text of the description page, if available
2033 2033
 	 *
2034
-	 * @param bool|Language $lang Optional language to fetch description in
2034
+	 * @param Language $lang Optional language to fetch description in
2035 2035
 	 * @return string
2036 2036
 	 */
2037 2037
 	function getDescriptionText( $lang = false ) {
@@ -2103,7 +2103,7 @@  discard block
 block discarded – undo
2103 2103
 	 * Returns false if the file does not have a description page, or retrieving the timestamp
2104 2104
 	 * would be expensive.
2105 2105
 	 * @since 1.25
2106
-	 * @return string|bool
2106
+	 * @return boolean
2107 2107
 	 */
2108 2108
 	public function getDescriptionTouched() {
2109 2109
 		return false;
Please login to merge, or discard this patch.
includes/specials/SpecialSearch.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1356,7 +1356,7 @@
 block discarded – undo
1356 1356
 	 * @since 1.18
1357 1357
 	 *
1358 1358
 	 * @param string $key
1359
-	 * @param mixed $value
1359
+	 * @param string $value
1360 1360
 	 */
1361 1361
 	public function setExtraParam( $key, $value ) {
1362 1362
 		$this->extraParams[$key] = $value;
Please login to merge, or discard this patch.