mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Various code cleanup.
This commit is contained in:
@@ -253,7 +253,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
|
||||
return [
|
||||
'journals' => $journals,
|
||||
'currency' => $currency,
|
||||
'exists' => 0!==count($journals),
|
||||
'exists' => !empty($journals),
|
||||
'end' => $this->end->formatLocalized((string)trans('config.month_and_day', [], $locale)),
|
||||
'endBalance' => app('steam')->balance($account, $this->end),
|
||||
'dayBefore' => $date->formatLocalized((string)trans('config.month_and_day', [], $locale)),
|
||||
|
@@ -179,7 +179,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
|
||||
*/
|
||||
protected function getExpenses(): array
|
||||
{
|
||||
if (count($this->expenses) > 0) {
|
||||
if (!empty($this->expenses)) {
|
||||
Log::debug('Return previous set of expenses.');
|
||||
|
||||
return $this->expenses;
|
||||
|
@@ -188,7 +188,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
|
||||
*/
|
||||
protected function getExpenses(): array
|
||||
{
|
||||
if (count($this->expenses) > 0) {
|
||||
if (!empty($this->expenses)) {
|
||||
Log::debug('Return previous set of expenses.');
|
||||
|
||||
return $this->expenses;
|
||||
@@ -213,7 +213,7 @@ class MonthReportGenerator implements ReportGeneratorInterface
|
||||
*/
|
||||
protected function getIncome(): array
|
||||
{
|
||||
if (count($this->income) > 0) {
|
||||
if (!empty($this->income)) {
|
||||
return $this->income;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user