@@ -122,6 +122,9 @@ |
||
| 122 | 122 | $this->fail( "Failed to find submit element" ); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $messageText |
|
| 127 | + */ |
|
| 125 | 128 | protected function assertHtmlContainsErrorMessage( $html, $messageText ) { |
| 126 | 129 | $assertions = [ |
| 127 | 130 | [ $this, 'assertHtmlContainsFormErrorMessage' ], |
@@ -101,6 +101,8 @@ |
||
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Gets a "lagged" database connection: We always leave out the first row on select. |
| 104 | + * @param integer $selectCount |
|
| 105 | + * @param integer $selectRowCount |
|
| 104 | 106 | */ |
| 105 | 107 | private function getLaggedDatabase( Database $realDB, $selectCount, $selectRowCount ) { |
| 106 | 108 | $db = $this->getMockBuilder( Database::class ) |
@@ -166,6 +166,9 @@ |
||
| 166 | 166 | return $mockDataTypeLookup; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $string |
|
| 171 | + */ |
|
| 169 | 172 | private function fixLineEndings( $string ) { |
| 170 | 173 | return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string ); |
| 171 | 174 | } |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | * @param SkinTemplate $skinTemplate |
| 414 | 414 | * @param array $links |
| 415 | 415 | * |
| 416 | - * @return bool |
|
| 416 | + * @return null|boolean |
|
| 417 | 417 | */ |
| 418 | 418 | public static function onPageTabs( SkinTemplate &$skinTemplate, array &$links ) { |
| 419 | 419 | $entityContentFactory = WikibaseRepo::getDefaultInstance()->getEntityContentFactory(); |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | * @param Title|null $title use for further information |
| 742 | 742 | * @param bool $local shall links be generated locally or globally |
| 743 | 743 | * |
| 744 | - * @return bool |
|
| 744 | + * @return boolean|null |
|
| 745 | 745 | */ |
| 746 | 746 | public static function onFormat( &$comment, $pre, $auto, $post, $title, $local ) { |
| 747 | 747 | global $wgLang, $wgTitle; |
@@ -859,7 +859,7 @@ discard block |
||
| 859 | 859 | * @param string $modelId |
| 860 | 860 | * @param ContentHandler|null $handler |
| 861 | 861 | * |
| 862 | - * @return bool|null False on success to stop other ContentHandlerForModelID hooks from running, |
|
| 862 | + * @return false|null False on success to stop other ContentHandlerForModelID hooks from running, |
|
| 863 | 863 | * null on error. |
| 864 | 864 | */ |
| 865 | 865 | public static function onContentHandlerForModelID( $modelId, &$handler ) { |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | ); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $languageCode |
|
| 117 | + */ |
|
| 115 | 118 | protected function getHeadingHtml( |
| 116 | 119 | $languageCode, |
| 117 | 120 | EntityId $entityId = null, |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @param string $type |
| 62 | 62 | * @param TermSearchResult[] $returnResults |
| 63 | 63 | * |
| 64 | - * @return ConfigurableTermSearchInteractor|\PHPUnit_Framework_MockObject_MockObject |
|
| 64 | + * @return ConfigurableTermSearchInteractor |
|
| 65 | 65 | */ |
| 66 | 66 | private function getMockSearchInteractor( $search, $language, $type, array $returnResults = array() ) { |
| 67 | 67 | $mock = $this->getMock( ConfigurableTermSearchInteractor::class ); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | const EXISTING_ITEM_ID = 'Q123'; |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return EntityTitleLookup|\PHPUnit_Framework_MockObject_MockObject |
|
| 41 | + * @return EntityTitleLookup |
|
| 42 | 42 | */ |
| 43 | 43 | private function getMockTitleLookup() { |
| 44 | 44 | $mock = $this->getMock( EntityTitleLookup::class ); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @return LanguageNameLookup|\PHPUnit_Framework_MockObject_MockObject |
|
| 55 | + * @return LanguageNameLookup |
|
| 56 | 56 | */ |
| 57 | 57 | private function getMockLanguageNameLookup() { |
| 58 | 58 | $mock = $this->getMock( LanguageNameLookup::class ); |