@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * Convenience method for creating Statements. |
| 86 | 86 | * |
| 87 | - * @param string|PropertyId $propertyId |
|
| 87 | + * @param string $propertyId |
|
| 88 | 88 | * |
| 89 | 89 | * @param string|int|float|DataValue|null $value The value of the new |
| 90 | 90 | * claim's main snak. Null will result in a PropertyNoValueSnak. |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | * |
| 236 | 236 | * @param DiffOp $siteLinkDiffOp |
| 237 | 237 | * |
| 238 | - * @return Title|false |
|
| 238 | + * @return \Wikibase\DataModel\Entity\EntityId |
|
| 239 | 239 | */ |
| 240 | 240 | private function getTitleForNotification( DiffOp $siteLinkDiffOp ) { |
| 241 | 241 | if ( $siteLinkDiffOp instanceof DiffOpAdd ) { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @param IContextSource $context |
| 150 | - * @param array $usage |
|
| 150 | + * @param \Wikibase\Client\Usage\EntityUsage[] $usage |
|
| 151 | 151 | * |
| 152 | 152 | * @return string[] |
| 153 | 153 | */ |
@@ -80,6 +80,9 @@ |
||
| 80 | 80 | ); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param boolean $isRedirect |
|
| 85 | + */ |
|
| 83 | 86 | private function getPageRow( EntityId $entityId, $isRedirect ) { |
| 84 | 87 | $entityNamespaceLookup = WikibaseRepo::getDefaultInstance()->getEntityNamespaceLookup(); |
| 85 | 88 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param ItemId|null $itemId |
|
| 50 | + * @param null|EntityId $itemId |
|
| 51 | 51 | * |
| 52 | 52 | * @throws InvalidArgumentException |
| 53 | 53 | * @return ItemContent |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param PropertyId|null $propertyId |
|
| 34 | + * @param null|EntityId $propertyId |
|
| 35 | 35 | * |
| 36 | 36 | * @throws InvalidArgumentException |
| 37 | 37 | * @return PropertyContent |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * @return Site |
|
| 115 | + * @return string |
|
| 116 | 116 | */ |
| 117 | 117 | private function getLocalSite() { |
| 118 | 118 | return $this->siteLookup->getSite( $this->localSiteId ); |
@@ -206,6 +206,9 @@ |
||
| 206 | 206 | $this->assertFalse( $cacheSplit ); |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | + /** |
|
| 210 | + * @return RepoLinker |
|
| 211 | + */ |
|
| 209 | 212 | private function getRepoLinker() { |
| 210 | 213 | $repoLinker = $this->getMockBuilder( RepoLinker::class ) |
| 211 | 214 | ->disableOriginalConstructor() |
@@ -173,6 +173,9 @@ |
||
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $name |
|
| 178 | + */ |
|
| 176 | 179 | private function addEntityToOutput( EntityRevision $entityRevision, $name ) { |
| 177 | 180 | $entityId = $entityRevision->getEntity()->getId(); |
| 178 | 181 | $revisionId = $entityRevision->getRevisionId(); |