mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup
This commit is contained in:
@@ -102,7 +102,7 @@ class Initial implements ConfigurationInterface
|
||||
Log::debug('Now in storeConfiguration for file Upload.');
|
||||
$config = $this->getConfig();
|
||||
$type = $data['import_file_type'] ?? 'csv'; // assume it's a CSV file.
|
||||
$config['file-type'] = in_array($type, config('import.options.file.import_formats')) ? $type : 'csv';
|
||||
$config['file-type'] = \in_array($type, config('import.options.file.import_formats'), true) ? $type : 'csv';
|
||||
|
||||
// update config:
|
||||
$this->repository->setConfiguration($this->job, $config);
|
||||
@@ -118,7 +118,7 @@ class Initial implements ConfigurationInterface
|
||||
}
|
||||
|
||||
if (false === $uploaded) {
|
||||
$this->warning = 'No valid upload.';
|
||||
$this->warning = (string)trans('firefly.upload_error');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user