@@ -52,7 +52,7 @@ |
||
52 | 52 | * @since 1.6 |
53 | 53 | * |
54 | 54 | * @param ExpNsResource $expNsResource string URI to check |
55 | - * @param boolean $existsthat is set to true if $expNsResource is in the |
|
55 | + * @param boolean|null $exists is set to true if $expNsResource is in the |
|
56 | 56 | * store; always false for blank nodes; always true for subobjects |
57 | 57 | * |
58 | 58 | * @return ExpNsResource |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * rdfs, property, xsd, so these do not have to be included in |
133 | 133 | * $extraNamespaces. |
134 | 134 | * |
135 | - * @param $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
135 | + * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
136 | 136 | * @param $where string WHERE part of the query, without surrounding { } |
137 | 137 | * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' ) |
138 | 138 | * @param $extraNamespaces array (associative) of namespaceId => namespaceUri |
@@ -549,8 +549,8 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | /** |
552 | - * @param $endpoint string URL of endpoint that was used |
|
553 | - * @param $sparql string query that caused the problem |
|
552 | + * @param string $endpoint string URL of endpoint that was used |
|
553 | + * @param string $sparql string query that caused the problem |
|
554 | 554 | */ |
555 | 555 | protected function mapHttpRequestError( $endpoint, $sparql ) { |
556 | 556 | |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | * |
567 | 567 | * @param integer $timeout |
568 | 568 | * |
569 | - * @return SparqlDatabase |
|
569 | + * @return GenericHttpRepositoryConnector |
|
570 | 570 | */ |
571 | 571 | public function setConnectionTimeoutInSeconds( $timeout = 10 ) { |
572 | 572 | $this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout ); |
@@ -403,7 +403,7 @@ |
||
403 | 403 | * |
404 | 404 | * @param string $connectionTypeId |
405 | 405 | * |
406 | - * @return mixed |
|
406 | + * @return RepositoryConnection |
|
407 | 407 | */ |
408 | 408 | public function getConnection( $connectionTypeId = 'sparql' ) { |
409 | 409 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * @since 2.3 |
72 | 72 | * |
73 | - * @param integer $chunkSize |
|
73 | + * @param integer $triplesChunkSize |
|
74 | 74 | */ |
75 | 75 | public function setTriplesChunkSize( $triplesChunkSize ) { |
76 | 76 | $this->triplesChunkSize = (int)$triplesChunkSize; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * @since 2.0 |
150 | 150 | * |
151 | - * @return boolean |
|
151 | + * @return null|boolean |
|
152 | 152 | */ |
153 | 153 | public function hasTriplesForUpdate() { |
154 | 154 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * @since 2.0 |
164 | 164 | * |
165 | - * @return boolean |
|
165 | + * @return boolean|null |
|
166 | 166 | */ |
167 | 167 | public static function reset() { |
168 | 168 | TurtleSerializer::reset(); |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * @since 1.6 |
306 | 306 | * @param ExpData $expData object containing the update data |
307 | 307 | * @param $auxiliaryExpData array of SMWExpData |
308 | - * @param $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
308 | + * @param boolean $expandSubject boolean controls if redirects/auxiliary data should also be sought for subject |
|
309 | 309 | * |
310 | 310 | * @return ExpData |
311 | 311 | */ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * @since 2.3 |
91 | 91 | * |
92 | - * @param array|false $namespaces |
|
92 | + * @param boolean $namespaces |
|
93 | 93 | */ |
94 | 94 | public function setNamespacesTo( $namespaces ) { |
95 | 95 | $this->namespaces = $namespaces; |
@@ -210,6 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * @param integer $id |
212 | 212 | * @param UpdateJob[] &$updatejobs |
213 | + * @param boolean $emptyrange |
|
213 | 214 | */ |
214 | 215 | private function createUpdateJobsForSmwIdRange( $id, &$updatejobs, &$emptyrange ) { |
215 | 216 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @since 1.8 |
63 | 63 | * @param $concept Title |
64 | - * @return array of error strings (empty if no errors occurred) |
|
64 | + * @return string[] of error strings (empty if no errors occurred) |
|
65 | 65 | */ |
66 | 66 | public function refreshConceptCache( Title $concept ) { |
67 | 67 | $errors = $this->refresh( $concept ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param ListLookup $listLookup |
53 | 53 | * @param Cache $cache |
54 | - * @param stdClass $cacheOptions |
|
54 | + * @param \stdClass $cacheOptions |
|
55 | 55 | */ |
56 | 56 | public function __construct( ListLookup $listLookup, Cache $cache, \stdClass $cacheOptions ) { |
57 | 57 | $this->listLookup = $listLookup; |
@@ -149,6 +149,10 @@ discard block |
||
149 | 149 | $this->cache->delete( $id ); |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param string $key |
|
154 | + * @param string $optionsKey |
|
155 | + */ |
|
152 | 156 | private function tryFetchFromCache( $key, $optionsKey ) { |
153 | 157 | |
154 | 158 | if ( !$this->cache->contains( $key ) ) { |
@@ -167,6 +171,11 @@ discard block |
||
167 | 171 | return $data['list']; |
168 | 172 | } |
169 | 173 | |
174 | + /** |
|
175 | + * @param string $key |
|
176 | + * @param string $optionsKey |
|
177 | + * @param integer $time |
|
178 | + */ |
|
170 | 179 | private function saveToCache( $key, $optionsKey, $list, $time, $ttl ) { |
171 | 180 | |
172 | 181 | $this->timestamp = $time; |
@@ -185,6 +194,9 @@ discard block |
||
185 | 194 | $this->cache->save( $optionsKey, serialize( $data ), $ttl ); |
186 | 195 | } |
187 | 196 | |
197 | + /** |
|
198 | + * @param string $id |
|
199 | + */ |
|
188 | 200 | private function getCacheKey( $id ) { |
189 | 201 | |
190 | 202 | $optionsKey = ''; |
@@ -110,7 +110,6 @@ discard block |
||
110 | 110 | * @since 2.3 |
111 | 111 | * |
112 | 112 | * @param DIWikiPage $subject |
113 | - * @param RequestOptions $requestOptions = null |
|
114 | 113 | * |
115 | 114 | * @return array |
116 | 115 | */ |
@@ -272,7 +271,6 @@ discard block |
||
272 | 271 | * |
273 | 272 | * @since 2.3 |
274 | 273 | * |
275 | - * @param DIWikiPage|null $subject |
|
276 | 274 | * @param DIProperty $property |
277 | 275 | * @param RequestOptions $requestOptions = null |
278 | 276 | * |
@@ -419,6 +417,10 @@ discard block |
||
419 | 417 | ) . $suffix ); |
420 | 418 | } |
421 | 419 | |
420 | + /** |
|
421 | + * @param string $id |
|
422 | + * @param DIWikiPage $subject |
|
423 | + */ |
|
422 | 424 | private function appendToList( $id, $subject ) { |
423 | 425 | |
424 | 426 | // Store the id with the main subject |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param Store $store |
41 | 41 | * @param string $defaultPropertyType |
42 | - * @param RequestOptions $requestOptions|null |
|
42 | + * @param RequestOptions $requestOptions |
|
43 | 43 | */ |
44 | 44 | public function __construct( Store $store, $defaultPropertyType, RequestOptions $requestOptions = null ) { |
45 | 45 | $this->store = $store; |
@@ -152,6 +152,9 @@ discard block |
||
152 | 152 | return $property; |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $type |
|
157 | + */ |
|
155 | 158 | private function getPropertyTableForType( $type ) { |
156 | 159 | |
157 | 160 | $propertyTables = $this->store->getPropertyTables(); |