@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | * @param Revision|Content $older Must be an earlier revision than $newer |
555 | 555 | * @param bool $undoIsLatest Set to true if $newer is from the current revision (since 1.32) |
556 | 556 | * |
557 | - * @return EntityContent|bool Content on success, false on failure |
|
557 | + * @return null|Content Content on success, false on failure |
|
558 | 558 | */ |
559 | 559 | public function getUndoContent( $latest, $newer, $older, $undoIsLatest = false ) { |
560 | 560 | $latestContent = ( $latest instanceof Revision ) ? $latest->getContent() : $latest; |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | * @param EntityContent $content |
613 | 613 | * @param Title $title |
614 | 614 | * |
615 | - * @return DeferrableUpdate[] |
|
615 | + * @return DataUpdateAdapter[] |
|
616 | 616 | */ |
617 | 617 | public function getEntityDeletionUpdates( EntityContent $content, Title $title ) { |
618 | 618 | $updates = []; |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | * @param EntityContent $content |
645 | 645 | * @param Title $title |
646 | 646 | * |
647 | - * @return DataUpdate[] |
|
647 | + * @return DataUpdateAdapter[] |
|
648 | 648 | */ |
649 | 649 | public function getEntityModificationUpdates( EntityContent $content, Title $title ) { |
650 | 650 | // Call the WikibaseEntityModificationUpdate hook. |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | |
659 | 659 | /** |
660 | 660 | * @param EntityContent $content |
661 | - * @return DataUpdate[] |
|
661 | + * @return DataUpdateAdapter[] |
|
662 | 662 | * @throws MWException |
663 | 663 | */ |
664 | 664 | protected function getTermIndexEntityModificationUpdates( EntityContent $content ) { |
@@ -93,6 +93,15 @@ discard block |
||
93 | 93 | * @see showEntityResultHit |
94 | 94 | * @see showPlainSearchHit |
95 | 95 | * |
96 | + * @param string $link |
|
97 | + * @param string $redirect |
|
98 | + * @param string $section |
|
99 | + * @param string $extract |
|
100 | + * @param string $score |
|
101 | + * @param string $size |
|
102 | + * @param string $date |
|
103 | + * @param string $related |
|
104 | + * @param string $html |
|
96 | 105 | */ |
97 | 106 | public static function onShowSearchHit( SpecialSearch $searchPage, SearchResult $result, |
98 | 107 | array $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, |
@@ -200,6 +209,7 @@ discard block |
||
200 | 209 | * @param string &$html The html of the description will be appended here. |
201 | 210 | * @param string[] $description Description as [language, value] array |
202 | 211 | * @param SpecialSearch $searchPage |
212 | + * @param string $html |
|
203 | 213 | */ |
204 | 214 | public static function addDescription( &$html, array $description, SpecialSearch $searchPage ) { |
205 | 215 | RequestContext::getMain()->getOutput()->addModuleStyles( [ 'wikibase.common' ] ); |
@@ -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, |
@@ -69,6 +69,7 @@ |
||
69 | 69 | |
70 | 70 | /** |
71 | 71 | * @see \Wikibase\View\ViewPlaceHolderEmitter |
72 | + * @param string $languageCode |
|
72 | 73 | */ |
73 | 74 | public function getPlaceholders( |
74 | 75 | EntityDocument $entity, |
@@ -264,6 +264,9 @@ |
||
264 | 264 | return Status::newGood(); |
265 | 265 | } |
266 | 266 | |
267 | + /** |
|
268 | + * @param \ValueValidators\Error $error |
|
269 | + */ |
|
267 | 270 | private function createStatusFromValidatorError( $error ) { |
268 | 271 | $params = array_merge( [ 'wikibase-validator-' . $error->getCode() ], $error->getParameters() ); |
269 | 272 | return Status::newFatal( ...$params ); |
@@ -1621,7 +1621,7 @@ discard block |
||
1621 | 1621 | /** |
1622 | 1622 | * Get the mapping of entity types => content models |
1623 | 1623 | * |
1624 | - * @return array |
|
1624 | + * @return string[] |
|
1625 | 1625 | */ |
1626 | 1626 | public function getContentModelMappings() { |
1627 | 1627 | $map = $this->entityTypeDefinitions->getContentModelIds(); |
@@ -2490,10 +2490,16 @@ discard block |
||
2490 | 2490 | return $this->entitySourceDefinitions; |
2491 | 2491 | } |
2492 | 2492 | |
2493 | + /** |
|
2494 | + * @return callable[] |
|
2495 | + */ |
|
2493 | 2496 | private function getMultiRepositoryServiceWiring() { |
2494 | 2497 | return require __DIR__ . '/../../data-access/src/MultiRepositoryServiceWiring.php'; |
2495 | 2498 | } |
2496 | 2499 | |
2500 | + /** |
|
2501 | + * @return callable[] |
|
2502 | + */ |
|
2497 | 2503 | private function getPerRepositoryServiceWiring() { |
2498 | 2504 | return require __DIR__ . '/../../data-access/src/PerRepositoryServiceWiring.php'; |
2499 | 2505 | } |
@@ -165,6 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @param int $ns Namespace ID |
167 | 167 | * @param bool &$movable |
168 | + * @param boolean $movable |
|
168 | 169 | */ |
169 | 170 | public static function onNamespaceIsMovable( $ns, &$movable ) { |
170 | 171 | if ( self::isNamespaceUsedByLocalEntities( $ns ) ) { |
@@ -172,6 +173,9 @@ discard block |
||
172 | 173 | } |
173 | 174 | } |
174 | 175 | |
176 | + /** |
|
177 | + * @param integer $namespace |
|
178 | + */ |
|
175 | 179 | private static function isNamespaceUsedByLocalEntities( $namespace ) { |
176 | 180 | $wikibaseRepo = WikibaseRepo::getDefaultInstance(); |
177 | 181 | $namespaceLookup = $wikibaseRepo->getEntityNamespaceLookup(); |
@@ -777,6 +781,7 @@ discard block |
||
777 | 781 | * @param string $contentModel |
778 | 782 | * @param LinkTarget $title Actually a Title object, but we only require getNamespace |
779 | 783 | * @param bool &$ok |
784 | + * @param boolean $ok |
|
780 | 785 | * |
781 | 786 | * @return bool |
782 | 787 | */ |
@@ -905,7 +910,7 @@ discard block |
||
905 | 910 | /** |
906 | 911 | * Called by Import.php. Implemented to prevent the import of entities. |
907 | 912 | * |
908 | - * @param object $importer unclear, see Bug T66657 |
|
913 | + * @param \stdClass $importer unclear, see Bug T66657 |
|
909 | 914 | * @param array $pageInfo |
910 | 915 | * @param array $revisionInfo |
911 | 916 | * |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param EntityRevision|null $entityRevision The EntityRevision getEntityRevision() should return. |
54 | 54 | * @param Exception|null $exception The Exception getEntityRevision() should throw. |
55 | 55 | * |
56 | - * @return EntityRevisionLookup|MockObject |
|
56 | + * @return EntityRevisionLookup |
|
57 | 57 | */ |
58 | 58 | protected function getMockEntityRevisionLookup( |
59 | 59 | EntityId $entityId = null, |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param string $type |
34 | 34 | * @param TermSearchResult[] $returnResults |
35 | 35 | * |
36 | - * @return ConfigurableTermSearchInteractor|MockObject |
|
36 | + * @return ConfigurableTermSearchInteractor |
|
37 | 37 | */ |
38 | 38 | private function getMockSearchInteractor( |
39 | 39 | $search, |