mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Various code cleanup and fixed alignments.
This commit is contained in:
@@ -46,7 +46,7 @@ class ExportData extends Command
|
||||
|
||||
protected $description = 'Command to export data from Firefly III.';
|
||||
|
||||
protected $signature = 'firefly-iii:export-data
|
||||
protected $signature = 'firefly-iii:export-data
|
||||
{--user=1 : The user ID that the export should run for.}
|
||||
{--token= : The user\'s access token.}
|
||||
{--start= : First transaction to export. Defaults to your very first transaction. Only applies to transaction export.}
|
||||
@@ -81,7 +81,7 @@ class ExportData extends Command
|
||||
}
|
||||
// set up repositories.
|
||||
$this->stupidLaravel();
|
||||
$user = $this->getUser();
|
||||
$user = $this->getUser();
|
||||
$this->journalRepository->setUser($user);
|
||||
$this->accountRepository->setUser($user);
|
||||
|
||||
@@ -96,7 +96,7 @@ class ExportData extends Command
|
||||
|
||||
// make export object and configure it.
|
||||
/** @var ExportDataGenerator $exporter */
|
||||
$exporter = app(ExportDataGenerator::class);
|
||||
$exporter = app(ExportDataGenerator::class);
|
||||
$exporter->setUser($user);
|
||||
|
||||
$exporter->setStart($options['start']);
|
||||
@@ -111,7 +111,7 @@ class ExportData extends Command
|
||||
$exporter->setExportRules($options['export']['rules']);
|
||||
$exporter->setExportBills($options['export']['bills']);
|
||||
$exporter->setExportPiggies($options['export']['piggies']);
|
||||
$data = $exporter->export();
|
||||
$data = $exporter->export();
|
||||
if (0 === count($data)) {
|
||||
$this->friendlyError('You must export *something*. Use --export-transactions or another option. See docs.firefly-iii.org');
|
||||
}
|
||||
|
Reference in New Issue
Block a user