diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 9c52848..58c9dc3 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -427,6 +427,7 @@ class ApiQueryExtracts extends ApiQueryBase { /** * @see ApiBase::getExamplesMessages() + * @return array */ protected function getExamplesMessages() { return [ diff --git a/includes/Hooks.php b/includes/Hooks.php index 7c88f30..7503587 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -12,7 +12,7 @@ class Hooks { /** * ApiOpenSearchSuggest hook handler - * @param array $results + * @param array &$results * @return bool */ public static function onApiOpenSearchSuggest( &$results ) { diff --git a/phpcs.xml b/phpcs.xml index 16e2412..af73563 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -2,16 +2,11 @@ - - - . - - vendor - node_modules + diff --git a/tests/phpunit/ExtractFormatterTest.php b/tests/phpunit/ExtractFormatterTest.php index 5ad16b9..6b0174f 100644 --- a/tests/phpunit/ExtractFormatterTest.php +++ b/tests/phpunit/ExtractFormatterTest.php @@ -72,9 +72,9 @@ class ExtractFormatterTest extends MediaWikiTestCase { /** * @dataProvider provideGetFirstSentences - * @param $text - * @param $sentences - * @param $expected + * @param string $text + * @param string $sentences + * @param string $expected */ public function testGetFirstSentences( $text, $sentences, $expected ) { $this->assertEquals( $expected, ExtractFormatter::getFirstSentences( $text, $sentences ) ); @@ -167,9 +167,9 @@ class ExtractFormatterTest extends MediaWikiTestCase { /** * @dataProvider provideGetFirstChars - * @param $text - * @param $chars - * @param $expected + * @param string $text + * @param string $chars + * @param string $expected */ public function testGetFirstChars( $text, $chars, $expected ) { $this->assertEquals( $expected, ExtractFormatter::getFirstChars( $text, $chars ) );