Completed
Branch master (30e4e7)
by
unknown
21:53
created
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/api/ApiBase.php 1 patch
Doc Comments   +13 added lines, -9 removed lines patch added patch discarded remove patch
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 	 * Returning true will generate errors indicating that the API module needs
409 409
 	 * updating.
410 410
 	 *
411
-	 * @return string|false
411
+	 * @return boolean
412 412
 	 */
413 413
 	public function needsToken() {
414 414
 		return false;
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 *
422 422
 	 * @since 1.24
423 423
 	 * @param array $params All supplied parameters for the module
424
-	 * @return string|array|null
424
+	 * @return string
425 425
 	 */
426 426
 	protected function getWebUITokenSalt( array $params ) {
427 427
 		return null;
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 	/**
487 487
 	 * Get the parent of this module
488 488
 	 * @since 1.25
489
-	 * @return ApiBase|null
489
+	 * @return ApiMain
490 490
 	 */
491 491
 	public function getParent() {
492 492
 		return $this->isMain() ? null : $this->getMain();
@@ -621,6 +621,7 @@  discard block
 block discarded – undo
621 621
 	/**
622 622
 	 * Set the continuation manager
623 623
 	 * @param ApiContinuationManager|null
624
+	 * @param ApiContinuationManager|null $manager
624 625
 	 */
625 626
 	public function setContinuationManager( $manager ) {
626 627
 		// Main module has setContinuationManager() method overridden
@@ -704,6 +705,7 @@  discard block
 block discarded – undo
704 705
 	 *
705 706
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
706 707
 	 * @param string $required,... Names of parameters of which exactly one must be set
708
+	 * @param string $required
707 709
 	 */
708 710
 	public function requireOnlyOneParameter( $params, $required /*...*/ ) {
709 711
 		$required = func_get_args();
@@ -730,6 +732,7 @@  discard block
 block discarded – undo
730 732
 	 *
731 733
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
732 734
 	 * @param string $required,... Names of parameters of which at most one must be set
735
+	 * @param string $required
733 736
 	 */
734 737
 	public function requireMaxOneParameter( $params, $required /*...*/ ) {
735 738
 		$required = func_get_args();
@@ -753,6 +756,7 @@  discard block
 block discarded – undo
753 756
 	 * @since 1.23
754 757
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
755 758
 	 * @param string $required,... Names of parameters of which at least one must be set
759
+	 * @param string $required
756 760
 	 */
757 761
 	public function requireAtLeastOneParameter( $params, $required /*...*/ ) {
758 762
 		$required = func_get_args();
@@ -2531,7 +2535,7 @@  discard block
 block discarded – undo
2531 2535
 	 * "apihelp-{$this->getModulePath()}-description".
2532 2536
 	 *
2533 2537
 	 * @deprecated since 1.25
2534
-	 * @return Message|string|array
2538
+	 * @return boolean
2535 2539
 	 */
2536 2540
 	protected function getDescription() {
2537 2541
 		return false;
@@ -2567,7 +2571,7 @@  discard block
 block discarded – undo
2567 2571
 	 * that value, and boolean false means "no examples".
2568 2572
 	 *
2569 2573
 	 * @deprecated since 1.25, use getExamplesMessages() instead
2570
-	 * @return bool|string|array
2574
+	 * @return boolean
2571 2575
 	 */
2572 2576
 	protected function getExamples() {
2573 2577
 		return false;
@@ -2576,7 +2580,7 @@  discard block
 block discarded – undo
2576 2580
 	/**
2577 2581
 	 * Generates help message for this module, or false if there is no description
2578 2582
 	 * @deprecated since 1.25
2579
-	 * @return string|bool
2583
+	 * @return string
2580 2584
 	 */
2581 2585
 	public function makeHelpMsg() {
2582 2586
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2686,7 +2690,7 @@  discard block
 block discarded – undo
2686 2690
 	 * Generates the parameter descriptions for this module, to be displayed in the
2687 2691
 	 * module's help.
2688 2692
 	 * @deprecated since 1.25
2689
-	 * @return string|bool
2693
+	 * @return string|false
2690 2694
 	 */
2691 2695
 	public function makeHelpMsgParameters() {
2692 2696
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2877,7 +2881,7 @@  discard block
 block discarded – undo
2877 2881
 
2878 2882
 	/**
2879 2883
 	 * @deprecated since 1.25, always returns 0
2880
-	 * @return float
2884
+	 * @return integer
2881 2885
 	 */
2882 2886
 	public function getProfileTime() {
2883 2887
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2900,7 +2904,7 @@  discard block
 block discarded – undo
2900 2904
 
2901 2905
 	/**
2902 2906
 	 * @deprecated since 1.25, always returns 0
2903
-	 * @return float
2907
+	 * @return integer
2904 2908
 	 */
2905 2909
 	public function getProfileDBTime() {
2906 2910
 		wfDeprecated( __METHOD__, '1.25' );
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.
maintenance/cleanupTable.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
 		$this->runTable( $this->defaultParams );
61 61
 	}
62 62
 
63
+	/**
64
+	 * @param integer $count
65
+	 */
63 66
 	protected function init( $count, $table ) {
64 67
 		$this->processed = 0;
65 68
 		$this->updated = 0;
Please login to merge, or discard this patch.
maintenance/language/checkLanguage.inc 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
 	/**
96 96
 	 * Get the default checks.
97
-	 * @return array A list of the default checks.
97
+	 * @return string[] A list of the default checks.
98 98
 	 */
99 99
 	protected function defaultChecks() {
100 100
 		return [
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 	/**
109 109
 	 * Get the checks which check other things than messages.
110
-	 * @return array A list of the non-message checks.
110
+	 * @return string[] A list of the non-message checks.
111 111
 	 */
112 112
 	protected function nonMessageChecks() {
113 113
 		return [
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
 	/**
120 120
 	 * Get the checks that can easily be treated by non-speakers of the language.
121
-	 * @return array A list of the easy checks.
121
+	 * @return string[] A list of the easy checks.
122 122
 	 */
123 123
 	protected function easyChecks() {
124 124
 		return [
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 
644 644
 	/**
645 645
 	 * Get the default checks.
646
-	 * @return array A list of the default checks.
646
+	 * @return string[] A list of the default checks.
647 647
 	 */
648 648
 	protected function defaultChecks() {
649 649
 		return [
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 
663 663
 	/**
664 664
 	 * Get the checks that can easily be treated by non-speakers of the language.
665
-	 * @return array A list of the easy checks.
665
+	 * @return string[] A list of the easy checks.
666 666
 	 */
667 667
 	protected function easyChecks() {
668 668
 		return [
Please login to merge, or discard this patch.
maintenance/userDupes.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
 	private $failed;
40 40
 	private $outputCallback;
41 41
 
42
+	/**
43
+	 * @param DatabaseBase $database
44
+	 */
42 45
 	function __construct( &$database, $outputCallback ) {
43 46
 		$this->db = $database;
44 47
 		$this->outputCallback = $outputCallback;
Please login to merge, or discard this patch.