mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Optimize imports.
This commit is contained in:
@@ -34,7 +34,6 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||
use FireflyIII\Repositories\ExportJob\ExportJobRepositoryInterface;
|
||||
use Illuminate\Http\Response as LaravelResponse;
|
||||
use Preferences;
|
||||
use Response;
|
||||
use View;
|
||||
|
||||
/**
|
||||
@@ -104,7 +103,7 @@ class ExportController extends Controller
|
||||
*/
|
||||
public function getStatus(ExportJob $job)
|
||||
{
|
||||
return Response::json(['status' => trans('firefly.' . $job->status)]);
|
||||
return response()->json(['status' => trans('firefly.' . $job->status)]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,7 +120,8 @@ class ExportController extends Controller
|
||||
$jobs->cleanup();
|
||||
|
||||
// does the user have shared accounts?
|
||||
$accounts = $repository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET]);
|
||||
$accounts = $repository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET]);
|
||||
// todo could be removed?
|
||||
$accountList = ExpandedForm::makeSelectList($accounts);
|
||||
$checked = array_keys($accountList);
|
||||
$formats = array_keys(config('firefly.export_formats'));
|
||||
@@ -193,6 +193,6 @@ class ExportController extends Controller
|
||||
$jobs->changeStatus($job, 'export_status_created_zip_file');
|
||||
$jobs->changeStatus($job, 'export_status_finished');
|
||||
|
||||
return Response::json('ok');
|
||||
return response()->json('ok');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user