mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Various code cleanup.
This commit is contained in:
@@ -66,6 +66,8 @@ class IndexController extends Controller
|
||||
/**
|
||||
* @return LaravelResponse
|
||||
* @throws CannotInsertRecord
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
* @throws \League\Csv\Exception
|
||||
*/
|
||||
public function export(): LaravelResponse
|
||||
{
|
||||
@@ -89,7 +91,7 @@ class IndexController extends Controller
|
||||
$quoted = sprintf('"%s"', addcslashes($name, '"\\'));
|
||||
// headers for CSV file.
|
||||
/** @var LaravelResponse $response */
|
||||
$response = response($result['transactions'], 200);
|
||||
$response = response($result['transactions']);
|
||||
$response
|
||||
->header('Content-Description', 'File Transfer')
|
||||
->header('Content-Type', 'text/x-csv')
|
||||
|
Reference in New Issue
Block a user