mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 20:05:03 +02:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
@ -56,19 +56,17 @@ class ParameterExtractorTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(ParameterExtractor::class);
|
||||
}
|
||||
|
||||
public function emptyDataProvider(): array
|
||||
public function emptyDataProvider(): \Iterator
|
||||
{
|
||||
return [
|
||||
[''],
|
||||
[' '],
|
||||
["\t\n"],
|
||||
[':;'],
|
||||
['NPN Transistor'],
|
||||
['=BC547 rewr'],
|
||||
['<i>For good</i>, [b]bad[/b], evil'],
|
||||
['Param:; Test'],
|
||||
['A [link](https://demo.part-db.de) should not be matched']
|
||||
];
|
||||
yield [''];
|
||||
yield [' '];
|
||||
yield ["\t\n"];
|
||||
yield [':;'];
|
||||
yield ['NPN Transistor'];
|
||||
yield ['=BC547 rewr'];
|
||||
yield ['<i>For good</i>, [b]bad[/b], evil'];
|
||||
yield ['Param:; Test'];
|
||||
yield ['A [link](https://demo.part-db.de) should not be matched'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue