Code cleanup

This commit is contained in:
James Cole
2024-12-22 08:43:12 +01:00
parent 5751f7e5a3
commit 565bd87959
574 changed files with 4600 additions and 4604 deletions

View File

@@ -52,7 +52,7 @@ class IndexController extends Controller
$this->middleware(
function ($request, $next) {
app('view')->share('mainTitleIcon', 'fa-life-bouy');
app('view')->share('title', (string)trans('firefly.export_data_title'));
app('view')->share('title', (string) trans('firefly.export_data_title'));
$this->journalRepository = app(JournalRepositoryInterface::class);
$this->middleware(IsDemoUser::class)->except(['index']);
@@ -67,7 +67,7 @@ class IndexController extends Controller
public function export(): LaravelResponse|RedirectResponse
{
if (auth()->user()->hasRole('demo')) {
session()->flash('info', (string)trans('firefly.demo_user_export'));
session()->flash('info', (string) trans('firefly.demo_user_export'));
return redirect(route('export.index'));
}
@@ -103,7 +103,7 @@ class IndexController extends Controller
->header('Expires', '0')
->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0')
->header('Pragma', 'public')
->header('Content-Length', (string)strlen($result['transactions']))
->header('Content-Length', (string) strlen($result['transactions']))
;
// return CSV file made from 'transactions' array.