mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
php cs cleanup
This commit is contained in:
@@ -29,16 +29,6 @@ use Tests\integration\TestCase;
|
||||
|
||||
abstract class IntervalTestCase extends TestCase
|
||||
{
|
||||
public static function provider(): iterable
|
||||
{
|
||||
$intervals = static::provideIntervals();
|
||||
|
||||
/** @var IntervalProvider $interval */
|
||||
foreach ($intervals as $interval) {
|
||||
yield "{$interval->label}" => [$interval];
|
||||
}
|
||||
}
|
||||
|
||||
abstract public static function provideIntervals(): array;
|
||||
|
||||
/**
|
||||
@@ -50,5 +40,15 @@ abstract class IntervalTestCase extends TestCase
|
||||
self::assertSame($provider->expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provider(): iterable
|
||||
{
|
||||
$intervals = static::provideIntervals();
|
||||
|
||||
/** @var IntervalProvider $interval */
|
||||
foreach ($intervals as $interval) {
|
||||
yield "{$interval->label}" => [$interval];
|
||||
}
|
||||
}
|
||||
|
||||
abstract public static function factory(): Interval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user