Improve function and property documentation

Removed some wrong @param from test function,
the @dataProvider should be a enough here

Change-Id: Ib84ce497fef4d48df7547ebc38515fc377e7de01
This commit is contained in:
Umherirrender 2021-01-16 13:44:19 +01:00
parent 6aa96067ba
commit e30f055226
3 changed files with 2 additions and 9 deletions

View file

@ -1,8 +1,6 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
</rule>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<file>.</file>
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />

View file

@ -16,6 +16,7 @@ use ResourceLoaderContext;
*/
class CiteDataModule extends \ResourceLoaderModule {
/** @inheritDoc */
protected $targets = [ 'desktop', 'mobile' ];
/** @inheritDoc */

View file

@ -143,12 +143,6 @@ class FootnoteMarkFormatterTest extends \MediaWikiUnitTestCase {
* @covers ::getLinkLabel
*
* @dataProvider provideGetLinkLabel
*
* @param string|null $expectedLabel
* @param int $offset
* @param string $group
* @param string $label
* @param string|null $labelList
*/
public function testGetLinkLabel( $expectedLabel, $offset, $group, $labelList ) {
$mockMessageLocalizer = $this->createMock( ReferenceMessageLocalizer::class );