@@ -120,6 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * @since 2.2 |
122 | 122 | * |
123 | + * @param string $version |
|
123 | 124 | * @return boolean |
124 | 125 | */ |
125 | 126 | public function requiredToSkipForJsonVersion( $version ) { |
@@ -305,6 +306,11 @@ discard block |
||
305 | 306 | } ); |
306 | 307 | } |
307 | 308 | |
309 | + /** |
|
310 | + * @param string $index |
|
311 | + * |
|
312 | + * @return string |
|
313 | + */ |
|
308 | 314 | private function getFileContentsFor( $index ) { |
309 | 315 | |
310 | 316 | $contents = $this->fileReader->read(); |
@@ -5,9 +5,6 @@ |
||
5 | 5 | use SMW\DIWikiPage; |
6 | 6 | use SMW\Localizer; |
7 | 7 | use SMW\Tests\MwDBaseUnitTestCase; |
8 | -use SMW\Tests\Utils\UtilityFactory; |
|
9 | -use SMW\Tests\TestEnvironment; |
|
10 | -use Title; |
|
11 | 8 | |
12 | 9 | /** |
13 | 10 | * @group SMW |
@@ -90,8 +90,8 @@ |
||
90 | 90 | /** |
91 | 91 | * @see EntityLookup::getInProperties |
92 | 92 | * |
93 | - * @param DataItem $object |
|
94 | - * @param RequestOptions|null $requestOptions |
|
93 | + * @param SMWDataItem $object |
|
94 | + * @param RequestOptions|null $requestoptions |
|
95 | 95 | * |
96 | 96 | * @return DataItem[]|[] |
97 | 97 | */ |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use SMW\DataTypeRegistry; |
|
4 | 3 | use SMW\DIConcept; |
5 | 4 | use SMW\DIProperty; |
6 | 5 | use SMW\DIWikiPage; |
@@ -198,12 +198,15 @@ discard block |
||
198 | 198 | return $this->reader; |
199 | 199 | } |
200 | 200 | |
201 | + /** |
|
202 | + * @return SemanticData |
|
203 | + */ |
|
201 | 204 | public function getSemanticData( DIWikiPage $subject, $filter = false ) { |
202 | 205 | return $this->getEntityLookup()->getSemanticData( $subject, $filter ); |
203 | 206 | } |
204 | 207 | |
205 | 208 | /** |
206 | - * @param mixed $subject |
|
209 | + * @param DIWikiPage $subject |
|
207 | 210 | * @param DIProperty $property |
208 | 211 | * @param null $requestOptions |
209 | 212 | * |
@@ -334,7 +337,7 @@ discard block |
||
334 | 337 | /** |
335 | 338 | * @param RequestOptions|null $requestOptions |
336 | 339 | * |
337 | - * @return CachedListLookup |
|
340 | + * @return SMW\SQLStore\Lookup\CachedListLookup |
|
338 | 341 | */ |
339 | 342 | public function getPropertiesSpecial( $requestOptions = null ) { |
340 | 343 | return $this->factory->newPropertyUsageCachedListLookup( $requestOptions ); |
@@ -343,7 +346,7 @@ discard block |
||
343 | 346 | /** |
344 | 347 | * @param RequestOptions|null $requestOptions |
345 | 348 | * |
346 | - * @return CachedListLookup |
|
349 | + * @return SMW\SQLStore\Lookup\CachedListLookup |
|
347 | 350 | */ |
348 | 351 | public function getUnusedPropertiesSpecial( $requestOptions = null ) { |
349 | 352 | return $this->factory->newUnusedPropertyCachedListLookup( $requestOptions ); |
@@ -352,7 +355,7 @@ discard block |
||
352 | 355 | /** |
353 | 356 | * @param RequestOptions|null $requestOptions |
354 | 357 | * |
355 | - * @return CachedListLookup |
|
358 | + * @return SMW\SQLStore\Lookup\CachedListLookup |
|
356 | 359 | */ |
357 | 360 | public function getWantedPropertiesSpecial( $requestOptions = null ) { |
358 | 361 | return $this->factory->newUndeclaredPropertyCachedListLookup( $requestOptions ); |
@@ -445,7 +448,7 @@ discard block |
||
445 | 448 | * @since 1.8 |
446 | 449 | * |
447 | 450 | * @param SMWRequestOptions|null $requestOptions |
448 | - * @param string $valuecol |
|
451 | + * @param string $valueCol |
|
449 | 452 | * |
450 | 453 | * @return array |
451 | 454 | */ |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @since 2.5 |
28 | 28 | * |
29 | 29 | * @param DIWikiPage $subject |
30 | - * @param string[]|bool $filter |
|
30 | + * @param boolean $filter |
|
31 | 31 | * |
32 | 32 | * @return SemanticData |
33 | 33 | */ |
@@ -70,7 +70,6 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @since 2.5 |
72 | 72 | * |
73 | - * @param DIWikiPage|null $subject |
|
74 | 73 | * @param DIProperty $property |
75 | 74 | * @param RequestOptions|null $requestOptions |
76 | 75 | * |
@@ -110,6 +109,7 @@ discard block |
||
110 | 109 | * @since 2.5 |
111 | 110 | * |
112 | 111 | * @param DIWikiPage|null $subject |
112 | + * @return void |
|
113 | 113 | */ |
114 | 114 | public function resetCacheBy( DIWikiPage $subject = null ); |
115 | 115 |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this->handlers[$type] = $this->newHandlerByType( $type ); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $type |
|
63 | + */ |
|
61 | 64 | private function newHandlerByType( $type ) { |
62 | 65 | |
63 | 66 | switch ( $type ) { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @param Parser $parser |
182 | 182 | * |
183 | - * @return SubobjectParserFunction |
|
183 | + * @return SubobjectParserFunc |
|
184 | 184 | */ |
185 | 185 | public function newSubobjectParserFunction( Parser $parser ) { |
186 | 186 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | * |
210 | 210 | * @param Parser $parser |
211 | 211 | * |
212 | - * @return RecurringEventsParserFunction |
|
212 | + * @return RecurringEventsParserFunc |
|
213 | 213 | */ |
214 | 214 | public function newRecurringEventsParserFunction( Parser $parser ) { |
215 | 215 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @note All strings given must be usable and safe in wiki and HTML |
22 | 22 | * contexts. |
23 | 23 | * |
24 | - * @param $storeName string name of the storage backend for which this is generated |
|
24 | + * @param string $storeName string name of the storage backend for which this is generated |
|
25 | 25 | * @param $entries array of name => value of informative entries to display |
26 | 26 | * @param $query SMWQuery or null, if given add basic data about this query as well |
27 | 27 | * |
@@ -72,7 +72,6 @@ discard block |
||
72 | 72 | * @since 2.5 |
73 | 73 | * |
74 | 74 | * @param string $type |
75 | - * @param array $rows |
|
76 | 75 | * |
77 | 76 | * @return string |
78 | 77 | */ |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * the provided name is not allowed. An object is returned |
83 | 83 | * in any case. |
84 | 84 | * |
85 | - * @param string $propertyName |
|
85 | + * @param string $propertyLabel |
|
86 | 86 | * |
87 | 87 | * @return SMWPropertyValue |
88 | 88 | */ |
@@ -247,6 +247,9 @@ discard block |
||
247 | 247 | } |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param boolean $isinverse |
|
252 | + */ |
|
250 | 253 | public function setInverse( $isinverse ) { |
251 | 254 | return $this->m_dataitem = new DIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) ); |
252 | 255 | } |
@@ -448,6 +451,9 @@ discard block |
||
448 | 451 | return $this->m_dataitem->getLabel(); |
449 | 452 | } |
450 | 453 | |
454 | + /** |
|
455 | + * @param string $value |
|
456 | + */ |
|
451 | 457 | private function doNormalizeUserValue( $value ) { |
452 | 458 | |
453 | 459 | if ( |
@@ -4,8 +4,6 @@ |
||
4 | 4 | use SMW\DataValues\ValueFormatters\DataValueFormatter; |
5 | 5 | use SMW\DataValueFactory; |
6 | 6 | use SMW\DIProperty; |
7 | -use SMW\Highlighter; |
|
8 | -use SMW\Message; |
|
9 | 7 | |
10 | 8 | /** |
11 | 9 | * Objects of this class represent properties in SMW. |