@@ -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' ); |
@@ -107,7 +107,7 @@ |
||
| 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 | */ |
@@ -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(); |
@@ -425,6 +425,10 @@ |
||
| 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' ] ) { |
@@ -428,7 +428,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 ) { |
@@ -233,6 +233,9 @@ |
||
| 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 | |
@@ -202,6 +202,9 @@ |
||
| 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() |