@@ -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(); |
@@ -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 | */ |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @since 1.9 |
36 | 36 | * |
37 | - * @param array $diType |
|
37 | + * @param array $diTypes |
|
38 | 38 | * @param array $specialProperties |
39 | 39 | * @param array $userDefinedFixedProperties |
40 | 40 | */ |
@@ -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 ) { |