@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * @param EntityRevision[] $entityRevisions |
34 | 34 | * @param EntityRedirect[] $entityRedirects |
35 | 35 | * |
36 | - * @return EntityLookup |
|
36 | + * @return CachingEntityRevisionLookup |
|
37 | 37 | */ |
38 | 38 | protected function newEntityRevisionLookup( array $entityRevisions, array $entityRedirects ) { |
39 | 39 | $mock = new MockRepository(); |
@@ -261,6 +261,9 @@ discard block |
||
261 | 261 | ->map(); |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param string $message |
|
266 | + */ |
|
264 | 267 | private function assertNonexistentRevision( LatestRevisionIdResult $result, $message ) { |
265 | 268 | $shouldNotBeCalled = function () use ( $message ) { |
266 | 269 | $this->fail( $message ); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return StatementEntityReferenceExtractor|MockObject |
|
93 | + * @return StatementEntityReferenceExtractor |
|
94 | 94 | */ |
95 | 95 | private function getMockStatementEntityReferenceExtractor() { |
96 | 96 | return $this->getMockBuilder( StatementEntityReferenceExtractor::class ) |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * Generates a suitable entity ID based on $n. |
55 | 55 | * |
56 | - * @param int|string $n |
|
56 | + * @param integer $n |
|
57 | 57 | * |
58 | 58 | * @return ItemId |
59 | 59 | */ |
@@ -151,8 +151,8 @@ |
||
151 | 151 | /** |
152 | 152 | * @see QueryPage::reallyDoQuery |
153 | 153 | * |
154 | - * @param int|bool $limit |
|
155 | - * @param int|bool $offset |
|
154 | + * @param integer $limit |
|
155 | + * @param integer $offset |
|
156 | 156 | * |
157 | 157 | * @return IResultWrapper |
158 | 158 | */ |
@@ -164,6 +164,9 @@ |
||
164 | 164 | return $existingRecords; |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param callable $recordsToInsertDecoratorCallback |
|
169 | + */ |
|
167 | 170 | private function insertNonExistingRecords( |
168 | 171 | array $records, |
169 | 172 | $recordsToInsertDecoratorCallback = null |
@@ -73,6 +73,11 @@ discard block |
||
73 | 73 | $formatter->format( new StringValue( 'A string is not a coordinate?!' ) ); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param integer $totalCalls |
|
78 | + * |
|
79 | + * @return CachingKartographerEmbeddingHandler |
|
80 | + */ |
|
76 | 81 | private function newCachingKartographerEmbeddingHandler( |
77 | 82 | $totalCalls, |
78 | 83 | $isPreview = false, |
@@ -96,6 +101,11 @@ discard block |
||
96 | 101 | return $handler; |
97 | 102 | } |
98 | 103 | |
104 | + /** |
|
105 | + * @param integer $expectedFormatCalls |
|
106 | + * |
|
107 | + * @return ValueFormatter |
|
108 | + */ |
|
99 | 109 | private function newBaseValueFormatter( $expectedFormatCalls ) { |
100 | 110 | $formatter = $this->createMock( ValueFormatter::class ); |
101 | 111 |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * |
225 | 225 | * @param EntityDocument $entity |
226 | 226 | * @param int $revisionId |
227 | - * @param int|string $timestamp |
|
227 | + * @param integer $timestamp |
|
228 | 228 | * @param User|string|null $user |
229 | 229 | * |
230 | 230 | * @throws StorageException |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * |
288 | 288 | * @param EntityRedirect $redirect |
289 | 289 | * @param int $revisionId |
290 | - * @param string|int $timestamp |
|
290 | + * @param integer $timestamp |
|
291 | 291 | * |
292 | 292 | * @throws StorageException |
293 | 293 | */ |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | /** |
642 | 642 | * @param string $idString |
643 | 643 | * |
644 | - * @return ItemId|PropertyId |
|
644 | + * @return EntityId |
|
645 | 645 | */ |
646 | 646 | private function parseId( $idString ) { |
647 | 647 | $parser = new BasicEntityIdParser(); |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | |
651 | 651 | /** |
652 | 652 | * @param int $revisionId |
653 | - * @param EntityId|string $entityId |
|
653 | + * @param EntityId $entityId |
|
654 | 654 | * @param string $summary |
655 | 655 | * @param User|string $user |
656 | 656 | * @param string[] $tags |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | * Returns the newest (according to the revision id) log entry |
690 | 690 | * for the given entity. |
691 | 691 | * |
692 | - * @param EntityId|string $entityId |
|
692 | + * @param ItemId $entityId |
|
693 | 693 | * |
694 | 694 | * @return array|null An associative array containing the fields |
695 | 695 | * 'revision', 'entity', 'summary', 'user', and 'tags'. |
@@ -19,7 +19,6 @@ |
||
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @param string $lang |
22 | - * @param TermIndexEntry[] $terms |
|
23 | 22 | * |
24 | 23 | * @return PropertyLabelResolver |
25 | 24 | */ |
@@ -258,6 +258,9 @@ |
||
258 | 258 | ); |
259 | 259 | } |
260 | 260 | |
261 | + /** |
|
262 | + * @param PropertyDataTypeMatcher $propertyDataTypeMatcher |
|
263 | + */ |
|
261 | 264 | private function newGeoDataDataUpdater( $propertyDataTypeMatcher ): StatementDataUpdater { |
262 | 265 | return new GeoDataDataUpdater( |
263 | 266 | $propertyDataTypeMatcher, |