Completed
Push — master ( 07dd29...2a8480 )
by mw
409:44 queued 374:41
created
includes/query/SMW_QueryProcessor.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,6 @@  discard block
 block discarded – undo
168 168
 	 * @since 1.7
169 169
 	 *
170 170
 	 * @param array $sortParam
171
-	 * @param array $orders
172 171
 	 * @param string $defaultSort
173 172
 	 *
174 173
 	 * @return array ( keys => array(), errors => array() )
@@ -363,6 +362,7 @@  discard block
 block discarded – undo
363 362
 	 * @param integer $outputMode SMW_OUTPUT_WIKI, SMW_OUTPUT_HTML, ...
364 363
 	 * @param integer $context INLINE_QUERY, SPECIAL_PAGE, CONCEPT_DESC
365 364
 	 * @param boolean $showMode process like #show parser function?
365
+	 * @param DIWikiPage $contextPage
366 366
 	 * @return array( SMWQuery, array of IParam )
367 367
 	 */
368 368
 	static public function getQueryAndParamsFromFunctionParams( array $rawParams, $outputMode, $context, $showMode, $contextPage = null ) {
@@ -415,9 +415,9 @@  discard block
 block discarded – undo
415 415
 	 * printout requests for the query results.
416 416
 	 *
417 417
 	 * @param string $queryString
418
-	 * @param array $params These need to be the result of a list fed to getProcessedParams
418
+	 * @param Param[] $params These need to be the result of a list fed to getProcessedParams
419 419
 	 * @param $extraPrintouts
420
-	 * @param $outputMode
420
+	 * @param integer $outputMode
421 421
 	 * @param $context
422 422
 	 *
423 423
 	 * @return string
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 	 *
530 530
 	 * @since 1.6.2, return element type changed in 1.8
531 531
 	 *
532
-	 * @return IParamDefinition[]
532
+	 * @return ParamProcessor\IParamDefinition[]
533 533
 	 */
534 534
 	public static function getParameters() {
535 535
 		$params = array();
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_Number.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 * Parse a string of the form "number unit" where unit is optional. The
93 93
 	 * results are stored in the $number and $unit parameters. Returns an
94 94
 	 * error code.
95
-	 * @param $value string to parse
95
+	 * @param string $value string to parse
96 96
 	 * @param $number call-by-ref parameter that will be set to the numerical value
97 97
 	 * @param $unit call-by-ref parameter that will be set to the "unit" string (after the number)
98 98
 	 * @return integer 0 (no errors), 1 (no number found at all), 2 (number
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	/**
227 227
 	 * @since 2.4
228 228
 	 *
229
-	 * @return float
229
+	 * @return string
230 230
 	 */
231 231
 	public function getLocalizedFormattedNumber( $value ) {
232 232
 		return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision() );
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 	/**
236 236
 	 * @since 2.4
237 237
 	 *
238
-	 * @return float
238
+	 * @return string
239 239
 	 */
240 240
 	public function getNormalizedFormattedNumber( $value ) {
241 241
 		return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision(), IntlNumberFormatter::VALUE_FORMAT );
Please login to merge, or discard this patch.
src/SQLStore/CompositePropertyTableDiffIterator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@
 block discarded – undo
100 100
 	 *
101 101
 	 * @since 2.3
102 102
 	 *
103
+	 * @param string $table
103 104
 	 * @return array
104 105
 	 */
105 106
 	public function getOrderedDiffByTable( $table = null ) {
Please login to merge, or discard this patch.
src/DataValueFactory.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * @param string $propertyName property string
183 183
 	 * @param string $valueString user value string
184 184
 	 * @param mixed $caption user-defined caption
185
-	 * @param SMWDIWikiPage|null $contextPage context for parsing the value string
185
+	 * @param null|DIWikiPage $contextPage context for parsing the value string
186 186
 	 *
187 187
 	 * @return DataValue
188 188
 	 */
@@ -306,6 +306,8 @@  discard block
 block discarded – undo
306 306
 	/**
307 307
 	 * @deprecated since 2.4, use DataTypeRegistry::newDataValueByText
308 308
 	 *
309
+	 * @param string $propertyName
310
+	 * @param string $valueString
309 311
 	 * @return DataValue
310 312
 	 */
311 313
 	public function newPropertyValue( $propertyName, $valueString, $caption = false, DIWikiPage $contextPage = null ) {
@@ -314,6 +316,8 @@  discard block
 block discarded – undo
314 316
 
315 317
 	/**
316 318
 	 * @deprecated since 1.9, use DataTypeRegistry::registerDataType
319
+	 * @param string $id
320
+	 * @param string $className
317 321
 	 */
318 322
 	public static function registerDatatype( $id, $className, $dataItemId, $label = false ) {
319 323
 		DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label );
@@ -321,6 +325,8 @@  discard block
 block discarded – undo
321 325
 
322 326
 	/**
323 327
 	 * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias
328
+	 * @param string $id
329
+	 * @param string $label
324 330
 	 */
325 331
 	public static function registerDatatypeAlias( $id, $label ) {
326 332
 		DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label );
Please login to merge, or discard this patch.
includes/export/SMW_Exporter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 * represent. Returns null if this attempt failed.
404 404
 	 *
405 405
 	 * @param ExpElement $expElement
406
-	 * @return SMWDataItem or null
406
+	 * @return null|DIWikiPage or null
407 407
 	 */
408 408
 	public function findDataItemForExpElement( ExpElement $expElement ) {
409 409
 		return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement );
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	 * must take the type of the annotated object into account for some
441 441
 	 * reason.
442 442
 	 *
443
-	 * @param $propertyKey string the Id of the special property
443
+	 * @param string $propertyKey string the Id of the special property
444 444
 	 * @param $forNamespace integer the namespace of the page which has a value for this property
445 445
 	 * @return ExpNsResource|null
446 446
 	 */
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 	 * elements are always preferred in query answering.
621 621
 	 *
622 622
 	 * @param $dataItem SMWDataItem
623
-	 * @return ExpElement|null
623
+	 * @return ExpLiteral|null
624 624
 	 */
625 625
 	static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) {
626 626
 
Please login to merge, or discard this patch.
includes/queryprinters/FeedResultPrinter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use FeedItem;
6 6
 use ParserOptions;
7 7
 use Sanitizer;
8
-use SMWDIWikiPage;
9 8
 use SMWQueryResult;
10 9
 use TextContent;
11 10
 use Title;
Please login to merge, or discard this patch.
src/GlobalFunctions.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,6 @@  discard block
 block discarded – undo
95 95
  * $icon should be one of: 'warning' (default), 'info'.
96 96
  *
97 97
  * @param array $messages
98
- * @param string $icon Acts like an enum. Callers must ensure safety, since this value is used directly in the output.
99 98
  * @param string $seperator
100 99
  * @param boolean $escape Should the messages be escaped or not (ie when they already are)
101 100
  *
@@ -201,7 +200,7 @@  discard block
 block discarded – undo
201 200
  * @param mixed $namespace
202 201
  * @param boolean $complete
203 202
  *
204
- * @return true
203
+ * @return boolean
205 204
  *
206 205
  * @codeCoverageIgnore
207 206
  */
Please login to merge, or discard this patch.
phpunit/Integration/Query/InversePropertyRelationshipDBIntegrationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -116,6 +116,10 @@
 block discarded – undo
116 116
 		);
117 117
 	}
118 118
 
119
+	/**
120
+	 * @param string $property
121
+	 * @param string $value
122
+	 */
119 123
 	private function newDataValueForPagePropertyValue( $property, $value ) {
120 124
 
121 125
 		$property = DIProperty::newFromUserLabel( $property );
Please login to merge, or discard this patch.
includes/queryprinters/DsvResultPrinter.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,6 @@
 block discarded – undo
81 81
 	 *
82 82
 	 * @since 1.6
83 83
 	 *
84
-	 * @param SMWQueryResult $res
85 84
 	 *
86 85
 	 * @return string
87 86
 	 */
Please login to merge, or discard this patch.