Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
includes/NamespaceManager.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param array &$globalVars
21 21
 	 * @param string|null &directory
22
+	 * @param string $directory
22 23
 	 */
23 24
 	public function __construct( &$globalVars, $directory = null ) {
24 25
 		$this->globalVars =& $globalVars;
@@ -187,18 +188,27 @@  discard block
 block discarded – undo
187 188
 		}
188 189
 	}
189 190
 
191
+	/**
192
+	 * @param string $element
193
+	 */
190 194
 	protected function isValidConfigurationOrSetDefault( $element, $default ) {
191 195
 		if ( !isset( $this->globalVars[$element] ) || !is_array( $this->globalVars[$element] ) ) {
192 196
 			$this->globalVars[$element] = $default;
193 197
 		}
194 198
 	}
195 199
 
200
+	/**
201
+	 * @param string $fallbackLanguageCode
202
+	 */
196 203
 	protected function isValidLanguageClassOrSetFallback( $langClass, $fallbackLanguageCode ) {
197 204
 		if ( !class_exists( $langClass ) ) {
198 205
 			$this->setLanguage( $fallbackLanguageCode );
199 206
 		}
200 207
 	}
201 208
 
209
+	/**
210
+	 * @param string $constant
211
+	 */
202 212
 	protected function isDefinedConstant( $constant ) {
203 213
 		return defined( $constant );
204 214
 	}
Please login to merge, or discard this patch.
includes/parserhooks/AskParserFunction.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,6 +67,7 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @since 1.9
69 69
 	 *
70
+	 * @param boolean $mode
70 71
 	 * @return AskParserFunction
71 72
 	 */
72 73
 	public function setShowMode( $mode ) {
@@ -79,7 +80,7 @@  discard block
 block discarded – undo
79 80
 	 *
80 81
 	 * @since 1.9
81 82
 	 *
82
-	 * @return string|null
83
+	 * @return string
83 84
 	 */
84 85
 	public function isQueryDisabled() {
85 86
 		return $this->messageFormatter->addFromKey( 'smw_iq_disabled' )->getHtml();
@@ -98,9 +99,8 @@  discard block
 block discarded – undo
98 99
 	 *
99 100
 	 * @since 1.9
100 101
 	 *
101
-	 * @param array $params
102 102
 	 *
103
-	 * @return string|null
103
+	 * @return string
104 104
 	 */
105 105
 	public function parse( array $rawParams ) {
106 106
 
@@ -187,6 +187,9 @@  discard block
 block discarded – undo
187 187
 		return $result;
188 188
 	}
189 189
 
190
+	/**
191
+	 * @param \SMWQuery $query
192
+	 */
190 193
 	private function createQueryProfile( $query, $format, $duration ) {
191 194
 
192 195
 		// In case of an query error add a marker to the subject for
Please login to merge, or discard this patch.
includes/parserhooks/ShowParserFunction.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,8 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @since 1.9
52 52
 	 *
53
-	 * @param array $params
54 53
 	 *
55
-	 * @return string|null
54
+	 * @return string
56 55
 	 */
57 56
 	public function parse( array $rawParams ) {
58 57
 
@@ -73,7 +72,7 @@  discard block
 block discarded – undo
73 72
 	 *
74 73
 	 * @since 1.9
75 74
 	 *
76
-	 * @return string|null
75
+	 * @return string
77 76
 	 */
78 77
 	public function isQueryDisabled() {
79 78
 		return $this->messageFormatter->addFromKey( 'smw_iq_disabled' )->getHtml();
Please login to merge, or discard this patch.
includes/parserhooks/SubobjectParserFunction.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW;
4 4
 
5
-use Parser;
6
-
7 5
 /**
8 6
  * Provides the {{#subobject}} parser function
9 7
  *
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * @since 1.9
86 86
 	 *
87
-	 * @param ParserParameterProcessor $params
87
+	 * @param ParserParameterProcessor $parameters
88 88
 	 *
89
-	 * @return string|null
89
+	 * @return string
90 90
 	 */
91 91
 	public function parse( ParserParameterProcessor $parameters ) {
92 92
 
@@ -172,6 +172,9 @@  discard block
 block discarded – undo
172 172
 		return $parameters->toArray();
173 173
 	}
174 174
 
175
+	/**
176
+	 * @param DIWikiPage $subject
177
+	 */
175 178
 	private function addErrorWithMsg( $subject, $errorMsg ) {
176 179
 
177 180
 		$error = new Error( $subject );
Please login to merge, or discard this patch.
includes/query/SMW_QueryProcessor.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,7 +165,6 @@  discard block
 block discarded – undo
165 165
 	 * @since 1.7
166 166
 	 *
167 167
 	 * @param array $sortParam
168
-	 * @param array $orders
169 168
 	 * @param string $defaultSort
170 169
 	 *
171 170
 	 * @return array ( keys => array(), errors => array() )
@@ -473,9 +472,9 @@  discard block
 block discarded – undo
473 472
 	 * printout requests for the query results.
474 473
 	 *
475 474
 	 * @param string $queryString
476
-	 * @param array $params These need to be the result of a list fed to getProcessedParams
475
+	 * @param Param[] $params These need to be the result of a list fed to getProcessedParams
477 476
 	 * @param $extraPrintouts
478
-	 * @param $outputMode
477
+	 * @param integer $outputMode
479 478
 	 * @param $context
480 479
 	 *
481 480
 	 * @return string
@@ -587,7 +586,7 @@  discard block
 block discarded – undo
587 586
 	 *
588 587
 	 * @since 1.6.2, return element type changed in 1.8
589 588
 	 *
590
-	 * @return IParamDefinition[]
589
+	 * @return ParamProcessor\IParamDefinition[]
591 590
 	 */
592 591
 	public static function getParameters() {
593 592
 		$params = array();
Please login to merge, or discard this patch.
includes/querypages/WantedPropertiesQueryPage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 	/**
108 108
 	 * Get the list of results.
109 109
 	 *
110
-	 * @param SMWRequestOptions $requestOptions
110
+	 * @param SMWRequestOptions $requestoptions
111 111
 	 * @return array of SMWDIProperty|SMWDIError
112 112
 	 */
113 113
 	function getResults( $requestoptions ) {
Please login to merge, or discard this patch.
includes/queryprinters/CategoryResultPrinter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -229,6 +229,10 @@
 block discarded – undo
229 229
 		return ByLanguageCollationMapper::getInstance()->findFirstLetterForCategory( $sortKey );
230 230
 	}
231 231
 
232
+	/**
233
+	 * @param SMWQueryResult $res
234
+	 * @param boolean $first_col
235
+	 */
232 236
 	private function addRowFieldsToTemplate( $res, $row, &$first_col, &$columnIndex, $templateRenderer ) {
233 237
 
234 238
 		// explicitly number parameters for more robust parsing (values may contain "=")
Please login to merge, or discard this patch.
includes/queryprinters/DsvResultPrinter.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 *
60 60
 	 * @param SMWQueryResult $queryResult
61 61
 	 *
62
-	 * @return string|boolean
62
+	 * @return string
63 63
 	 */
64 64
 	public function getFileName( SMWQueryResult $queryResult ) {
65 65
 		return $this->fileName;
@@ -87,7 +87,6 @@  discard block
 block discarded – undo
87 87
 	 *
88 88
 	 * @since 1.6
89 89
 	 *
90
-	 * @param SMWQueryResult $res
91 90
 	 *
92 91
 	 * @return string
93 92
 	 */
Please login to merge, or discard this patch.
includes/queryprinters/ListResultPrinter.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 	 *
394 394
 	 * @since 1.9
395 395
 	 *
396
-	 * @param $row
396
+	 * @param SMWResultArray[] $row
397 397
 	 *
398 398
 	 * @return string
399 399
 	 */
@@ -422,6 +422,9 @@  discard block
 block discarded – undo
422 422
 		$this->templateRenderer->addField( '#', $this->numRows );
423 423
 	}
424 424
 
425
+	/**
426
+	 * @param SMWQueryResult $queryResult
427
+	 */
425 428
 	protected function addCommonTemplateFields( $queryResult ) {
426 429
 
427 430
 		if ( $this->mUserParam ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use ImportReporter;
7 7
 use WikiImporter;
8 8
 use RequestContext;
9
-
10 9
 use RuntimeException;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.