Completed
Push — master ( 0a3cfd...237071 )
by
unknown
07:05 queued 13s
created
repo/tests/phpunit/includes/Api/SetReferenceTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -245,6 +245,9 @@
 block discarded – undo
245 245
 		) );
246 246
 	}
247 247
 
248
+	/**
249
+	 * @param string|null $referenceHash
250
+	 */
248 251
 	protected function makeInvalidRequest(
249 252
 		string $statementGuid,
250 253
 		?string $referenceHash,
Please login to merge, or discard this patch.
lib/tests/phpunit/Formatters/ItemPropertyIdHtmlLinkFormatterTest.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -333,6 +333,11 @@  discard block
 block discarded – undo
333 333
 		$this->assertEquals( $expectedResult, $result );
334 334
 	}
335 335
 
336
+	/**
337
+	 * @param string $entityId
338
+	 *
339
+	 * @return EntityTitleTextLookup
340
+	 */
336 341
 	private function getEntityTitleTextLookup( $entityId ) {
337 342
 		$entityTitleTextLookup = $this->createMock( EntityTitleTextLookup::class );
338 343
 		$entityTitleTextLookup
@@ -342,6 +347,9 @@  discard block
 block discarded – undo
342 347
 		return $entityTitleTextLookup;
343 348
 	}
344 349
 
350
+	/**
351
+	 * @return EntityUrlLookup
352
+	 */
345 353
 	private function getEntityUrlLookup() {
346 354
 		$entityUrlLookup = $this->createMock( EntityUrlLookup::class );
347 355
 		$entityUrlLookup
@@ -445,16 +453,25 @@  discard block
 block discarded – undo
445 453
 		);
446 454
 	}
447 455
 
456
+	/**
457
+	 * @param string $itemId
458
+	 */
448 459
 	private function itemPageUrl( $itemId ) {
449 460
 		return "/index.php/{$itemId}";
450 461
 	}
451 462
 
463
+	/**
464
+	 * @param string $languageCode
465
+	 */
452 466
 	private function givenUserLanguageIs( $languageCode ) {
453 467
 		$this->setUserLang( $languageCode );
454 468
 		$this->currentUserLanguage = $languageCode;
455 469
 
456 470
 		return new class( $this ) extends ItemPropertyIdHtmlLinkFormatterTest {
457 471
 
472
+			/**
473
+			 * @param ItemPropertyIdHtmlLinkFormatterTest $testCase
474
+			 */
458 475
 			public function __construct( $testCase ) {
459 476
 				$this->testCase = $testCase;
460 477
 			}
@@ -463,6 +480,9 @@  discard block
 block discarded – undo
463 480
 				$this->testCase->fallbackChain = $languageCodes;
464 481
 			}
465 482
 
483
+			/**
484
+			 * @param string $anotherLanguage
485
+			 */
466 486
 			public function canBeTransliteratedFrom( $anotherLanguage ) {
467 487
 				$this->testCase->transliterationMap[ $anotherLanguage ] = $this->testCase->currentUserLanguage;
468 488
 			}
@@ -470,6 +490,11 @@  discard block
 block discarded – undo
470 490
 		};
471 491
 	}
472 492
 
493
+	/**
494
+	 * @param string $itemId
495
+	 * @param string $labelLanguage
496
+	 * @param string $labelText
497
+	 */
473 498
 	private function givenItemHasLabel( $itemId, $labelLanguage, $labelText ) {
474 499
 		$this->givenItemExists( 'Q1' );
475 500
 
@@ -575,12 +600,20 @@  discard block
 block discarded – undo
575 600
 		};
576 601
 	}
577 602
 
603
+	/**
604
+	 * @param string $propertyId
605
+	 * @param string $labelLanguage
606
+	 * @param string $labelText
607
+	 */
578 608
 	private function givenPropertyHasLabel( $propertyId, $labelLanguage, $labelText ) {
579 609
 		$this->givenPropertyExists( 'P1' );
580 610
 
581 611
 		$this->givenEntityHasLabel( new PropertyId( $propertyId ), $labelLanguage, $labelText );
582 612
 	}
583 613
 
614
+	/**
615
+	 * @param string $propertyId
616
+	 */
584 617
 	private function propertyPageUrl( $propertyId ) {
585 618
 		return "/index.php/Property:{$propertyId}";
586 619
 	}
Please login to merge, or discard this patch.
repo/includes/Hooks/ShowSearchHitHandler.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -82,6 +82,15 @@  discard block
 block discarded – undo
82 82
 	 * @param string &$date
83 83
 	 * @param string &$related
84 84
 	 * @param string &$html
85
+	 * @param string $link
86
+	 * @param string $redirect
87
+	 * @param string $section
88
+	 * @param string $extract
89
+	 * @param string $score
90
+	 * @param string $size
91
+	 * @param string $date
92
+	 * @param string $related
93
+	 * @param string $html
85 94
 	 * @return void
86 95
 	 */
87 96
 	public function onShowSearchHit( $searchPage, $result,
@@ -200,6 +209,7 @@  discard block
 block discarded – undo
200 209
 	 * @param SpecialSearch $specialSearch
201 210
 	 * @param string[] &$query
202 211
 	 * @param string[] &$attributes
212
+	 * @param string $titleSnippet
203 213
 	 * @return void
204 214
 	 */
205 215
 	public function onShowSearchHitTitle(
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/MediawikiEditEntityTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
  */
39 39
 class MediawikiEditEntityTest extends MediaWikiIntegrationTestCase {
40 40
 
41
+	/**
42
+	 * @param string $name
43
+	 */
41 44
 	private function getUser( $name ) {
42 45
 		$user = User::newFromName( $name );
43 46
 
@@ -120,7 +123,7 @@  discard block
 block discarded – undo
120 123
 	 * @param EntityId $entityId
121 124
 	 * @param EntityTitleStoreLookup $titleLookup
122 125
 	 * @param User|null $user
123
-	 * @param bool $baseRevId
126
+	 * @param integer $baseRevId
124 127
 	 * @param bool[]|null $permissions map of actions to bool, indicating which actions are allowed.
125 128
 	 * @param EditFilterHookRunner|null $editFilterHookRunner
126 129
 	 *
Please login to merge, or discard this patch.
lib/tests/phpunit/Store/CachingFallbackLabelDescriptionLookupTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -325,6 +325,9 @@  discard block
 block discarded – undo
325 325
 		$this->assertEquals( $expectedLabel, $gotLabel );
326 326
 	}
327 327
 
328
+	/**
329
+	 * @return RedirectResolvingLatestRevisionLookup
330
+	 */
328 331
 	private function newRedirectResolvingLatestRevisionLookup( int $revision, EntityId $entityId ) {
329 332
 		$revLookup = $this->prophesize( RedirectResolvingLatestRevisionLookup::class );
330 333
 		$revLookup->lookupLatestRevisionResolvingRedirect( Argument::any() )
@@ -333,6 +336,9 @@  discard block
 block discarded – undo
333 336
 		return $revLookup->reveal();
334 337
 	}
335 338
 
339
+	/**
340
+	 * @return TermLanguageFallbackChain
341
+	 */
336 342
 	private function newFallbackChain() {
337 343
 		$fallbackChain = $this->prophesize( TermLanguageFallbackChain::class );
338 344
 		$fallbackChain->getFetchLanguageCodes()->willReturn( [ 'en' ] );
Please login to merge, or discard this patch.
lib/includes/TermLanguageFallbackChain.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
 
23 23
 	/**
24 24
 	 * @param LanguageWithConversion[] $chain
25
-	 * @param ContentLanguages|null $termLanguages
25
+	 * @param ContentLanguages $termLanguages
26 26
 	 */
27 27
 	public function __construct( array $chain, ContentLanguages $termLanguages ) {
28 28
 		$this->chain = array_values( array_filter(
Please login to merge, or discard this patch.
lib/includes/Store/CachingFallbackLabelDescriptionLookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
 		return $label;
118 118
 	}
119 119
 
120
+	/**
121
+	 * @param string $languageCode
122
+	 */
120 123
 	private function getTerm( EntityId $entityId, $languageCode, $termName = self::LABEL ) {
121 124
 		$resolutionResult = $this->redirectResolvingRevisionLookup->lookupLatestRevisionResolvingRedirect( $entityId );
122 125
 		if ( $resolutionResult === null ) {
Please login to merge, or discard this patch.
lib/includes/Store/CachingPrefetchingTermLookup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
 	 * @param EntityId $entityId
270 270
 	 * @param string $termType
271 271
 	 * @param string $languageCode
272
-	 * @param string|string[] $freshTerm string for existing label or description, string[] for existing aliases
272
+	 * @param string $freshTerm string for existing label or description, string[] for existing aliases
273 273
 	 *                                   Should never be null or false @see bufferAndCacheMissingTerm
274 274
 	 */
275 275
 	private function bufferAndCacheExistingTerm( EntityId $entityId, string $termType, string $languageCode, $freshTerm ): void {
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Store/CachingPrefetchingTermLookupTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -646,6 +646,9 @@  discard block
 block discarded – undo
646 646
 		return $revisionAndRedirectResolver;
647 647
 	}
648 648
 
649
+	/**
650
+	 * @return string
651
+	 */
649 652
 	private function buildTestCacheKey(
650 653
 		string $itemId,
651 654
 		string $termType,
@@ -663,6 +666,9 @@  discard block
 block discarded – undo
663 666
 		return $mockCache;
664 667
 	}
665 668
 
669
+	/**
670
+	 * @param boolean $fillValue
671
+	 */
666 672
 	private function newMockCacheExpectingKeys( array $expectedCacheKeys, $fillValue = null ): CacheInterface {
667 673
 		$cache = $this->createMock( CacheInterface::class );
668 674
 		$cache->expects( $this->once() )
Please login to merge, or discard this patch.