mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-14 23:19:30 +00:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
|
@ -81,21 +81,19 @@ class RangeParserTest extends WebTestCase
|
|||
yield [[], '1, 2, test', true];
|
||||
}
|
||||
|
||||
public function validDataProvider(): array
|
||||
public function validDataProvider(): \Iterator
|
||||
{
|
||||
return [
|
||||
[true, ''],
|
||||
[true, ' '],
|
||||
[true, '1, 2, 3'],
|
||||
[true, '1-2,3, 4- 5'],
|
||||
[true, '1 -2, 3- 4, 6'],
|
||||
[true, '1--2'],
|
||||
[true, '1- -2'],
|
||||
[true, ',,12,33'],
|
||||
[false, 'test'],
|
||||
[false, '1-2-3'],
|
||||
[false, '1, 2 test'],
|
||||
];
|
||||
yield [true, ''];
|
||||
yield [true, ' '];
|
||||
yield [true, '1, 2, 3'];
|
||||
yield [true, '1-2,3, 4- 5'];
|
||||
yield [true, '1 -2, 3- 4, 6'];
|
||||
yield [true, '1--2'];
|
||||
yield [true, '1- -2'];
|
||||
yield [true, ',,12,33'];
|
||||
yield [false, 'test'];
|
||||
yield [false, '1-2-3'];
|
||||
yield [false, '1, 2 test'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue