@@ -114,7 +114,7 @@ |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * @return Site |
|
117 | + * @return string |
|
118 | 118 | */ |
119 | 119 | private function getLocalSite() { |
120 | 120 | return $this->siteStore->getSite( $this->localSiteId ); |
@@ -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 |
@@ -156,7 +156,7 @@ |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
159 | - * @return SiteStore |
|
159 | + * @return null|SiteStore |
|
160 | 160 | */ |
161 | 161 | private function getSiteStore() { |
162 | 162 | $siteStore = new MockSiteStore(); |
@@ -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(); |
@@ -233,6 +233,9 @@ |
||
233 | 233 | return $languageFallbackChain; |
234 | 234 | } |
235 | 235 | |
236 | + /** |
|
237 | + * @param string $languageCode |
|
238 | + */ |
|
236 | 239 | protected function getBabel( $languageCode, $user ) { |
237 | 240 | $babel = array(); |
238 | 241 |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @param EntityDocument $entity |
234 | 234 | * @param int $revisionId |
235 | - * @param int|string $timestamp |
|
235 | + * @param integer $timestamp |
|
236 | 236 | * @param User|string|null $user |
237 | 237 | * |
238 | 238 | * @return EntityRevision |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * |
295 | 295 | * @param EntityRedirect $redirect |
296 | 296 | * @param int $revisionId |
297 | - * @param string|int $timestamp |
|
297 | + * @param integer $timestamp |
|
298 | 298 | */ |
299 | 299 | public function putRedirect( EntityRedirect $redirect, $revisionId = 0, $timestamp = 0 ) { |
300 | 300 | $key = $redirect->getEntityId()->getSerialization(); |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | /** |
634 | 634 | * @param string $idString |
635 | 635 | * |
636 | - * @return ItemId|PropertyId |
|
636 | + * @return EntityId |
|
637 | 637 | */ |
638 | 638 | private function parseId( $idString ) { |
639 | 639 | $parser = new BasicEntityIdParser(); |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | |
643 | 643 | /** |
644 | 644 | * @param int $revisionId |
645 | - * @param EntityId|string $entityId |
|
645 | + * @param EntityId $entityId |
|
646 | 646 | * @param string $summary |
647 | 647 | * @param User|string $user |
648 | 648 | */ |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | * Returns the newest (according to the revision id) log entry |
680 | 680 | * for the given entity. |
681 | 681 | * |
682 | - * @param EntityId|string $entityId |
|
682 | + * @param ItemId $entityId |
|
683 | 683 | * |
684 | 684 | * @return array|null An associative array containing the fields |
685 | 685 | * 'revision', 'entity', 'summary', and 'user'. |
@@ -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-' ); |