Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
tests/phpunit/TestEnvironment.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	/**
184 184
 	 * @since 2.5
185 185
 	 *
186
-	 * @param $originalClassName
186
+	 * @param string $originalClassName
187 187
 	 * @param array $configuration
188 188
 	 *
189 189
 	 * @return PHPUnit_Framework_MockObject_MockObject
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 * @since 2.5
229 229
 	 *
230 230
 	 * @param integer $index
231
-	 * @param string $url
231
+	 * @param string $text
232 232
 	 *
233 233
 	 * @return string
234 234
 	 */
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\DataValueFactory;
7 7
 use SMW\DeferredCallableUpdate;
8
-use SMW\Store;
9 8
 use SMW\Localizer;
10 9
 use SMW\Tests\Utils\UtilityFactory;
11 10
 use SMW\Tests\Utils\Mock\ConfigurableStub;
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_Property.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -307,6 +307,7 @@  discard block
 block discarded – undo
307 307
 	/**
308 308
 	 * @since  2.0
309 309
 	 *
310
+	 * @param string $propertyTypeId
310 311
 	 * @return self
311 312
 	 * @throws PropertyDataTypeLookupExeption
312 313
 	 * @throws InvalidArgumentException
@@ -460,6 +461,7 @@  discard block
 block discarded – undo
460 461
 
461 462
 	/**
462 463
 	 * @deprecated since 2.1, use PropertyRegistry::findPropertyIdByLabel
464
+	 * @param string $label
463 465
 	 */
464 466
 	public static function findPropertyID( $label, $useAlias = true ) {
465 467
 		return PropertyRegistry::getInstance()->findPropertyIdByLabel( $label, $useAlias );
@@ -493,6 +495,9 @@  discard block
 block discarded – undo
493 495
 		PropertyRegistry::getInstance()->registerPropertyAlias( $id, $label );
494 496
 	}
495 497
 
498
+	/**
499
+	 * @param string $subobjectName
500
+	 */
496 501
 	private function newDIWikiPage( $dbkey, $subobjectName ) {
497 502
 
498 503
 		// If an inverse marker is present just omit the marker so a normal
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_Time.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	 *
336 336
 	 * @param string $timestamp must be in format
337 337
 	 *
338
-	 * @return SMWDITime|false
338
+	 * @return SMWDataItem
339 339
 	 */
340 340
 	public static function newFromTimestamp( $timestamp ) {
341 341
 		$timestamp = wfTimestamp( TS_MW, (string)$timestamp );
@@ -508,10 +508,10 @@  discard block
 block discarded – undo
508 508
 	 * calendar model, presicion.
509 509
 	 *
510 510
 	 * @param double $jdValue
511
-	 * @param integer|null $calendarmodel
511
+	 * @param integer|null $calendarModel
512 512
 	 * @param integer|null $precision
513 513
 	 *
514
-	 * @return DITime object
514
+	 * @return SMWDITime object
515 515
 	 */
516 516
 	public static function newFromJD( $jdValue, $calendarModel = null, $precision = null, $timezone = false ) {
517 517
 
@@ -593,6 +593,11 @@  discard block
 block discarded – undo
593 593
 		return $this->m_day > self::getDayNumberForMonth( $this->m_month, $this->m_year, $this->m_model );
594 594
 	}
595 595
 
596
+	/**
597
+	 * @param boolean $month
598
+	 * @param boolean $day
599
+	 * @param boolean $hour
600
+	 */
596 601
 	private function setPrecisionLevelBy( $month, $day, $hour ) {
597 602
 		if ( $month === false ) {
598 603
 			$this->m_precision = self::PREC_Y;
Please login to merge, or discard this patch.
includes/datavalues/SMW_DataValue.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * @defgroup SMWDataValues SMWDataValues
8 8
  * @ingroup SMW
9 9
  */
10
-use SMW\ApplicationFactory;
11 10
 use SMW\DataValues\InfoLinksProvider;
12 11
 use SMW\DataValues\ValueFormatterRegistry;
13 12
 use SMW\DataValues\ValueValidatorRegistry;
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 * label for printout might also be specified.
169 169
 	 *
170 170
 	 * @param string $value
171
-	 * @param mixed $caption
171
+	 * @param boolean $caption
172 172
 	 */
173 173
 	public function setUserValue( $value, $caption = false ) {
174 174
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	/**
264 264
 	 * @since 2.4
265 265
 	 *
266
-	 * @return DIWikiPage|null
266
+	 * @return SMWDIWikiPage
267 267
 	 */
268 268
 	public function getContextPage() {
269 269
 		return $this->m_contextPage;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 	 *
306 306
 	 * @param string $key
307 307
 	 *
308
-	 * @return mixed|false
308
+	 * @return string|false
309 309
 	 */
310 310
 	public function getOption( $key ) {
311 311
 
@@ -340,7 +340,6 @@  discard block
 block discarded – undo
340 340
 	/**
341 341
 	 * @since 2.4
342 342
 	 *
343
-	 * @param string $caption
344 343
 	 */
345 344
 	public function getCaption() {
346 345
 		return $this->m_caption;
@@ -427,7 +426,6 @@  discard block
 block discarded – undo
427 426
 	 *
428 427
 	 * @param $parameters
429 428
 	 * @param integer|null $type
430
-	 * @param integer|null $language
431 429
 	 */
432 430
 	public function addErrorMsg( $parameters, $type = null ) {
433 431
 		$this->mErrors[Message::getHash( $parameters, $type )] = Message::encode( $parameters, $type );
@@ -486,7 +484,7 @@  discard block
 block discarded – undo
486 484
 	 *
487 485
 	 * @param string $value
488 486
 	 *
489
-	 * @return Description
487
+	 * @return SMW\Query\Language\Description
490 488
 	 * @throws InvalidArgumentException
491 489
 	 */
492 490
 	public function getQueryDescription( $value ) {
@@ -507,7 +505,7 @@  discard block
 block discarded – undo
507 505
 	 *
508 506
 	 * @since 2.4
509 507
 	 *
510
-	 * @return DataValueFormatter
508
+	 * @return SMW\DataValues\ValueFormatters\DataValueFormatter
511 509
 	 */
512 510
 	public function getDataValueFormatter() {
513 511
 		return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this );
@@ -591,6 +589,7 @@  discard block
 block discarded – undo
591 589
 	 *
592 590
 	 * The parameter $linked controls linking of values such as titles and should
593 591
 	 * be non-NULL and non-false if this is desired.
592
+	 * @return string
594 593
 	 */
595 594
 	abstract public function getLongWikiText( $linked = null );
596 595
 
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 getWikiValueByLengthOf( $length ) {
100 103
 
101 104
 		if ( mb_strlen( $this->getWikiValue() ) > $length ) {
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_URI.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	private $showUrlContextInRawFormat = true;
47 47
 
48
+	/**
49
+	 * @param string $typeid
50
+	 */
48 51
 	public function __construct( $typeid ) {
49 52
 		parent::__construct( $typeid );
50 53
 		switch ( $typeid ) {
@@ -182,6 +185,7 @@  discard block
 block discarded – undo
182 185
 	 * Returns true if the argument is a valid RFC 3966 phone number.
183 186
 	 * Only global phone numbers are supported, and no full validation
184 187
 	 * of parameters (appended via ;param=value) is performed.
188
+	 * @param string $s
185 189
 	 */
186 190
 	protected static function isValidTelURI( $s ) {
187 191
 		$tel_uri_regex = '<^tel:\+[0-9./-]*[0-9][0-9./-]*(;[0-9a-zA-Z-]+=(%[0-9a-zA-Z][0-9a-zA-Z]|[0-9a-zA-Z._~:/?#[\]@!$&\'()*+,;=-])*)*$>';
@@ -340,6 +344,9 @@  discard block
 block discarded – undo
340 344
 		return str_replace( ':', '&#58;', $url );
341 345
 	}
342 346
 
347
+	/**
348
+	 * @param string $context
349
+	 */
343 350
 	private function decodeUriContext( $context, $linker ) {
344 351
 
345 352
 		// Prior to decoding turn any `-` into an internal representation to avoid
Please login to merge, or discard this patch.
includes/query/SMW_QueryParser.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@  discard block
 block discarded – undo
142 142
 	 * but just controls query generation. For general effect, the default namespaces
143 143
 	 * should be set to NULL.
144 144
 	 *
145
+	 * @param boolean $setNS
145 146
 	 * @return Description|null
146 147
 	 */
147 148
 	private function getSubqueryDescription( &$setNS ) {
@@ -250,6 +251,7 @@  discard block
 block discarded – undo
250 251
 	 * be the content of "[[ ... ]]". Returns NULL upon error.
251 252
 	 *
252 253
 	 * Parameters $setNS has the same use as in getSubqueryDescription().
254
+	 * @param boolean $setNS
253 255
 	 */
254 256
 	private function getLinkDescription( &$setNS ) {
255 257
 		// This method is called when we encountered an opening '[['. The following
@@ -433,6 +435,7 @@  discard block
 block discarded – undo
433 435
 	 * a category or property) and create a suitable description.
434 436
 	 * The first chunk behind the "[[" has already been read and is
435 437
 	 * passed as a parameter.
438
+	 * @param string $firstChunk
436 439
 	 */
437 440
 	private function getArticleDescription( $firstChunk, &$setNS ) {
438 441
 		$chunk = $firstChunk;
@@ -478,6 +481,10 @@  discard block
 block discarded – undo
478 481
 		return $this->finishLinkDescription( $chunk, true, $result, $setNS );
479 482
 	}
480 483
 
484
+	/**
485
+	 * @param boolean $hasNamespaces
486
+	 * @param Description|null $result
487
+	 */
481 488
 	private function finishLinkDescription( $chunk, $hasNamespaces, $result, &$setNS ) {
482 489
 		if ( is_null( $result ) ) { // no useful information or concrete error found
483 490
 			$this->descriptionProcessor->addErrorWithMsgKey( 'smw_unexpectedpart', $chunk ); // was smw_badqueryatom
@@ -574,6 +581,7 @@  discard block
 block discarded – undo
574 581
 	/**
575 582
 	 * Enter a new subblock in the query, which must at some time be terminated by the
576 583
 	 * given $endstring delimiter calling popDelimiter();
584
+	 * @param string $endstring
577 585
 	 */
578 586
 	private function pushDelimiter( $endstring ) {
579 587
 		array_push( $this->separatorStack, $endstring );
@@ -583,6 +591,7 @@  discard block
 block discarded – undo
583 591
 	 * Exit a subblock in the query ending with the given delimiter.
584 592
 	 * If the delimiter does not match the top-most open block, false
585 593
 	 * will be returned. Otherwise return true.
594
+	 * @param string $endstring
586 595
 	 */
587 596
 	private function popDelimiter( $endstring ) {
588 597
 		$topdelim = array_pop( $this->separatorStack );
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
@@ -224,6 +224,10 @@
 block discarded – undo
224 224
 		return ByLanguageCollationMapper::getInstance()->findFirstLetterForCategory( $sortKey );
225 225
 	}
226 226
 
227
+	/**
228
+	 * @param SMWQueryResult $res
229
+	 * @param boolean $first_col
230
+	 */
227 231
 	private function addRowFieldsToTemplate( $res, $row, &$first_col, $templateRenderer ) {
228 232
 
229 233
 		// explicitly number parameters for more robust parsing (values may contain "=")
Please login to merge, or discard this patch.
includes/specials/SpecialConcepts.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 * @param integer $from
41 41
 	 * @param integer $until
42 42
 	 *
43
-	 * @return DIWikiPage[]
43
+	 * @return \SMWDIWikiPage[]
44 44
 	 */
45 45
 	public function getResults( $limit, $from, $until ) {
46 46
 		$description = new NamespaceDescription( SMW_NS_CONCEPT );
Please login to merge, or discard this patch.