Import statements and update configuration.

This commit is contained in:
James Cole
2025-05-27 16:57:36 +02:00
parent 7c04c4c2bc
commit c074fec0a7
165 changed files with 530 additions and 335 deletions

View File

@@ -27,6 +27,7 @@ use Carbon\Carbon;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Generator\Report\ReportGeneratorInterface;
use Illuminate\Support\Collection;
use Throwable;
/**
* Class MonthReportGenerator.
@@ -56,7 +57,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
->with('doubles', $this->expense)
->render()
;
} catch (\Throwable $e) {
} catch (Throwable $e) {
app('log')->error(sprintf('Cannot render reports.double.report: %s', $e->getMessage()));
app('log')->error($e->getTraceAsString());
$result = sprintf('Could not render report view: %s', $e->getMessage());

View File

@@ -23,6 +23,8 @@ declare(strict_types=1);
namespace FireflyIII\Generator\Report\Account;
use Override;
/**
* Class MultiYearReportGenerator.
*/
@@ -31,7 +33,7 @@ class MultiYearReportGenerator extends MonthReportGenerator
/**
* Returns the preferred period.
*/
#[\Override]
#[Override]
protected function preferredPeriod(): string
{
return 'year';

View File

@@ -23,6 +23,8 @@ declare(strict_types=1);
namespace FireflyIII\Generator\Report\Account;
use Override;
/**
* Class YearReportGenerator.
*/
@@ -31,7 +33,7 @@ class YearReportGenerator extends MonthReportGenerator
/**
* Returns the preferred period.
*/
#[\Override]
#[Override]
protected function preferredPeriod(): string
{
return 'month';