mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 14:36:51 +00:00
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:
parent
6aa96067ba
commit
e30f055226
|
@ -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" />
|
||||
|
|
|
@ -16,6 +16,7 @@ use ResourceLoaderContext;
|
|||
*/
|
||||
class CiteDataModule extends \ResourceLoaderModule {
|
||||
|
||||
/** @inheritDoc */
|
||||
protected $targets = [ 'desktop', 'mobile' ];
|
||||
|
||||
/** @inheritDoc */
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue