mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
@ -46,9 +46,12 @@ class BackupCodeGeneratorTest extends TestCase
|
|||
new BackupCodeGenerator(4, 10);
|
||||
}
|
||||
|
||||
public function codeLengthDataProvider(): array
|
||||
public function codeLengthDataProvider(): \Iterator
|
||||
{
|
||||
return [[6], [8], [10], [16]];
|
||||
yield [6];
|
||||
yield [8];
|
||||
yield [10];
|
||||
yield [16];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,9 +63,11 @@ class BackupCodeGeneratorTest extends TestCase
|
|||
$this->assertMatchesRegularExpression("/^([a-f0-9]){{$code_length}}\$/", $generator->generateSingleCode());
|
||||
}
|
||||
|
||||
public function codeCountDataProvider(): array
|
||||
public function codeCountDataProvider(): \Iterator
|
||||
{
|
||||
return [[2], [8], [10]];
|
||||
yield [2];
|
||||
yield [8];
|
||||
yield [10];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue