Completed
Pull Request — master (#12)
by
unknown
11:14 queued 04:45
created
lib/tests/phpunit/Store/GenericEntityInfoBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
EntityReferenceExtractors/EntityReferenceExtractorDelegatorTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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 )
Please login to merge, or discard this patch.
tests/phpunit/includes/Store/TypeDispatchingEntityTitleStoreLookupTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
view/tests/phpunit/ItemViewTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
client/includes/Hooks/SkinAfterBottomScriptsHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
client/includes/Specials/SpecialUnconnectedPages.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
client/tests/phpunit/includes/Changes/AffectedPagesFinderTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -537,6 +537,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 ),
Please login to merge, or discard this patch.
client/tests/phpunit/includes/Changes/InjectRCRecordsJobTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 )
Please login to merge, or discard this patch.
client/tests/phpunit/includes/Hooks/DataUpdateHookHandlersTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,6 @@
 block discarded – undo
127 127
 	}
128 128
 
129 129
 	/**
130
-	 * @param Title $title
131 130
 	 * @param array|null $currentUsages
132 131
 	 *
133 132
 	 * @return UsageLookup
Please login to merge, or discard this patch.