Completed
Push — master ( f5d374...685013 )
by mw
47:54 queued 25:05
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.
src/IntlNumberFormatter.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * @return string $key
102 102
 	 * @param mxied $value
103
+	 * @param string $key
103 104
 	 */
104 105
 	public function setOption( $key, $value ) {
105 106
 		$this->options->set( $key, $value );
@@ -161,7 +162,7 @@  discard block
 block discarded – undo
161 162
 	 * to format a number that was not hand-formatted by a user.
162 163
 	 *
163 164
 	 * @param mixed $value input number
164
-	 * @param integer|false $precision optional positive integer, controls how many digits after
165
+	 * @param boolean $precision optional positive integer, controls how many digits after
165 166
 	 * the decimal point are shown
166 167
 	 *
167 168
 	 * @since 2.1
@@ -277,6 +278,10 @@  discard block
 block discarded – undo
277 278
 		return round( $value, $this->defaultPrecision );
278 279
 	}
279 280
 
281
+	/**
282
+	 * @param string $decimal
283
+	 * @param string $thousand
284
+	 */
280 285
 	private function doFormatWithPrecision( $value, $precision = false, $decimal, $thousand ) {
281 286
 		// Format to some level of precision; number_format does rounding and
282 287
 		// locale formatting, x and y are used temporarily since number_format
@@ -321,6 +326,10 @@  discard block
 block discarded – undo
321 326
 		return $language;
322 327
 	}
323 328
 
329
+	/**
330
+	 * @param string $custom
331
+	 * @param string $standard
332
+	 */
324 333
 	private function getPreferredLocalizedSeparator( $custom, $standard, $language ) {
325 334
 
326 335
 		if ( $this->options->has( $custom ) && ( $separator = $this->options->get( $custom ) ) !== false ) {
Please login to merge, or discard this patch.
tests/phpunit/Unit/IntlNumberFormatterTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Tests;
4 4
 
5
-use Language;
6 5
 use SMW\NumberFormatter;
7 6
 
8 7
 /**
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.
includes/datavalues/SMW_DV_String.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	/**
35 35
 	 * @see DataValue::loadDataItem
36 36
 	 *
37
-	 * @param SMWDataItem $dataitem
37
+	 * @param SMWDataItem $dataItem
38 38
 	 *
39 39
 	 * @return boolean
40 40
 	 */
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
 		return $this->getDataValueFormatter()->format( DataValueFormatter::VALUE );
97 97
 	}
98 98
 
99
+	/**
100
+	 * @param integer $length
101
+	 */
99 102
 	public function getWikiValueForLengthOf( $length ) {
100 103
 
101 104
 		if ( mb_strlen( $this->getWikiValue() ) > $length ) {
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_WikiPage.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	protected $linkAttributes = array();
74 74
 
75
+	/**
76
+	 * @param string $typeid
77
+	 */
75 78
 	public function __construct( $typeid ) {
76 79
 		parent::__construct( $typeid );
77 80
 		switch ( $typeid ) {
@@ -630,6 +633,9 @@  discard block
 block discarded – undo
630 633
 		return $dvWikiPage;
631 634
 	}
632 635
 
636
+	/**
637
+	 * @param DataItem $subject
638
+	 */
633 639
 	private function findDisplayTitleFor( $subject ) {
634 640
 
635 641
 		$displayTitle = '';
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use SMW\DataValueFactory;
5 5
 use SMW\DIProperty;
6 6
 use SMW\Highlighter;
7
-use SMW\Message;
8 7
 
9 8
 /**
10 9
  * Objects of this class represent properties in SMW.
Please login to merge, or discard this patch.
src/DataValues/InfoLinksProvider.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,6 @@  discard block
 block discarded – undo
83 83
 	 *
84 84
 	 * @since 2.4
85 85
 	 *
86
-	 * @param Infolink $link
87 86
 	 */
88 87
 	public function addInfolink( Infolink $infoLink ) {
89 88
 		$this->infoLinks[] = $infoLink;
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
 	/**
93 92
 	 * @since 2.4
94 93
 	 *
95
-	 * @param array|false $serviceLinkParameters
94
+	 * @param boolean $serviceLinkParameters
96 95
 	 */
97 96
 	public function setServiceLinkParameters( $serviceLinkParameters ) {
98 97
 		$this->serviceLinkParameters = $serviceLinkParameters;
Please login to merge, or discard this patch.
includes/storage/SQLStore/SMW_SQLStore3.php 2 patches
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -250,6 +250,9 @@  discard block
 block discarded – undo
250 250
 		return $this->reader;
251 251
 	}
252 252
 
253
+	/**
254
+	 * @return SemanticData
255
+	 */
253 256
 	public function getSemanticData( DIWikiPage $subject, $filter = false ) {
254 257
 
255 258
 		$result = $this->cachedValueLookupStore->getSemanticData(
@@ -261,7 +264,7 @@  discard block
 block discarded – undo
261 264
 	}
262 265
 
263 266
 	/**
264
-	 * @param mixed $subject
267
+	 * @param DIWikiPage $subject
265 268
 	 * @param DIProperty $property
266 269
 	 * @param null $requestOptions
267 270
 	 *
@@ -407,7 +410,7 @@  discard block
 block discarded – undo
407 410
 	/**
408 411
 	 * @param RequestOptions|null $requestOptions
409 412
 	 *
410
-	 * @return CachedListLookup
413
+	 * @return SMW\SQLStore\Lookup\CachedListLookup
411 414
 	 */
412 415
 	public function getPropertiesSpecial( $requestOptions = null ) {
413 416
 		return $this->factory->newPropertyUsageCachedListLookup( $requestOptions );
@@ -416,7 +419,7 @@  discard block
 block discarded – undo
416 419
 	/**
417 420
 	 * @param RequestOptions|null $requestOptions
418 421
 	 *
419
-	 * @return CachedListLookup
422
+	 * @return SMW\SQLStore\Lookup\CachedListLookup
420 423
 	 */
421 424
 	public function getUnusedPropertiesSpecial( $requestOptions = null ) {
422 425
 		return $this->factory->newUnusedPropertyCachedListLookup( $requestOptions );
@@ -425,7 +428,7 @@  discard block
 block discarded – undo
425 428
 	/**
426 429
 	 * @param RequestOptions|null $requestOptions
427 430
 	 *
428
-	 * @return CachedListLookup
431
+	 * @return SMW\SQLStore\Lookup\CachedListLookup
429 432
 	 */
430 433
 	public function getWantedPropertiesSpecial( $requestOptions = null ) {
431 434
 		return $this->factory->newUndeclaredPropertyCachedListLookup( $requestOptions );
@@ -473,7 +476,7 @@  discard block
 block discarded – undo
473 476
 	 *
474 477
 	 * @since 1.8
475 478
 	 * @param Title $concept
476
-	 * @return array of error strings (empty if no errors occurred)
479
+	 * @return string[] of error strings (empty if no errors occurred)
477 480
 	 */
478 481
 	public function refreshConceptCache( Title $concept ) {
479 482
 		return $this->factory->newMasterConceptCache()->refreshConceptCache( $concept );
@@ -515,7 +518,7 @@  discard block
 block discarded – undo
515 518
 	 * @since 1.8
516 519
 	 *
517 520
 	 * @param SMWRequestOptions|null $requestOptions
518
-	 * @param string $valuecol
521
+	 * @param string $valueCol
519 522
 	 *
520 523
 	 * @return array
521 524
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use SMW\DataTypeRegistry;
4 3
 use SMW\DIConcept;
5 4
 use SMW\DIProperty;
6 5
 use SMW\DIWikiPage;
Please login to merge, or discard this patch.
src/SQLStore/QueryDependency/QueryDependencyLinksStore.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -371,6 +371,9 @@
 block discarded – undo
371 371
 		return $id;
372 372
 	}
373 373
 
374
+	/**
375
+	 * @param DIWikiPage $subject
376
+	 */
374 377
 	private function canSuppressUpdateOnSkewFactorFor( $sid, $subject ) {
375 378
 
376 379
 		if ( $sid < 1 ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMW\ApplicationFactory;
6 6
 use SMW\DIProperty;
7 7
 use SMW\DIWikiPage;
8
-use SMW\EventHandler;
9 8
 use SMW\SQLStore\CompositePropertyTableDiffIterator;
10 9
 use SMW\Store;
11 10
 use SMW\RequestOptions;
Please login to merge, or discard this patch.