Completed
Pull Request — master (#3)
by
unknown
07:49
created
repo/includes/Hooks/InfoActionHookHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
 	/**
211 211
 	 * Returns a map of namespace names to URIs
212 212
 	 *
213
-	 * @return array
213
+	 * @return string[]
214 214
 	 */
215 215
 	public function getNamespaces() {
216 216
 		return $this->vocabulary->getNamespaces();
Please login to merge, or discard this patch.
lib/includes/Interactors/TermIndexSearchInteractor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 	/**
342 342
 	 * @param EntityId $entityId
343 343
 	 *
344
-	 * @return null|Term
344
+	 * @return \Wikibase\DataModel\Term\TermFallback|null
345 345
 	 */
346 346
 	private function getLabelDisplayTerm( EntityId $entityId ) {
347 347
 		return $this->labelDescriptionLookup->getLabel( $entityId );
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 	/**
351 351
 	 * @param EntityId $entityId
352 352
 	 *
353
-	 * @return null|Term
353
+	 * @return \Wikibase\DataModel\Term\TermFallback|null
354 354
 	 */
355 355
 	private function getDescriptionDisplayTerm( EntityId $entityId ) {
356 356
 		return $this->labelDescriptionLookup->getDescription( $entityId );
Please login to merge, or discard this patch.
lib/tests/phpunit/Store/DispatchingEntityRevisionLookupTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 class DispatchingEntityRevisionLookupTest extends \PHPUnit_Framework_TestCase {
23 23
 
24 24
 	/**
25
-	 * @return \PHPUnit_Framework_MockObject_MockObject|EntityRevisionLookup
25
+	 * @return \Wikibase\DataModel\Entity\EntityDocument
26 26
 	 */
27 27
 	private function getDummyEntityRevisionLookup() {
28 28
 		return $this->getMock( EntityRevisionLookup::class );
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/Sql/WikiPageEntityMetaDataLookupTest.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -101,6 +101,8 @@
 block discarded – undo
101 101
 
102 102
 	/**
103 103
 	 * Gets a "lagged" database connection: We always leave out the first row on select.
104
+	 * @param integer $selectCount
105
+	 * @param integer $selectRowCount
104 106
 	 */
105 107
 	private function getLaggedDatabase( DatabaseBase $realDB, $selectCount, $selectRowCount ) {
106 108
 		$db = $this->getMockBuilder( DatabaseBase::class )
Please login to merge, or discard this patch.
lib/includes/Store/DispatchingTermBuffer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 	 * @see TermBuffer::prefetchTerms
67 67
 	 *
68 68
 	 * @param array $entityIds
69
-	 * @param array|null $termTypes
70
-	 * @param array|null $languageCodes
69
+	 * @param string[] $termTypes
70
+	 * @param string[] $languageCodes
71 71
 	 */
72 72
 	public function prefetchTerms( array $entityIds, array $termTypes = null, array $languageCodes = null ) {
73 73
 		$groupedIds = $this->groupEntityIdsByRepo( $entityIds );
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 * @param string $termType
96 96
 	 * @param string $languageCode
97 97
 	 *
98
-	 * @return string|false|null
98
+	 * @return string|null
99 99
 	 */
100 100
 	public function getPrefetchedTerm( EntityId $entityId, $termType, $languageCode ) {
101 101
 		$termBuffer = $this->getTermBufferForRepository( $entityId->getRepositoryName() );
Please login to merge, or discard this patch.