mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-12 17:12:11 -06:00
Remove some "strtolower"-references https://github.com/firefly-iii/firefly-iii/pull/4158
This commit is contained in:
parent
c9893d0fda
commit
07fa1b301f
@ -75,7 +75,7 @@ class CreateController extends Controller
|
|||||||
/** @var array $billPeriods */
|
/** @var array $billPeriods */
|
||||||
$billPeriods = config('firefly.bill_periods');
|
$billPeriods = config('firefly.bill_periods');
|
||||||
foreach ($billPeriods as $current) {
|
foreach ($billPeriods as $current) {
|
||||||
$periods[$current] = strtolower((string) trans('firefly.repeat_freq_' . $current));
|
$periods[$current] = (string) trans('firefly.repeat_freq_' . $current);
|
||||||
}
|
}
|
||||||
$subTitle = (string) trans('firefly.create_new_bill');
|
$subTitle = (string) trans('firefly.create_new_bill');
|
||||||
$defaultCurrency = app('amount')->getDefaultCurrency();
|
$defaultCurrency = app('amount')->getDefaultCurrency();
|
||||||
|
@ -112,27 +112,27 @@ class ExpenseReportController extends Controller
|
|||||||
/** @var Account $exp */
|
/** @var Account $exp */
|
||||||
$exp = $combination->first();
|
$exp = $combination->first();
|
||||||
$chartData[$exp->id . '-in'] = [
|
$chartData[$exp->id . '-in'] = [
|
||||||
'label' => sprintf('%s (%s)', $name, strtolower((string) trans('firefly.income'))),
|
'label' => sprintf('%s (%s)', $name, (string) trans('firefly.income')),
|
||||||
'type' => 'bar',
|
'type' => 'bar',
|
||||||
'yAxisID' => 'y-axis-0',
|
'yAxisID' => 'y-axis-0',
|
||||||
'entries' => [],
|
'entries' => [],
|
||||||
];
|
];
|
||||||
$chartData[$exp->id . '-out'] = [
|
$chartData[$exp->id . '-out'] = [
|
||||||
'label' => sprintf('%s (%s)', $name, strtolower((string) trans('firefly.expenses'))),
|
'label' => sprintf('%s (%s)', $name, (string) trans('firefly.expenses')),
|
||||||
'type' => 'bar',
|
'type' => 'bar',
|
||||||
'yAxisID' => 'y-axis-0',
|
'yAxisID' => 'y-axis-0',
|
||||||
'entries' => [],
|
'entries' => [],
|
||||||
];
|
];
|
||||||
// total in, total out:
|
// total in, total out:
|
||||||
$chartData[$exp->id . '-total-in'] = [
|
$chartData[$exp->id . '-total-in'] = [
|
||||||
'label' => sprintf('%s (%s)', $name, strtolower((string) trans('firefly.sum_of_income'))),
|
'label' => sprintf('%s (%s)', $name, (string) trans('firefly.sum_of_income')),
|
||||||
'type' => 'line',
|
'type' => 'line',
|
||||||
'fill' => false,
|
'fill' => false,
|
||||||
'yAxisID' => 'y-axis-1',
|
'yAxisID' => 'y-axis-1',
|
||||||
'entries' => [],
|
'entries' => [],
|
||||||
];
|
];
|
||||||
$chartData[$exp->id . '-total-out'] = [
|
$chartData[$exp->id . '-total-out'] = [
|
||||||
'label' => sprintf('%s (%s)', $name, strtolower((string) trans('firefly.sum_of_expenses'))),
|
'label' => sprintf('%s (%s)', $name, (string) trans('firefly.sum_of_expenses')),
|
||||||
'type' => 'line',
|
'type' => 'line',
|
||||||
'fill' => false,
|
'fill' => false,
|
||||||
'yAxisID' => 'y-axis-1',
|
'yAxisID' => 'y-axis-1',
|
||||||
|
Loading…
Reference in New Issue
Block a user