@@ -154,7 +154,7 @@ |
||
154 | 154 | /** |
155 | 155 | * @see EntityInfoBuilder::collectTerms |
156 | 156 | * |
157 | - * @param string[]|null $types Which types of terms to include (e.g. "label", "description", "aliases"). |
|
157 | + * @param string[] $types Which types of terms to include (e.g. "label", "description", "aliases"). |
|
158 | 158 | * @param string[]|null $languages Which languages to include |
159 | 159 | */ |
160 | 160 | private function collectTerms( array $types = null, array $languages = null ) { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return StatementEntityReferenceExtractor|MockObject |
|
93 | + * @return StatementEntityReferenceExtractor |
|
94 | 94 | */ |
95 | 95 | private function getMockStatementEntityReferenceExtractor() { |
96 | 96 | return $this->getMockBuilder( StatementEntityReferenceExtractor::class ) |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Wikibase\DataModel\Entity\PropertyId; |
8 | 8 | use Wikibase\Repo\Store\EntityTitleStoreLookup; |
9 | 9 | use Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup; |
10 | -use Wikimedia\Assert\PostconditionException; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * @covers \Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * Generates a suitable entity ID based on $n. |
55 | 55 | * |
56 | - * @param int|string $n |
|
56 | + * @param integer $n |
|
57 | 57 | * |
58 | 58 | * @return ItemId |
59 | 59 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use File; |
7 | 7 | use Html; |
8 | 8 | use Title; |
9 | - |
|
10 | 9 | use Wikibase\Client\RepoLinker; |
11 | 10 | use Wikibase\Client\WikibaseClient; |
12 | 11 | use Wikibase\DataModel\Entity\EntityDocument; |
@@ -151,8 +151,8 @@ |
||
151 | 151 | /** |
152 | 152 | * @see QueryPage::reallyDoQuery |
153 | 153 | * |
154 | - * @param int|bool $limit |
|
155 | - * @param int|bool $offset |
|
154 | + * @param integer $limit |
|
155 | + * @param integer $offset |
|
156 | 156 | * |
157 | 157 | * @return IResultWrapper |
158 | 158 | */ |
@@ -537,6 +537,9 @@ discard block |
||
537 | 537 | $this->assertCount( 0, $usages ); |
538 | 538 | } |
539 | 539 | |
540 | + /** |
|
541 | + * @param string $pageTitle |
|
542 | + */ |
|
540 | 543 | private function getSiteLinkUsageLookup( $pageTitle ) { |
541 | 544 | $siteLinkLookup = $this->createMock( SiteLinkLookup::class ); |
542 | 545 | |
@@ -648,6 +651,9 @@ discard block |
||
648 | 651 | return $strings; |
649 | 652 | } |
650 | 653 | |
654 | + /** |
|
655 | + * @param PageEntityUsages[] $actual |
|
656 | + */ |
|
651 | 657 | private function assertPageEntityUsages( $expected, $actual, $message = '' ) { |
652 | 658 | $this->assertEquals( |
653 | 659 | $this->getPageEntityUsageStrings( $expected ), |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * @return RecentChangesDuplicateDetector|MockObject |
|
90 | + * @return RecentChangesDuplicateDetector |
|
91 | 91 | */ |
92 | 92 | private function getRCDupeDetectorMock() { |
93 | 93 | $rcDupeDetector = $this->getMockBuilder( RecentChangesDuplicateDetector::class ) |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @return TitleFactory|MockObject |
|
101 | + * @return TitleFactory |
|
102 | 102 | */ |
103 | 103 | private function getTitleFactoryMock() { |
104 | 104 | $titleFactory = $this->createMock( TitleFactory::class ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @param string $text |
118 | 118 | * @param int $id |
119 | 119 | * |
120 | - * @return Title|MockObject |
|
120 | + * @return \Wikibase\DataModel\Entity\EntityId |
|
121 | 121 | */ |
122 | 122 | private function getTitleMock( $text, $id = 23 ) { |
123 | 123 | $title = $this->getMockBuilder( Title::class ) |
@@ -127,7 +127,6 @@ |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @param Title $title |
|
131 | 130 | * @param array|null $currentUsages |
132 | 131 | * |
133 | 132 | * @return UsageLookup |