Applied rector suggestions

This commit is contained in:
Jan Böhmer 2024-06-22 00:31:43 +02:00
parent 4106bcef5f
commit 20f32c7f12
170 changed files with 808 additions and 761 deletions

View file

@ -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'];
}
/**