@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param array $termsByLanguage |
|
206 | + * @param string[] $termsByLanguage |
|
207 | 207 | * |
208 | 208 | * @return string[]|null |
209 | 209 | */ |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * |
225 | 225 | * @param Title|null $currentTitle |
226 | 226 | * @param RequestContext $context |
227 | - * @return bool |
|
227 | + * @return null|boolean |
|
228 | 228 | */ |
229 | 229 | private function shouldConvert( Title $currentTitle = null, RequestContext $context ) { |
230 | 230 | static $shouldConvert = null; |
@@ -302,6 +302,13 @@ |
||
302 | 302 | return $parser; |
303 | 303 | } |
304 | 304 | |
305 | + /** |
|
306 | + * @param string $languageCode |
|
307 | + * @param string $userLanguageCode |
|
308 | + * @param boolean $interfaceMessage |
|
309 | + * @param boolean $disableContentConversion |
|
310 | + * @param boolean $disableTitleConversion |
|
311 | + */ |
|
305 | 312 | private function getParserOptions( $languageCode, $userLanguageCode, $interfaceMessage, |
306 | 313 | $disableContentConversion, $disableTitleConversion |
307 | 314 | ) { |
@@ -116,7 +116,7 @@ discard block |
||
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 |
||
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' ); |
@@ -211,7 +211,7 @@ |
||
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 |
@@ -41,7 +41,7 @@ |
||
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 |
@@ -28,7 +28,7 @@ |
||
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(); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | /** |
85 | 85 | * Convenience method for creating Statements. |
86 | 86 | * |
87 | - * @param string|PropertyId $propertyId |
|
87 | + * @param string $propertyId |
|
88 | 88 | * |
89 | 89 | * @param string|int|float|DataValue|null $value The value of the new |
90 | 90 | * claim's main snak. Null will result in a PropertyNoValueSnak. |
@@ -543,6 +543,9 @@ |
||
543 | 543 | $this->assertEntityPerPage( false, $entityId ); |
544 | 544 | } |
545 | 545 | |
546 | + /** |
|
547 | + * @param boolean $expected |
|
548 | + */ |
|
546 | 549 | private function assertEntityPerPage( $expected, EntityId $entityId ) { |
547 | 550 | $pageId = $this->getPageId( $entityId ); |
548 | 551 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Wikibase\Repo\Tests\Store\Sql; |
4 | 4 | |
5 | 5 | use InvalidArgumentException; |
6 | -use MediaWiki\MediaWikiServices; |
|
7 | 6 | use MediaWikiTestCase; |
8 | 7 | use RawMessage; |
9 | 8 | use Revision; |
@@ -235,7 +235,7 @@ |
||
235 | 235 | * |
236 | 236 | * @param DiffOp $siteLinkDiffOp |
237 | 237 | * |
238 | - * @return Title|false |
|
238 | + * @return \Wikibase\DataModel\Entity\EntityId |
|
239 | 239 | */ |
240 | 240 | private function getTitleForNotification( DiffOp $siteLinkDiffOp ) { |
241 | 241 | if ( $siteLinkDiffOp instanceof DiffOpAdd ) { |