mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Clean up two big methods.
This commit is contained in:
@@ -181,13 +181,20 @@ class ImportTransaction
|
||||
}
|
||||
|
||||
$meta = ['sepa-ct-id', 'sepa-ct-op', 'sepa-db', 'sepa-cc', 'sepa-country', 'sepa-batch-id', 'sepa-ep', 'sepa-ci', 'internal-reference', 'date-interest',
|
||||
'date-invoice', 'date-book', 'date-payment', 'date-process', 'date-due', 'rabo-debit-credit', 'ing-debit-credit',];
|
||||
if (isset($meta[$role])) {
|
||||
'date-invoice', 'date-book', 'date-payment', 'date-process', 'date-due',];
|
||||
if (\in_array($role, $meta, true)) {
|
||||
$this->meta[$role] = $columnValue->getValue();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$modifiers = ['rabo-debit-credit', 'ing-debit-credit'];
|
||||
if (\in_array($role, $modifiers, true)) {
|
||||
$this->modifiers[$role] = $columnValue->getValue();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($role) {
|
||||
default:
|
||||
// @codeCoverageIgnoreStart
|
||||
|
||||
Reference in New Issue
Block a user