mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -64,7 +64,6 @@ class FrontpageChartGenerator
|
||||
$this->accountRepos = app(AccountRepositoryInterface::class);
|
||||
$this->opsRepos = app(OperationsRepositoryInterface::class);
|
||||
$this->noCatRepos = app(NoCategoryRepositoryInterface::class);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -200,10 +199,8 @@ class FrontpageChartGenerator
|
||||
$category = $array['name'];
|
||||
$amount = $array['sum_float'] < 0 ? $array['sum_float'] * -1 : $array['sum_float'];
|
||||
$currencyData[$key]['entries'][$category] = $amount;
|
||||
|
||||
}
|
||||
|
||||
return $currencyData;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -124,7 +124,6 @@ class WholePeriodChartGenerator
|
||||
*/
|
||||
protected function calculateStep(Carbon $start, Carbon $end): string
|
||||
{
|
||||
|
||||
$step = '1D';
|
||||
$months = $start->diffInMonths($end);
|
||||
if ($months > 3) {
|
||||
@@ -165,5 +164,4 @@ class WholePeriodChartGenerator
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user