@@ -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. |
@@ -543,6 +543,9 @@ |
||
543 | 543 | $this->assertEntityPerPage( false, $entityId ); |
544 | 544 | } |
545 | 545 | |
546 | + /** |
|
547 | + * @param boolean $expected |
|
548 | + */ |
|
546 | 549 | private function assertEntityPerPage( $expected, EntityId $entityId ) { |
547 | 550 | $pageId = $this->getPageId( $entityId ); |
548 | 551 |
@@ -37,6 +37,9 @@ |
||
37 | 37 | */ |
38 | 38 | class EditEntityTest extends MediaWikiTestCase { |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $name |
|
42 | + */ |
|
40 | 43 | private function getUser( $name ) { |
41 | 44 | $user = User::newFromName( $name ); |
42 | 45 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @param string|null $moduleName The module part of the auto comment |
51 | 51 | * @param string|null $actionName The action part of the auto comment |
52 | 52 | * @param string|null $languageCode The language code to use as the second auto comment argument |
53 | - * @param array $commentArgs The arguments to the auto comment |
|
53 | + * @param string[] $commentArgs The arguments to the auto comment |
|
54 | 54 | * @param array $summaryArgs The arguments to the auto summary |
55 | 55 | */ |
56 | 56 | public function __construct( |
@@ -177,7 +177,6 @@ discard block |
||
177 | 177 | * |
178 | 178 | * @since 0.4 |
179 | 179 | * |
180 | - * @param mixed $args,... Parts to be stringed together |
|
181 | 180 | */ |
182 | 181 | public function addAutoCommentArgs( $args /*...*/ ) { |
183 | 182 | if ( !is_array( $args ) ) { |
@@ -192,7 +191,6 @@ discard block |
||
192 | 191 | * |
193 | 192 | * @since 0.4 |
194 | 193 | * |
195 | - * @param mixed $args,... Parts to be stringed together |
|
196 | 194 | */ |
197 | 195 | public function addAutoSummaryArgs( $args /*...*/ ) { |
198 | 196 | if ( !is_array( $args ) ) { |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | * |
304 | 304 | * @since 0.5 |
305 | 305 | * |
306 | - * @param IContextSource|User|string $context |
|
306 | + * @param string $context |
|
307 | 307 | * |
308 | 308 | * @return ParserOptions |
309 | 309 | */ |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | * @param Revision $newerRevision The revision to undo |
588 | 588 | * @param Revision $olderRevision Must be an earlier revision than $undo |
589 | 589 | * |
590 | - * @return Content|bool Content on success, false on failure |
|
590 | + * @return null|Content Content on success, false on failure |
|
591 | 591 | */ |
592 | 592 | public function getUndoContent( |
593 | 593 | Revision $latestRevision, |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | * @param EntityContent $content |
647 | 647 | * @param Title $title |
648 | 648 | * |
649 | - * @return DataUpdate[] |
|
649 | + * @return DataUpdateAdapter[] |
|
650 | 650 | */ |
651 | 651 | public function getEntityDeletionUpdates( EntityContent $content, Title $title ) { |
652 | 652 | $updates = array(); |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | * @param EntityContent $content |
688 | 688 | * @param Title $title |
689 | 689 | * |
690 | - * @return DataUpdate[] |
|
690 | + * @return DataUpdateAdapter[] |
|
691 | 691 | */ |
692 | 692 | public function getEntityModificationUpdates( EntityContent $content, Title $title ) { |
693 | 693 | $updates = array(); |
@@ -37,6 +37,9 @@ |
||
37 | 37 | */ |
38 | 38 | class EditEntityTest extends MediaWikiTestCase { |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $name |
|
42 | + */ |
|
40 | 43 | private function getUser( $name ) { |
41 | 44 | $user = User::newFromName( $name ); |
42 | 45 |
@@ -1224,7 +1224,7 @@ discard block |
||
1224 | 1224 | * |
1225 | 1225 | * @since 0.5 |
1226 | 1226 | * |
1227 | - * @return array |
|
1227 | + * @return string[] |
|
1228 | 1228 | */ |
1229 | 1229 | public function getContentModelMappings() { |
1230 | 1230 | $map = $this->entityTypeDefinitions->getContentModelIds(); |
@@ -1244,7 +1244,7 @@ discard block |
||
1244 | 1244 | } |
1245 | 1245 | |
1246 | 1246 | /** |
1247 | - * @return string[] List of entity type identifiers (typically "item" and "property") |
|
1247 | + * @return integer[] List of entity type identifiers (typically "item" and "property") |
|
1248 | 1248 | * that are configured in WikibaseRepo.entitytypes.php and enabled via the |
1249 | 1249 | * $wgWBRepoSettings['entityNamespaces'] setting. |
1250 | 1250 | */ |
@@ -1753,6 +1753,9 @@ discard block |
||
1753 | 1753 | return new EntityTypesConfigValueProvider( $this->entityTypeDefinitions ); |
1754 | 1754 | } |
1755 | 1755 | |
1756 | + /** |
|
1757 | + * @param string $name |
|
1758 | + */ |
|
1756 | 1759 | private function fixLegacyContentModelSetting( array $setting, $name ) { |
1757 | 1760 | if ( isset( $setting[ 'wikibase-item' ] ) || isset( $setting[ 'wikibase-property' ] ) ) { |
1758 | 1761 | wfWarn( "The specified value for the Wikibase setting '$name' uses content model ids as keys. This is deprecated. " . |
@@ -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 ) { |
@@ -519,6 +519,12 @@ |
||
519 | 519 | return $entities; |
520 | 520 | } |
521 | 521 | |
522 | + /** |
|
523 | + * @param string $id |
|
524 | + * @param string $languageCode |
|
525 | + * @param string $label |
|
526 | + * @param string $description |
|
527 | + */ |
|
522 | 528 | private function makeTermConflictItem( $id, $languageCode, $label, $description ) { |
523 | 529 | $item = new Item( new ItemId( $id ) ); |
524 | 530 | $item->setLabel( $languageCode, $label ); |