@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * @param Title &$oldTitle |
| 88 | 88 | * @param Title &$newTitle |
| 89 | 89 | * |
| 90 | - * @return bool |
|
| 90 | + * @return boolean|null |
|
| 91 | 91 | */ |
| 92 | 92 | public function doSpecialMovepageAfterMove( MovePageForm $movePage, Title &$oldTitle, |
| 93 | 93 | Title &$newTitle ) { |
@@ -75,6 +75,9 @@ |
||
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param EntityUsage[] $actualUsages |
|
| 80 | + */ |
|
| 78 | 81 | private function hasUsage( $actualUsages, EntityId $entityId, $aspect ) { |
| 79 | 82 | $usage = new EntityUsage( $entityId, $aspect ); |
| 80 | 83 | $key = $usage->getIdentityString(); |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | /** |
| 141 | 141 | * @param ItemId $id |
| 142 | 142 | * @param string[] $labels |
| 143 | - * @param Statement[]|null $statements |
|
| 143 | + * @param Statement[] $statements |
|
| 144 | 144 | * @param SiteLink[]|null $siteLinks |
| 145 | 145 | * |
| 146 | 146 | * @return Item |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param bool $local shall links be generated locally or globally |
| 188 | 188 | * @param string|null $wikiId The ID of the wiki the comment applies to, if not the local wiki. |
| 189 | 189 | * |
| 190 | - * @return bool |
|
| 190 | + * @return boolean|null |
|
| 191 | 191 | */ |
| 192 | 192 | public static function onFormat( &$comment, $pre, $auto, $post, $title, $local, $wikiId = null ) { |
| 193 | 193 | global $wgContLang; |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | * @param string $name |
| 577 | 577 | * @param string &$html |
| 578 | 578 | * |
| 579 | - * @return boolean |
|
| 579 | + * @return boolean|null |
|
| 580 | 580 | */ |
| 581 | 581 | public static function onBaseTemplateAfterPortlet( BaseTemplate $skinTemplate, $name, &$html ) { |
| 582 | 582 | $handler = new BaseTemplateAfterPortletHandler(); |
@@ -279,7 +279,7 @@ |
||
| 279 | 279 | * |
| 280 | 280 | * @param Statement $fromStatement |
| 281 | 281 | * |
| 282 | - * @return Statement|false Statement to merge reference into or false |
|
| 282 | + * @return Statement Statement to merge reference into or false |
|
| 283 | 283 | */ |
| 284 | 284 | private function findEquivalentStatement( $fromStatement ) { |
| 285 | 285 | $fromHash = $this->getStatementHash( $fromStatement ); |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | * |
| 163 | 163 | * @TODO FIXME duplicated / similar code in Repo ResultBuilder |
| 164 | 164 | * |
| 165 | - * @return array |
|
| 165 | + * @return string |
|
| 166 | 166 | */ |
| 167 | 167 | private function injectEntitySerializationWithDataTypes( array $serialization ) { |
| 168 | 168 | $serialization = $this->modifier->modifyUsingCallback( |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | /** |
| 179 | 179 | * @param string $msgKey |
| 180 | 180 | * |
| 181 | - * @return boolean |
|
| 181 | + * @return string |
|
| 182 | 182 | */ |
| 183 | 183 | private function isBceMsg( $msgKey ) { |
| 184 | 184 | return strstr( $msgKey, '-BCE-' ); |
@@ -232,6 +232,9 @@ |
||
| 232 | 232 | return $list; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $value |
|
| 237 | + */ |
|
| 235 | 238 | private function formatIfEntityId( $value ) { |
| 236 | 239 | try { |
| 237 | 240 | return $this->idFormatter->formatEntityId( $this->idParser->parse( $value ) ); |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | abstract protected function applyChanges( Item $item ); |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return Item|null |
|
| 106 | + * @return null|\Wikibase\DataModel\Entity\EntityDocument |
|
| 107 | 107 | */ |
| 108 | 108 | private function getItem() { |
| 109 | 109 | $params = $this->getParams(); |