Import statements and update configuration.

This commit is contained in:
James Cole
2025-05-27 16:57:36 +02:00
parent 7c04c4c2bc
commit c074fec0a7
165 changed files with 530 additions and 335 deletions

View File

@@ -35,6 +35,8 @@ use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
use FireflyIII\Support\Export\ExportDataGenerator;
use Illuminate\Console\Command;
use Illuminate\Support\Collection;
use Exception;
use InvalidArgumentException;
class ExportsData extends Command
{
@@ -139,7 +141,7 @@ class ExportsData extends Command
/**
* @throws FireflyException
* @throws \Exception
* @throws Exception
*/
private function parseOptions(): array
{
@@ -169,7 +171,7 @@ class ExportsData extends Command
}
/**
* @throws \Exception
* @throws Exception
*/
private function getDateParameter(string $field): Carbon
{
@@ -183,7 +185,7 @@ class ExportsData extends Command
if (is_string($this->option($field))) {
try {
$date = Carbon::createFromFormat('!Y-m-d', $this->option($field));
} catch (\InvalidArgumentException $e) {
} catch (InvalidArgumentException $e) {
app('log')->error($e->getMessage());
$this->friendlyError(sprintf('%s date "%s" must be formatted YYYY-MM-DD. Field will be ignored.', $field, $this->option('start')));
$error = true;