Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Replace "new" call.
James Colec4686762b8ee
diff --git a/resources/views/bills/show.blade.php b/resources/views/bills/show.blade.phpindex 667cf2d0e5..de4921da59 100644--- a/resources/views/bills/show.blade.php+++ b/resources/views/bills/show.blade.php@@ -57,7 +57,7 @@<td>@if(count($object['data']['pay_dates']) > 0)- {{ new \Carbon\Carbon($object['data']['pay_dates'][0])->isoFormat($monthAndDayFormat) }}+ {{ carbonize($object['data']['pay_dates'][0])->isoFormat($monthAndDayFormat) }}@else{{ __('firefly.unknown') }}@endifdiff --git a/resources/views/components/lists/subscriptions.blade.php b/resources/views/components/lists/subscriptions.blade.phpindex 82285a2526..1825964442 100644--- a/resources/views/components/lists/subscriptions.blade.php+++ b/resources/views/components/lists/subscriptions.blade.php@@ -40,20 +40,20 @@@endif@if(null !== $entry['end_date'])<br>- @if(new \Carbon\Carbon($entry['end_date'])->lte($today))+ @if(carbonize($entry['end_date'])->lte($today))<span- class="text-danger">{{ trans('firefly.bill_end_index_line', ['date' => new \Carbon\Carbon($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}</span>+ class="text-danger">{{ trans('firefly.bill_end_index_line', ['date' => carbonize($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}</span>@else- {{ trans('firefly.bill_end_index_line', ['date' => new \Carbon\Carbon($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}+ {{ trans('firefly.bill_end_index_line', ['date' => carbonize($entry['end_date'])->isoFormat($monthAndDayFormat)]) }}@endif@endif@if($entry['extension_date'])<br>- @if(new \Carbon\Carbon($entry['extension_date'])->lte($today))+ @if(carbonize($entry['extension_date'])->lte($today))<span- class="text-danger">{{ trans('firefly.bill_extension_index_line', ['date' => new \Carbon\Carbon($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}</span>+ class="text-danger">{{ trans('firefly.bill_extension_index_line', ['date' => carbonize($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}</span>@else- {{ trans('firefly.bill_extension_index_line', ['date' => new \Carbon\Carbon($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}+ {{ trans('firefly.bill_extension_index_line', ['date' => carbonize($entry['extension_date'])->isoFormat($monthAndDayFormat)]) }}@endif@endif@@ -97,7 +97,7 @@</td><td class="expected_in_period">@if($entry['next_expected_match'])- {{ new \Carbon\Carbon($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}+ {{ carbonize($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}@endif</td>@endif@@ -122,7 +122,7 @@@endif<td class="expected_in_period">@foreach($entry['pay_dates'] as $date)- {{ new \Carbon\Carbon($date)->isoFormat($monthAndDayFormat) }}<br>+ {{ carbonize($date)->isoFormat($monthAndDayFormat) }}<br>@endforeach</td>@@ -136,17 +136,17 @@@if(count($entry['paid_dates']) > 0 && $entry['active'])<td class="paid_in_period text-success">@foreach($entry['paid_dates'] as $currentPaid)- <a href="{{ route('transactions.show', $currentPaid['transaction_group_id']) }}">{{ new \Carbon\Carbon($currentPaid['date'])->isoFormat($monthAndDayFormat) }}</a>+ <a href="{{ route('transactions.show', $currentPaid['transaction_group_id']) }}">{{ carbonize($currentPaid['date'])->isoFormat($monthAndDayFormat) }}</a><br/>@endforeach</td><td class="expected_in_period"><!-- not just show next expected match, loop all pay_dates. -->@if($entry['next_expected_match'] && 1 === count($entry['pay_dates']))- {{ new \Carbon\Carbon($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}+ {{ carbonize($entry['next_expected_match'])->isoFormat($monthAndDayFormat) }}@elseif($entry['next_expected_match'] && count($entry['pay_dates']) > 0)@foreach($entry['pay_dates'] as $date)- {{ new \Carbon\Carbon($date)->isoFormat($monthAndDayFormat) }}<br>+ {{ carbonize($date)->isoFormat($monthAndDayFormat) }}<br>@endforeach@else<span class="text-muted">{{ $entry['next_expected_match_diff'] }}</span>