Completed
Pull Request — master (#5)
by
unknown
09:36
created
repo/Wikibase.hooks.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 	 * @param SkinTemplate $skinTemplate
412 412
 	 * @param array $links
413 413
 	 *
414
-	 * @return bool
414
+	 * @return null|boolean
415 415
 	 */
416 416
 	public static function onPageTabs( SkinTemplate &$skinTemplate, array &$links ) {
417 417
 		$entityContentFactory = WikibaseRepo::getDefaultInstance()->getEntityContentFactory();
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 	 * @param Title|null $title use for further information
740 740
 	 * @param bool $local shall links be generated locally or globally
741 741
 	 *
742
-	 * @return bool
742
+	 * @return boolean|null
743 743
 	 */
744 744
 	public static function onFormat( &$comment, $pre, $auto, $post, $title, $local ) {
745 745
 		global $wgLang, $wgTitle;
Please login to merge, or discard this patch.
repo/includes/WikibaseRepo.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1241,7 +1241,7 @@  discard block
 block discarded – undo
1241 1241
 	/**
1242 1242
 	 * Get the mapping of entity types => content models
1243 1243
 	 *
1244
-	 * @return array
1244
+	 * @return string[]
1245 1245
 	 */
1246 1246
 	public function getContentModelMappings() {
1247 1247
 		$map = $this->entityTypeDefinitions->getContentModelIds();
@@ -1261,7 +1261,7 @@  discard block
 block discarded – undo
1261 1261
 	}
1262 1262
 
1263 1263
 	/**
1264
-	 * @return string[] List of entity type identifiers (typically "item" and "property")
1264
+	 * @return integer[] List of entity type identifiers (typically "item" and "property")
1265 1265
 	 *  that are configured in WikibaseRepo.entitytypes.php and enabled via the
1266 1266
 	 *  $wgWBRepoSettings['entityNamespaces'] setting. Optionally the list also contains
1267 1267
 	 *  entity types from the configured foreign repositories.
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
 	}
1290 1290
 
1291 1291
 	/**
1292
-	 * @return string[] List of entity type identifiers (typically "item" and "property")
1292
+	 * @return integer[] List of entity type identifiers (typically "item" and "property")
1293 1293
 	 *  that are configured in WikibaseRepo.entitytypes.php and enabled via the
1294 1294
 	 *  $wgWBRepoSettings['entityNamespaces'] setting.
1295 1295
 	 */
Please login to merge, or discard this patch.
view/tests/phpunit/SimpleEntityTermsViewTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
79 79
 		);
80 80
 	}
81 81
 
82
+	/**
83
+	 * @param string $term
84
+	 */
82 85
 	private function getTermList( $term, $languageCode = 'en' ) {
83 86
 		return new TermList( [ new Term( $languageCode, $term ) ] );
84 87
 	}
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Specials/SpecialMergeItemsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@
 block discarded – undo
194 194
 		return $titleLookup;
195 195
 	}
196 196
 
197
+	/**
198
+	 * @return string
199
+	 */
197 200
 	private function executeSpecialMergeItems( $params, User $user = null ) {
198 201
 		if ( !$user ) {
199 202
 			$user = $GLOBALS['wgUser'];
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/WikibaseRepoTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@
 block discarded – undo
363 363
 	}
364 364
 
365 365
 	/**
366
-	 * @param $repositoryName
366
+	 * @param string $repositoryName
367 367
 	 * @param array $customSettings
368 368
 	 *
369 369
 	 * @return array
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/Specials/SpecialRedirectEntityTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@
 block discarded – undo
151 151
 		);
152 152
 	}
153 153
 
154
+	/**
155
+	 * @return string
156
+	 */
154 157
 	private function executeSpecialEntityRedirect( array $params, User $user = null ) {
155 158
 		if ( !$user ) {
156 159
 			$user = $GLOBALS['wgUser'];
Please login to merge, or discard this patch.
phpunit/includes/ChangeOp/Deserialization/ItemChangeOpDeserializerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
 		) );
107 107
 	}
108 108
 
109
+	/**
110
+	 * @return ChangeOpDeserializerFactory
111
+	 */
109 112
 	private function getChangeOpDeserializerFactoryMock() {
110 113
 		return $this->getMockBuilder( ChangeOpDeserializerFactory::class )
111 114
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
client/includes/Hooks/MagicWordHookHandlers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	 * @param string &$magicWordId
78 78
 	 * @param string &$ret
79 79
 	 *
80
-	 * @return bool
80
+	 * @return boolean|null
81 81
 	 */
82 82
 	public static function onParserGetVariableValueSwitch( Parser &$parser, &$cache, &$magicWordId, &$ret ) {
83 83
 		$handler = self::newFromGlobalState();
Please login to merge, or discard this patch.
repo/tests/phpunit/includes/ChangeOp/ChangeOpStatementRankTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -75,6 +75,10 @@
 block discarded – undo
75 75
 		$this->assertEquals( $expectedRank, $rank, "No reference with expected hash" );
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string $itemIdString
80
+	 * @param PropertyValueSnak $mainSnak
81
+	 */
78 82
 	private function newItemWithClaim( $itemIdString, $mainSnak ) {
79 83
 		$item = new Item( new ItemId( $itemIdString ) );
80 84
 
Please login to merge, or discard this patch.