@@ -827,6 +827,12 @@ discard block |
||
827 | 827 | return $entities; |
828 | 828 | } |
829 | 829 | |
830 | + /** |
|
831 | + * @param string $id |
|
832 | + * @param string $languageCode |
|
833 | + * @param string $label |
|
834 | + * @param string $description |
|
835 | + */ |
|
830 | 836 | private function makeTermConflictItem( $id, $languageCode, $label, $description ) { |
831 | 837 | $item = new Item( new ItemId( $id ) ); |
832 | 838 | $item->setLabel( $languageCode, $label ); |
@@ -1993,6 +1999,9 @@ discard block |
||
1993 | 1999 | $fooTermIndex->getLabelWithDescriptionConflicts( 'property', [ 'en' => 'some irrelevant label' ], [ 'en' => 'random description' ] ); |
1994 | 2000 | } |
1995 | 2001 | |
2002 | + /** |
|
2003 | + * @param string $entityType |
|
2004 | + */ |
|
1996 | 2005 | private function getTermSqlIndexForSourceOf( $entityType ) { |
1997 | 2006 | $irrelevantNamespaceId = 100; |
1998 | 2007 |
@@ -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 ); |
@@ -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, |
@@ -73,6 +73,9 @@ |
||
73 | 73 | MediaWikiServices::getInstance()->resetServiceForTesting( 'PermissionManager' ); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $action |
|
78 | + */ |
|
76 | 79 | protected function doPermissionsTest( |
77 | 80 | $action, |
78 | 81 | array $params, |
@@ -77,6 +77,10 @@ |
||
77 | 77 | $this->assertTrue( $changeOpResult->isEntityChanged() ); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $itemIdString |
|
82 | + * @param PropertyValueSnak $mainSnak |
|
83 | + */ |
|
80 | 84 | private function newItemWithClaim( $itemIdString, $mainSnak ) { |
81 | 85 | $item = new Item( new ItemId( $itemIdString ) ); |
82 | 86 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * @param EntityId $id |
82 | 82 | * |
83 | 83 | * @throws InvalidArgumentException |
84 | - * @return Item|Property |
|
84 | + * @return \Wikibase\DataModel\Entity\EntityDocument |
|
85 | 85 | */ |
86 | 86 | protected function makeEntity( EntityId $id ) { |
87 | 87 | if ( $id instanceof ItemId ) { |