@@ -76,7 +76,7 @@ |
||
76 | 76 | * |
77 | 77 | * @param array $idList |
78 | 78 | * |
79 | - * @return DIWikiPage[] |
|
79 | + * @return \SMW\Iterators\MappingIterator |
|
80 | 80 | */ |
81 | 81 | public function getDataItemPoolHashListFor( array $idList ) { |
82 | 82 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Iterators\Tests; |
4 | 4 | |
5 | 5 | use SMW\Iterators\ResultIterator; |
6 | -use ArrayIterator; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * @covers \SMW\Iterators\ResultIterator |
@@ -142,6 +142,11 @@ |
||
142 | 142 | return $this->findMatchesWith( '_SUBC', $category->getDBKey(), $category, new RequestOptions() ); |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param string $id |
|
147 | + * @param string $key |
|
148 | + * @param RequestOptions $requestOptions |
|
149 | + */ |
|
145 | 150 | private function findMatchesWith( $id, $key, DIWikiPage $subject, $requestOptions ) { |
146 | 151 | |
147 | 152 | $key = $id . '#' . $key . '#' . $requestOptions->getHash(); |
@@ -34,7 +34,6 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @since 2.0 |
36 | 36 | * |
37 | - * @param SemanticData $semanticData |
|
38 | 37 | * @param RedirectTargetFinder $redirectTargetFinder |
39 | 38 | * |
40 | 39 | * @return RedirectPropertyAnnotator |
@@ -49,7 +48,6 @@ discard block |
||
49 | 48 | /** |
50 | 49 | * @since 2.0 |
51 | 50 | * |
52 | - * @param SemanticData $semanticData |
|
53 | 51 | * @param PageInfo $pageInfo |
54 | 52 | * |
55 | 53 | * @return PredefinedPropertyAnnotator |
@@ -71,7 +69,6 @@ discard block |
||
71 | 69 | /** |
72 | 70 | * @since 2.0 |
73 | 71 | * |
74 | - * @param SemanticData $semanticData |
|
75 | 72 | * @param string $sortkey |
76 | 73 | * |
77 | 74 | * @return SortKeyPropertyAnnotator |
@@ -86,7 +83,6 @@ discard block |
||
86 | 83 | /** |
87 | 84 | * @since 2.4 |
88 | 85 | * |
89 | - * @param SemanticData $semanticData |
|
90 | 86 | * @param string|false $displayTitle |
91 | 87 | * @param string $defaultSort |
92 | 88 | * |
@@ -110,7 +106,6 @@ discard block |
||
110 | 106 | /** |
111 | 107 | * @since 2.0 |
112 | 108 | * |
113 | - * @param SemanticData $semanticData |
|
114 | 109 | * @param array $categories |
115 | 110 | * |
116 | 111 | * @return CategoryPropertyAnnotator |
@@ -140,7 +135,6 @@ discard block |
||
140 | 135 | /** |
141 | 136 | * @since 2.2 |
142 | 137 | * |
143 | - * @param SemanticData $semanticData |
|
144 | 138 | * |
145 | 139 | * @return MandatoryTypePropertyAnnotator |
146 | 140 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\SQLStoreFactory; |
6 | -use SMW\Store; |
|
7 | 6 | use SMWSQLStore3; |
8 | 7 | |
9 | 8 | /** |
@@ -191,6 +191,12 @@ |
||
191 | 191 | return true; |
192 | 192 | } |
193 | 193 | |
194 | + /** |
|
195 | + * @param string $property |
|
196 | + * @param RequestOptions $requestOptions |
|
197 | + * |
|
198 | + * @return \SMWRequestOptions|null |
|
199 | + */ |
|
194 | 200 | private function doModifyRequestOptionsWith( $property, $requestOptions ) { |
195 | 201 | |
196 | 202 | if ( $property === '' ) { |
@@ -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(); |