Completed
Push — master ( 259aca...c91093 )
by
unknown
06:39
created
repo/tests/phpunit/includes/Api/SetQualifierTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
180 180
 		$this->makeSetQualifierRequest( $guid, $hash, $newQualifier, $item->getId() );
181 181
 	}
182 182
 
183
+	/**
184
+	 * @param null|string $snakhash
185
+	 */
183 186
 	protected function makeSetQualifierRequest( string $statementGuid, ?string $snakhash, Snak $qualifier, EntityId $entityId ): void {
184 187
 		$params = [
185 188
 			'action' => 'wbsetqualifier',
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Api/RemoveReferencesTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -155,6 +155,9 @@
 block discarded – undo
155 155
 		$this->makeInvalidRequest( $statementGuid, $hashes, 'no-such-reference' );
156 156
 	}
157 157
 
158
+	/**
159
+	 * @param string $expectedError
160
+	 */
158 161
 	protected function makeInvalidRequest( string $statementGuid, array $hashes, ?string $expectedError ): void {
159 162
 		$params = [
160 163
 			'action' => 'wbremovereferences',
Please login to merge, or discard this patch.
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.