@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * @param SkinTemplate $skinTemplate |
| 412 | 412 | * @param array $links |
| 413 | 413 | * |
| 414 | - * @return bool |
|
| 414 | + * @return null|boolean |
|
| 415 | 415 | */ |
| 416 | 416 | public static function onPageTabs( SkinTemplate &$skinTemplate, array &$links ) { |
| 417 | 417 | $entityContentFactory = WikibaseRepo::getDefaultInstance()->getEntityContentFactory(); |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | * @param Title|null $title use for further information |
| 740 | 740 | * @param bool $local shall links be generated locally or globally |
| 741 | 741 | * |
| 742 | - * @return bool |
|
| 742 | + * @return boolean|null |
|
| 743 | 743 | */ |
| 744 | 744 | public static function onFormat( &$comment, $pre, $auto, $post, $title, $local ) { |
| 745 | 745 | global $wgLang, $wgTitle; |
@@ -1241,7 +1241,7 @@ discard block |
||
| 1241 | 1241 | /** |
| 1242 | 1242 | * Get the mapping of entity types => content models |
| 1243 | 1243 | * |
| 1244 | - * @return array |
|
| 1244 | + * @return string[] |
|
| 1245 | 1245 | */ |
| 1246 | 1246 | public function getContentModelMappings() { |
| 1247 | 1247 | $map = $this->entityTypeDefinitions->getContentModelIds(); |
@@ -1261,7 +1261,7 @@ discard block |
||
| 1261 | 1261 | } |
| 1262 | 1262 | |
| 1263 | 1263 | /** |
| 1264 | - * @return string[] List of entity type identifiers (typically "item" and "property") |
|
| 1264 | + * @return integer[] List of entity type identifiers (typically "item" and "property") |
|
| 1265 | 1265 | * that are configured in WikibaseRepo.entitytypes.php and enabled via the |
| 1266 | 1266 | * $wgWBRepoSettings['entityNamespaces'] setting. Optionally the list also contains |
| 1267 | 1267 | * entity types from the configured foreign repositories. |
@@ -1289,7 +1289,7 @@ discard block |
||
| 1289 | 1289 | } |
| 1290 | 1290 | |
| 1291 | 1291 | /** |
| 1292 | - * @return string[] List of entity type identifiers (typically "item" and "property") |
|
| 1292 | + * @return integer[] List of entity type identifiers (typically "item" and "property") |
|
| 1293 | 1293 | * that are configured in WikibaseRepo.entitytypes.php and enabled via the |
| 1294 | 1294 | * $wgWBRepoSettings['entityNamespaces'] setting. |
| 1295 | 1295 | */ |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $term |
|
| 84 | + */ |
|
| 82 | 85 | private function getTermList( $term, $languageCode = 'en' ) { |
| 83 | 86 | return new TermList( [ new Term( $languageCode, $term ) ] ); |
| 84 | 87 | } |
@@ -194,6 +194,9 @@ |
||
| 194 | 194 | return $titleLookup; |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | + /** |
|
| 198 | + * @return string |
|
| 199 | + */ |
|
| 197 | 200 | private function executeSpecialMergeItems( $params, User $user = null ) { |
| 198 | 201 | if ( !$user ) { |
| 199 | 202 | $user = $GLOBALS['wgUser']; |
@@ -363,7 +363,7 @@ |
||
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | /** |
| 366 | - * @param $repositoryName |
|
| 366 | + * @param string $repositoryName |
|
| 367 | 367 | * @param array $customSettings |
| 368 | 368 | * |
| 369 | 369 | * @return array |
@@ -151,6 +151,9 @@ |
||
| 151 | 151 | ); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @return string |
|
| 156 | + */ |
|
| 154 | 157 | private function executeSpecialEntityRedirect( array $params, User $user = null ) { |
| 155 | 158 | if ( !$user ) { |
| 156 | 159 | $user = $GLOBALS['wgUser']; |
@@ -106,6 +106,9 @@ |
||
| 106 | 106 | ) ); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @return ChangeOpDeserializerFactory |
|
| 111 | + */ |
|
| 109 | 112 | private function getChangeOpDeserializerFactoryMock() { |
| 110 | 113 | return $this->getMockBuilder( ChangeOpDeserializerFactory::class ) |
| 111 | 114 | ->disableOriginalConstructor() |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * @param string &$magicWordId |
| 78 | 78 | * @param string &$ret |
| 79 | 79 | * |
| 80 | - * @return bool |
|
| 80 | + * @return boolean|null |
|
| 81 | 81 | */ |
| 82 | 82 | public static function onParserGetVariableValueSwitch( Parser &$parser, &$cache, &$magicWordId, &$ret ) { |
| 83 | 83 | $handler = self::newFromGlobalState(); |
@@ -75,6 +75,10 @@ |
||
| 75 | 75 | $this->assertEquals( $expectedRank, $rank, "No reference with expected hash" ); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param string $itemIdString |
|
| 80 | + * @param PropertyValueSnak $mainSnak |
|
| 81 | + */ |
|
| 78 | 82 | private function newItemWithClaim( $itemIdString, $mainSnak ) { |
| 79 | 83 | $item = new Item( new ItemId( $itemIdString ) ); |
| 80 | 84 | |