@@ -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 |
@@ -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 | */ |
@@ -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 = ''; |
@@ -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(); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @param Store $store |
42 | 42 | * @param PropertyStatisticsStore $propertyStatisticsStore |
43 | - * @param RequestOptions $requestOptions|null |
|
43 | + * @param RequestOptions $requestOptions |
|
44 | 44 | */ |
45 | 45 | public function __construct( Store $store, PropertyStatisticsStore $propertyStatisticsStore, RequestOptions $requestOptions = null ) { |
46 | 46 | $this->store = $store; |
@@ -207,7 +207,7 @@ |
||
207 | 207 | * |
208 | 208 | * @since 1.9 |
209 | 209 | * |
210 | - * @param array $propertyIds |
|
210 | + * @param integer[] $propertyIds |
|
211 | 211 | * |
212 | 212 | * @return array |
213 | 213 | */ |
@@ -161,6 +161,9 @@ discard block |
||
161 | 161 | return $this->compositePropertyTableDiffIterator; |
162 | 162 | } |
163 | 163 | |
164 | + /** |
|
165 | + * @param integer $sid |
|
166 | + */ |
|
164 | 167 | private function fetchPropertyTableHashesForId( $sid ) { |
165 | 168 | return $this->store->getObjectIds()->getPropertyTableHashes( $sid ); |
166 | 169 | } |
@@ -188,7 +191,6 @@ discard block |
||
188 | 191 | * |
189 | 192 | * @since 1.8 |
190 | 193 | * @param integer $sid |
191 | - * @param TableDefinition $tableDeclaration |
|
192 | 194 | * @return array |
193 | 195 | */ |
194 | 196 | private function fetchCurrentContentsForPropertyTable( $sid, TableDefinition $propertyTable ) { |