mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup.
This commit is contained in:
@@ -28,20 +28,12 @@ use FireflyIII\Exceptions\FireflyException;
|
||||
|
||||
/**
|
||||
* Class ReportGeneratorFactory.
|
||||
*
|
||||
|
||||
*/
|
||||
class ReportGeneratorFactory
|
||||
{
|
||||
/**
|
||||
* Static report generator class.
|
||||
*
|
||||
* @param string $type
|
||||
* @param Carbon $start
|
||||
* @param Carbon $end
|
||||
*
|
||||
* @return ReportGeneratorInterface
|
||||
*
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public static function reportGenerator(string $type, Carbon $start, Carbon $end): ReportGeneratorInterface
|
||||
@@ -66,6 +58,7 @@ class ReportGeneratorFactory
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
throw new FireflyException(sprintf('Cannot generate report. There is no "%s"-report for period "%s".', $type, $period));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user