Completed
Pull Request — master (#12)
by
unknown
11:14 queued 04:45
created
repo/includes/Content/EntityHandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
 	 * @param Revision|Content $older Must be an earlier revision than $newer
555 555
 	 * @param bool $undoIsLatest Set to true if $newer is from the current revision (since 1.32)
556 556
 	 *
557
-	 * @return EntityContent|bool Content on success, false on failure
557
+	 * @return null|Content Content on success, false on failure
558 558
 	 */
559 559
 	public function getUndoContent( $latest, $newer, $older, $undoIsLatest = false ) {
560 560
 		$latestContent = ( $latest instanceof Revision ) ? $latest->getContent() : $latest;
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
 	 * @param EntityContent $content
613 613
 	 * @param Title $title
614 614
 	 *
615
-	 * @return DeferrableUpdate[]
615
+	 * @return DataUpdateAdapter[]
616 616
 	 */
617 617
 	public function getEntityDeletionUpdates( EntityContent $content, Title $title ) {
618 618
 		$updates = [];
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 	 * @param EntityContent $content
645 645
 	 * @param Title $title
646 646
 	 *
647
-	 * @return DataUpdate[]
647
+	 * @return DataUpdateAdapter[]
648 648
 	 */
649 649
 	public function getEntityModificationUpdates( EntityContent $content, Title $title ) {
650 650
 		// Call the WikibaseEntityModificationUpdate hook.
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
 
659 659
 	/**
660 660
 	 * @param EntityContent $content
661
-	 * @return DataUpdate[]
661
+	 * @return DataUpdateAdapter[]
662 662
 	 * @throws MWException
663 663
 	 */
664 664
 	protected function getTermIndexEntityModificationUpdates( EntityContent $content ) {
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
@@ -93,6 +93,15 @@  discard block
 block discarded – undo
93 93
 	 * @see showEntityResultHit
94 94
 	 * @see showPlainSearchHit
95 95
 	 *
96
+	 * @param string $link
97
+	 * @param string $redirect
98
+	 * @param string $section
99
+	 * @param string $extract
100
+	 * @param string $score
101
+	 * @param string $size
102
+	 * @param string $date
103
+	 * @param string $related
104
+	 * @param string $html
96 105
 	 */
97 106
 	public static function onShowSearchHit( SpecialSearch $searchPage, SearchResult $result,
98 107
 		array $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related,
@@ -200,6 +209,7 @@  discard block
 block discarded – undo
200 209
 	 * @param string &$html The html of the description will be appended here.
201 210
 	 * @param string[] $description Description as [language, value] array
202 211
 	 * @param SpecialSearch $searchPage
212
+	 * @param string $html
203 213
 	 */
204 214
 	public static function addDescription( &$html, array $description, SpecialSearch $searchPage ) {
205 215
 		RequestContext::getMain()->getOutput()->addModuleStyles( [ 'wikibase.common' ] );
Please login to merge, or discard this patch.
repo/includes/ParserOutput/EntityParserOutputGeneratorFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -258,6 +258,9 @@
 block discarded – undo
258 258
 		);
259 259
 	}
260 260
 
261
+	/**
262
+	 * @param PropertyDataTypeMatcher $propertyDataTypeMatcher
263
+	 */
261 264
 	private function newGeoDataDataUpdater( $propertyDataTypeMatcher ): StatementDataUpdater {
262 265
 		return new GeoDataDataUpdater(
263 266
 			$propertyDataTypeMatcher,
Please login to merge, or discard this patch.
repo/includes/ParserOutput/TermboxView.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@
 block discarded – undo
69 69
 
70 70
 	/**
71 71
 	 * @see \Wikibase\View\ViewPlaceHolderEmitter
72
+	 * @param string $languageCode
72 73
 	 */
73 74
 	public function getPlaceholders(
74 75
 		EntityDocument $entity,
Please login to merge, or discard this patch.
repo/includes/Specials/SpecialNewItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -264,6 +264,9 @@
 block discarded – undo
264 264
 		return Status::newGood();
265 265
 	}
266 266
 
267
+	/**
268
+	 * @param \ValueValidators\Error $error
269
+	 */
267 270
 	private function createStatusFromValidatorError( $error ) {
268 271
 		$params = array_merge( [ 'wikibase-validator-' . $error->getCode() ],  $error->getParameters() );
269 272
 		return Status::newFatal( ...$params );
Please login to merge, or discard this patch.
repo/includes/WikibaseRepo.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1621,7 +1621,7 @@  discard block
 block discarded – undo
1621 1621
 	/**
1622 1622
 	 * Get the mapping of entity types => content models
1623 1623
 	 *
1624
-	 * @return array
1624
+	 * @return string[]
1625 1625
 	 */
1626 1626
 	public function getContentModelMappings() {
1627 1627
 		$map = $this->entityTypeDefinitions->getContentModelIds();
@@ -2490,10 +2490,16 @@  discard block
 block discarded – undo
2490 2490
 		return $this->entitySourceDefinitions;
2491 2491
 	}
2492 2492
 
2493
+	/**
2494
+	 * @return callable[]
2495
+	 */
2493 2496
 	private function getMultiRepositoryServiceWiring() {
2494 2497
 		return require __DIR__ . '/../../data-access/src/MultiRepositoryServiceWiring.php';
2495 2498
 	}
2496 2499
 
2500
+	/**
2501
+	 * @return callable[]
2502
+	 */
2497 2503
 	private function getPerRepositoryServiceWiring() {
2498 2504
 		return require __DIR__ . '/../../data-access/src/PerRepositoryServiceWiring.php';
2499 2505
 	}
Please login to merge, or discard this patch.
repo/RepoHooks.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,6 +165,7 @@  discard block
 block discarded – undo
165 165
 	 *
166 166
 	 * @param int $ns Namespace ID
167 167
 	 * @param bool &$movable
168
+	 * @param boolean $movable
168 169
 	 */
169 170
 	public static function onNamespaceIsMovable( $ns, &$movable ) {
170 171
 		if ( self::isNamespaceUsedByLocalEntities( $ns ) ) {
@@ -172,6 +173,9 @@  discard block
 block discarded – undo
172 173
 		}
173 174
 	}
174 175
 
176
+	/**
177
+	 * @param integer $namespace
178
+	 */
175 179
 	private static function isNamespaceUsedByLocalEntities( $namespace ) {
176 180
 		$wikibaseRepo = WikibaseRepo::getDefaultInstance();
177 181
 		$namespaceLookup = $wikibaseRepo->getEntityNamespaceLookup();
@@ -777,6 +781,7 @@  discard block
 block discarded – undo
777 781
 	 * @param string $contentModel
778 782
 	 * @param LinkTarget $title Actually a Title object, but we only require getNamespace
779 783
 	 * @param bool &$ok
784
+	 * @param boolean $ok
780 785
 	 *
781 786
 	 * @return bool
782 787
 	 */
@@ -905,7 +910,7 @@  discard block
 block discarded – undo
905 910
 	/**
906 911
 	 * Called by Import.php. Implemented to prevent the import of entities.
907 912
 	 *
908
-	 * @param object $importer unclear, see Bug T66657
913
+	 * @param \stdClass $importer unclear, see Bug T66657
909 914
 	 * @param array $pageInfo
910 915
 	 * @param array $revisionInfo
911 916
 	 *
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Api/EntityLoadingHelperTest.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
 	 * @param EntityRevision|null $entityRevision The EntityRevision getEntityRevision() should return.
54 54
 	 * @param Exception|null $exception The Exception getEntityRevision() should throw.
55 55
 	 *
56
-	 * @return EntityRevisionLookup|MockObject
56
+	 * @return EntityRevisionLookup
57 57
 	 */
58 58
 	protected function getMockEntityRevisionLookup(
59 59
 		EntityId $entityId = null,
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Api/EntityTermSearchHelperTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 * @param string $type
34 34
 	 * @param TermSearchResult[] $returnResults
35 35
 	 *
36
-	 * @return ConfigurableTermSearchInteractor|MockObject
36
+	 * @return ConfigurableTermSearchInteractor
37 37
 	 */
38 38
 	private function getMockSearchInteractor(
39 39
 		$search,
Please login to merge, or discard this patch.