@@ -168,7 +168,7 @@ discard block |
||
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 |
||
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 |
||
305 | 305 | * |
306 | 306 | * @param string $key |
307 | 307 | * |
308 | - * @return mixed|false |
|
308 | + * @return string|false |
|
309 | 309 | */ |
310 | 310 | public function getOptionBy( $key ) { |
311 | 311 | |
@@ -340,7 +340,6 @@ discard block |
||
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 |
||
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::encode( $parameters, $type ); |
@@ -484,7 +482,7 @@ discard block |
||
484 | 482 | * |
485 | 483 | * @param string|null $value |
486 | 484 | * |
487 | - * @return Description |
|
485 | + * @return SMW\Query\Language\Description |
|
488 | 486 | * @throws InvalidArgumentException |
489 | 487 | */ |
490 | 488 | public function getQueryDescription( $value = null ) { |
@@ -510,7 +508,7 @@ discard block |
||
510 | 508 | * |
511 | 509 | * @since 2.4 |
512 | 510 | * |
513 | - * @return DataValueFormatter |
|
511 | + * @return SMW\DataValues\ValueFormatters\DataValueFormatter |
|
514 | 512 | */ |
515 | 513 | public function getDataValueFormatter() { |
516 | 514 | return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this ); |
@@ -594,6 +592,7 @@ discard block |
||
594 | 592 | * |
595 | 593 | * The parameter $linked controls linking of values such as titles and should |
596 | 594 | * be non-NULL and non-false if this is desired. |
595 | + * @return string |
|
597 | 596 | */ |
598 | 597 | abstract public function getLongWikiText( $linked = null ); |
599 | 598 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests; |
4 | 4 | |
5 | 5 | use SMW\CacheFactory; |
6 | -use SMW\ApplicationFactory; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\CacheFactory |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\DataValues\ValueValidators; |
4 | 4 | |
5 | -use SMW\DataValueFactory; |
|
6 | 5 | use SMW\ApplicationFactory; |
7 | 6 | use SMWDataValue as DataValue; |
8 | 7 | use SMWDIBlob as DIBlob; |
@@ -82,6 +82,10 @@ |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $pattern |
|
87 | + * @param string $reference |
|
88 | + */ |
|
85 | 89 | private function doPregMatch( $pattern, $dataValue, $reference ) { |
86 | 90 | |
87 | 91 | // Convert escaping as in /\d{4} |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | return self::getHTMLText( $printRequest, $linker ); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param $printRequest |
|
45 | + */ |
|
43 | 46 | private static function getHTMLText( $printRequest, $linker = null ) { |
44 | 47 | |
45 | 48 | $label = htmlspecialchars( $printRequest->getLabel() ); |
@@ -62,6 +65,9 @@ discard block |
||
62 | 65 | } |
63 | 66 | } |
64 | 67 | |
68 | + /** |
|
69 | + * @param $printRequest |
|
70 | + */ |
|
65 | 71 | private static function getWikiText( $printRequest, $linker = false ) { |
66 | 72 | |
67 | 73 | $label = $printRequest->getLabel(); |
@@ -49,6 +49,10 @@ discard block |
||
49 | 49 | return ''; // no current serialisation |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param $printRequest |
|
54 | + * @param string $parameters |
|
55 | + */ |
|
52 | 56 | private static function doSerializeCat( $printRequest, $parameters ) { |
53 | 57 | |
54 | 58 | $catlabel = Localizer::getInstance()->getNamespaceTextById( NS_CATEGORY ); |
@@ -61,6 +65,10 @@ discard block |
||
61 | 65 | return $result . $parameters; |
62 | 66 | } |
63 | 67 | |
68 | + /** |
|
69 | + * @param $printRequest |
|
70 | + * @param string $parameters |
|
71 | + */ |
|
64 | 72 | private static function doSerializeCcat( $printRequest, $parameters ) { |
65 | 73 | |
66 | 74 | $printname = $printRequest->getData()->getPrefixedText(); |
@@ -77,6 +85,10 @@ discard block |
||
77 | 85 | return $result . $parameters; |
78 | 86 | } |
79 | 87 | |
88 | + /** |
|
89 | + * @param $printRequest |
|
90 | + * @param string $parameters |
|
91 | + */ |
|
80 | 92 | private static function doSerializeProp( $printRequest, $parameters ) { |
81 | 93 | |
82 | 94 | $printname = ''; |
@@ -106,6 +118,10 @@ discard block |
||
106 | 118 | return $result . $parameters; |
107 | 119 | } |
108 | 120 | |
121 | + /** |
|
122 | + * @param $printRequest |
|
123 | + * @param string $parameters |
|
124 | + */ |
|
109 | 125 | private static function doSerializeThis( $printRequest, $parameters ) { |
110 | 126 | |
111 | 127 | $result = '?'; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use SMWDIError as DIError; |
10 | 10 | use SMWDINumber as DINumber; |
11 | 11 | use SMWDIUri as DIUri; |
12 | -use SMWDITime as DITime; |
|
12 | +use SMWDITime as DITime; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @private |
@@ -136,8 +136,8 @@ |
||
136 | 136 | * |
137 | 137 | * @param integer $calendarmodel |
138 | 138 | * @param integer $year |
139 | - * @param integer|false $month |
|
140 | - * @param integer|false $day |
|
139 | + * @param integer $month |
|
140 | + * @param integer $day |
|
141 | 141 | * @param integer|false $hour |
142 | 142 | * @param integer|false $minute |
143 | 143 | * @param integer|false $second |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * @since 2.5 |
61 | 61 | * |
62 | 62 | * @param DescriptionFactory|null $descriptionFactory |
63 | - * @param DataItemFactory|null $dataItemFactory |
|
63 | + * @param null|DescriptionFactory $dataItemFactory |
|
64 | 64 | */ |
65 | 65 | public function __construct( DescriptionFactory $descriptionFactory = null, DescriptionFactory $dataItemFactory = null ) { |
66 | 66 | $this->descriptionFactory = $descriptionFactory; |
@@ -77,6 +77,10 @@ |
||
77 | 77 | return $description; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param DIWikiPage $dataItem |
|
82 | + * @param ValueDescription $description |
|
83 | + */ |
|
80 | 84 | private function findApproriateDescription( $comparator, $dataItem, $description ) { |
81 | 85 | |
82 | 86 | $value = $dataItem->getDBKey(); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Deserializers\DVDescriptionDeserializer; |
4 | 4 | |
5 | 5 | use InvalidArgumentException; |
6 | -use SMW\Query\Language\ThingDescription; |
|
7 | 6 | use SMW\Query\Language\ValueDescription; |
8 | 7 | use SMWDataValue as DataValue; |
9 | 8 | use SMW\DIWikiPage; |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * |
328 | 328 | * @param string $timestamp must be in format |
329 | 329 | * |
330 | - * @return SMWDITime|false |
|
330 | + * @return SMWDataItem |
|
331 | 331 | */ |
332 | 332 | public static function newFromTimestamp( $timestamp ) { |
333 | 333 | $timestamp = wfTimestamp( TS_MW, (string)$timestamp ); |
@@ -494,10 +494,10 @@ discard block |
||
494 | 494 | * calendar model, presicion. |
495 | 495 | * |
496 | 496 | * @param double $jdValue |
497 | - * @param integer|null $calendarmodel |
|
497 | + * @param integer|null $calendarModel |
|
498 | 498 | * @param integer|null $precision |
499 | 499 | * |
500 | - * @return DITime object |
|
500 | + * @return SMWDITime object |
|
501 | 501 | */ |
502 | 502 | public static function newFromJD( $jdValue, $calendarModel = null, $precision = null ) { |
503 | 503 | |
@@ -579,6 +579,11 @@ discard block |
||
579 | 579 | return $this->m_day > self::getDayNumberForMonth( $this->m_month, $this->m_year, $this->m_model ); |
580 | 580 | } |
581 | 581 | |
582 | + /** |
|
583 | + * @param boolean $month |
|
584 | + * @param boolean $day |
|
585 | + * @param boolean $hour |
|
586 | + */ |
|
582 | 587 | private function setPrecisionLevelBy( $month, $day, $hour ) { |
583 | 588 | if ( $month === false ) { |
584 | 589 | $this->m_precision = self::PREC_Y; |