mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Various bugfixes and code clean up.
This commit is contained in:
@@ -113,7 +113,7 @@ class BunqJobConfiguration implements JobConfigurationInterface
|
||||
Log::debug(sprintf('Now in BunqJobConfiguration::getHandler() with stage "%s"', $this->importJob->stage));
|
||||
$handler = null;
|
||||
switch ($this->importJob->stage) {
|
||||
case 'new';
|
||||
case 'new':
|
||||
$handler = app(NewBunqJobHandler::class);
|
||||
$handler->setImportJob($this->importJob);
|
||||
break;
|
||||
|
||||
@@ -101,13 +101,10 @@ class FileJobConfiguration implements JobConfigurationInterface
|
||||
return 'import.file.new';
|
||||
case 'configure-upload':
|
||||
return 'import.file.configure-upload';
|
||||
break;
|
||||
case 'roles':
|
||||
return 'import.file.roles';
|
||||
break;
|
||||
case 'map':
|
||||
return 'import.file.map';
|
||||
break;
|
||||
default:
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new FireflyException(
|
||||
|
||||
@@ -185,7 +185,9 @@ class ImportArrayStorage
|
||||
unset($transaction['importHashV2']);
|
||||
$json = json_encode($transaction);
|
||||
if (false === $json) {
|
||||
throw new FireflyException('Could not encode import array. Please see the logs.', $transaction); // @codeCoverageIgnore
|
||||
/** @noinspection ForgottenDebugOutputInspection */
|
||||
Log::error('Could not encode import array.', print_r($transaction, true));
|
||||
throw new FireflyException('Could not encode import array. Please see the logs.'); // @codeCoverageIgnore
|
||||
}
|
||||
$hash = hash('sha256', $json, false);
|
||||
Log::debug(sprintf('The hash is: %s', $hash));
|
||||
|
||||
Reference in New Issue
Block a user