Completed
Pull Request — master (#3)
by
unknown
07:49
created
repo/includes/Hooks/OutputPageBeforeHTMLHookHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	 * @param OutputPage $out
117 117
 	 * @param string &$html the HTML to mangle
118 118
 	 *
119
-	 * @return bool
119
+	 * @return boolean|null
120 120
 	 */
121 121
 	public static function onOutputPageBeforeHTML( OutputPage $out, &$html ) {
122 122
 		$self = self::newFromGlobalState();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 * @param OutputPage $out
129 129
 	 * @param string &$html
130 130
 	 *
131
-	 * @return bool
131
+	 * @return boolean|null
132 132
 	 */
133 133
 	public function doOutputPageBeforeHTML( OutputPage $out, &$html ) {
134 134
 		$placeholders = $out->getProperty( 'wikibase-view-chunks' );
Please login to merge, or discard this patch.
lib/includes/Store/BufferingTermLookup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 	 *
108 108
 	 * @param EntityId[] $entityIds
109 109
 	 * @param string[]|null $termTypes
110
-	 * @param string[]|null $languageCodes
110
+	 * @param string[] $languageCodes
111 111
 	 *
112 112
 	 * @throws StorageException
113 113
 	 */
Please login to merge, or discard this patch.
lib/includes/Store/ChunkCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
 	 * @param int $before insert into the internal entry list before this position.
212 212
 	 *
213 213
 	 * @throws MWException
214
-	 * @return array|bool the cache entry created by inserting the new chunk, or false if
214
+	 * @return integer|null the cache entry created by inserting the new chunk, or false if
215 215
 	 *         there is no more data to load from the source at the given position.
216 216
 	 *         The cache entry is an associative array containing the following keys:
217 217
 	 *         - start: the key the chunk starts at
Please login to merge, or discard this patch.
lib/tests/phpunit/Formatters/TimeDetailsFormatterTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 	/**
43 43
 	 * @param string $timestamp
44
-	 * @param int|string $timezone
44
+	 * @param integer $timezone
45 45
 	 * @param int|string $before
46 46
 	 * @param int|string $after
47 47
 	 * @param int|string $precision
Please login to merge, or discard this patch.
lib/tests/phpunit/Store/CachingEntityRevisionLookupTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	 * @param EntityRevision[] $entityRevisions
29 29
 	 * @param EntityRedirect[] $entityRedirects
30 30
 	 *
31
-	 * @return EntityLookup
31
+	 * @return CachingEntityRevisionLookup
32 32
 	 */
33 33
 	protected function newEntityRevisionLookup( array $entityRevisions, array $entityRedirects ) {
34 34
 		$mock = new MockRepository();
Please login to merge, or discard this patch.
lib/tests/phpunit/Store/MockTermIndex.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -425,6 +425,10 @@
 block discarded – undo
425 425
 		return false;
426 426
 	}
427 427
 
428
+	/**
429
+	 * @param string $find
430
+	 * @param string|null $text
431
+	 */
428 432
 	private function textMatches( $find, $text, array $options = array() ) {
429 433
 
430 434
 		if ( isset( $options[ 'caseSensitive' ] ) && !$options[ 'caseSensitive' ] ) {
Please login to merge, or discard this patch.
repo/Wikibase.hooks.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 	 * @param SkinTemplate $skinTemplate
429 429
 	 * @param array $links
430 430
 	 *
431
-	 * @return bool
431
+	 * @return null|boolean
432 432
 	 */
433 433
 	public static function onPageTabs( SkinTemplate &$skinTemplate, array &$links ) {
434 434
 		$entityContentFactory = WikibaseRepo::getDefaultInstance()->getEntityContentFactory();
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 	 * @param Title|null $title use for further information
762 762
 	 * @param bool $local shall links be generated locally or globally
763 763
 	 *
764
-	 * @return bool
764
+	 * @return boolean|null
765 765
 	 */
766 766
 	public static function onFormat( $data, &$comment, $pre, $auto, $post, $title, $local ) {
767 767
 		global $wgLang, $wgTitle;
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
 	 * @param string $modelId
874 874
 	 * @param ContentHandler|null $handler
875 875
 	 *
876
-	 * @return bool|null False on success to stop other ContentHandlerForModelID hooks from running,
876
+	 * @return false|null False on success to stop other ContentHandlerForModelID hooks from running,
877 877
 	 *  null on error.
878 878
 	 */
879 879
 	public static function onContentHandlerForModelID( $modelId, &$handler ) {
Please login to merge, or discard this patch.
view/src/SimpleEntityTermsView.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -233,6 +233,9 @@
 block discarded – undo
233 233
 		return $languageFallbackChain;
234 234
 	}
235 235
 
236
+	/**
237
+	 * @param string $languageCode
238
+	 */
236 239
 	protected function getBabel( $languageCode, $user ) {
237 240
 		$babel = array();
238 241
 
Please login to merge, or discard this patch.
phpunit/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibraryTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -202,6 +202,9 @@
 block discarded – undo
202 202
 		$this->assertSame( $expected, $result );
203 203
 	}
204 204
 
205
+	/**
206
+	 * @return RepoLinker
207
+	 */
205 208
 	private function getRepoLinker() {
206 209
 		$repoLinker = $this->getMockBuilder( RepoLinker::class )
207 210
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.