@@ -158,6 +158,9 @@ |
||
158 | 158 | ); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param Description $description |
|
163 | + */ |
|
161 | 164 | private function findCircularDescription( $concept, &$description ) { |
162 | 165 | |
163 | 166 | if ( $description instanceof ConceptDescription ) { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * rdfs, property, xsd, so these do not have to be included in |
150 | 150 | * $extraNamespaces. |
151 | 151 | * |
152 | - * @param $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
152 | + * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
153 | 153 | * @param $where string WHERE part of the query, without surrounding { } |
154 | 154 | * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' ) |
155 | 155 | * @param $extraNamespaces array (associative) of namespaceId => namespaceUri |
@@ -566,8 +566,8 @@ discard block |
||
566 | 566 | } |
567 | 567 | |
568 | 568 | /** |
569 | - * @param $endpoint string URL of endpoint that was used |
|
570 | - * @param $sparql string query that caused the problem |
|
569 | + * @param string|false $endpoint string URL of endpoint that was used |
|
570 | + * @param string $sparql string query that caused the problem |
|
571 | 571 | */ |
572 | 572 | protected function mapHttpRequestError( $endpoint, $sparql ) { |
573 | 573 | |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | * |
584 | 584 | * @param integer $timeout |
585 | 585 | * |
586 | - * @return SparqlDatabase |
|
586 | + * @return GenericHttpRepositoryConnector |
|
587 | 587 | */ |
588 | 588 | public function setConnectionTimeoutInSeconds( $timeout = 10 ) { |
589 | 589 | $this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout ); |
@@ -46,6 +46,10 @@ |
||
46 | 46 | * @param SemanticDataValidator |
47 | 47 | * @param IncomingSemanticDataValidator |
48 | 48 | * @param StringValidator |
49 | + * @param \SMW\Store $store |
|
50 | + * @param \SMW\Tests\Utils\Validators\SemanticDataValidator $semanticDataValidator |
|
51 | + * @param \SMW\Tests\Utils\Validators\IncomingSemanticDataValidator $incomingSemanticDataValidator |
|
52 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
49 | 53 | */ |
50 | 54 | public function __construct( $store, $semanticDataValidator, $incomingSemanticDataValidator, $stringValidator ) { |
51 | 55 | $this->store = $store; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW; |
4 | 4 | |
5 | -use MWException; |
|
6 | 5 | use SMWContainerSemanticData; |
7 | 6 | use SMWDataItem; |
8 | 7 | use SMWDataValue; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * output, then the Semdata container will at least look as if properly |
180 | 180 | * initialised (though empty). |
181 | 181 | * |
182 | - * @return array |
|
182 | + * @return string[] |
|
183 | 183 | */ |
184 | 184 | public function __sleep() { |
185 | 185 | return array( 'mSubject', 'mPropVals', 'mProperties', 'subSemanticData', 'mHasVisibleProps', 'mHasVisibleSpecs', 'options' ); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * |
239 | 239 | * @param string $key |
240 | 240 | * |
241 | - * @return mixed |
|
241 | + * @return string|null |
|
242 | 242 | */ |
243 | 243 | public function getOption( $key ) { |
244 | 244 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * |
314 | 314 | * @since 1.8 |
315 | 315 | * |
316 | - * @return ContainerSemanticData[] |
|
316 | + * @return SemanticData[] |
|
317 | 317 | */ |
318 | 318 | public function getSubSemanticData() { |
319 | 319 | |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * Store a value for a given property identified by its text label |
432 | 432 | * (without namespace prefix). |
433 | 433 | * |
434 | - * @param $propertyName string |
|
434 | + * @param string $propertyName string |
|
435 | 435 | * @param $dataItem SMWDataItem |
436 | 436 | */ |
437 | 437 | public function addPropertyValue( $propertyName, SMWDataItem $dataItem ) { |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | * @see SubSemanticData::hasSubSemanticData |
689 | 689 | * @since 1.9 |
690 | 690 | * |
691 | - * @param string $subobjectName|null |
|
691 | + * @param string $subobjectName |
|
692 | 692 | * |
693 | 693 | * @return boolean |
694 | 694 | */ |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | * |
703 | 703 | * @param string $subobjectName |
704 | 704 | * |
705 | - * @return SMWContainerSemanticData|null |
|
705 | + * @return SemanticData|null |
|
706 | 706 | */ |
707 | 707 | public function findSubSemanticData( $subobjectName ) { |
708 | 708 | return $this->subSemanticData->findSubSemanticData( $subobjectName ); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\SQLStore; |
4 | 4 | |
5 | -use MWException; |
|
6 | 5 | use SMW\MediaWiki\Database; |
7 | 6 | use SMW\Store\PropertyStatisticsStore; |
8 | 7 | use SMW\SQLStore\Exception\PropertyStatisticsInvalidArgumentException; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * |
247 | 247 | * @since 1.9 |
248 | 248 | * |
249 | - * @param array $propertyIds |
|
249 | + * @param integer[] $propertyIds |
|
250 | 250 | * |
251 | 251 | * @return array |
252 | 252 | */ |
@@ -294,6 +294,9 @@ discard block |
||
294 | 294 | ); |
295 | 295 | } |
296 | 296 | |
297 | + /** |
|
298 | + * @param string $message |
|
299 | + */ |
|
297 | 300 | private function log( $message, $context = array() ) { |
298 | 301 | |
299 | 302 | if ( $this->logger === null ) { |
@@ -2,13 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Exporter\ResourceBuilders; |
4 | 4 | |
5 | -use SMW\Exporter\ResourceBuilder; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMWExporter as Exporter; |
8 | -use SMW\DataValueFactory; |
|
9 | 7 | use SMWDataItem as DataItem; |
10 | 8 | use SMWExpData as ExpData; |
11 | -use SMWExpLiteral as ExpLiteral; |
|
12 | 9 | |
13 | 10 | /** |
14 | 11 | * @private |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * |
115 | 115 | * @since 2.5 |
116 | 116 | * |
117 | - * @param string|null $queue |
|
117 | + * @param string $fingerprint |
|
118 | 118 | */ |
119 | 119 | public function setFingerprint( $fingerprint = null ) { |
120 | 120 | $this->fingerprint = md5( $fingerprint ); |
@@ -187,6 +187,9 @@ discard block |
||
187 | 187 | $this->doUpdate(); |
188 | 188 | } |
189 | 189 | |
190 | + /** |
|
191 | + * @param string $message |
|
192 | + */ |
|
190 | 193 | private function log( $message, $context = array() ) { |
191 | 194 | |
192 | 195 | if ( $this->logger === null ) { |
@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | * @since 2.2 |
43 | 43 | * |
44 | 44 | * @param Store $store |
45 | + * @param \SMW\Tests\Utils\Validators\QueryResultValidator $queryResultValidator |
|
46 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
47 | + * @param \SMW\Tests\Utils\Validators\NumberValidator $numberValidator |
|
45 | 48 | */ |
46 | 49 | public function __construct( Store $store, $queryResultValidator, $stringValidator, $numberValidator ) { |
47 | 50 | $this->store = $store; |
@@ -243,6 +246,9 @@ discard block |
||
243 | 246 | ); |
244 | 247 | } |
245 | 248 | |
249 | + /** |
|
250 | + * @param string $about |
|
251 | + */ |
|
246 | 252 | private function printDescriptionToOutput( $about, $description ) { |
247 | 253 | |
248 | 254 | if ( !$this->debug ) { |
@@ -253,6 +259,9 @@ discard block |
||
253 | 259 | print_r( $description ); |
254 | 260 | } |
255 | 261 | |
262 | + /** |
|
263 | + * @param \SMWQueryResult $queryResult |
|
264 | + */ |
|
256 | 265 | private function printQueryResultToOutput( $queryResult ) { |
257 | 266 | |
258 | 267 | if ( is_string( $queryResult ) ) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param DIWikiPage $subject |
58 | 58 | * |
59 | - * @return Iterator |
|
59 | + * @return \SMW\Iterators\MappingIterator |
|
60 | 60 | */ |
61 | 61 | public function newListIteratorFor( DIWikiPage $subject, $skipOn = array() ) { |
62 | 62 | $this->skipOn = $skipOn; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @since 2.5 |
72 | 72 | * |
73 | - * @return Iterator |
|
73 | + * @return \SMW\Iterators\MappingIterator |
|
74 | 74 | */ |
75 | 75 | public function getIterator() { |
76 | 76 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @param DIWikiPage $subject |
91 | 91 | * |
92 | - * @return MappingIterator |
|
92 | + * @return \SMW\Iterators\MappingIterator |
|
93 | 93 | */ |
94 | 94 | private function newMappingIterator( DIWikiPage $subject ) { |
95 | 95 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\IteratorFactory; |
6 | 6 | use SMW\DIProperty; |
7 | 7 | use SMW\DIWikiPage; |
8 | -use SMWDataItem as DataItem; |
|
9 | 8 | use SMW\SQLStore\SQLStore; |
10 | 9 | use IteratorAggregate; |
11 | 10 | use RuntimeException; |