mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove a lot of deprecated code.
This commit is contained in:
@@ -22,8 +22,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Import\Specifics;
|
||||
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class RabobankDescription.
|
||||
*
|
||||
@@ -66,25 +64,6 @@ class RabobankDescription implements SpecificInterface
|
||||
public function run(array $row): array
|
||||
{
|
||||
$row = array_values($row);
|
||||
Log::debug(sprintf('Now in RabobankSpecific::run(). Row has %d columns', \count($row)));
|
||||
$oppositeAccount = isset($row[5]) ? trim($row[5]) : '';
|
||||
$oppositeName = isset($row[6]) ? trim($row[6]) : '';
|
||||
$alternateName = isset($row[10]) ? trim($row[10]) : '';
|
||||
|
||||
if ('' === $oppositeAccount && '' === $oppositeName) {
|
||||
Log::debug(
|
||||
sprintf(
|
||||
'Rabobank specific: Opposite account and opposite name are' .
|
||||
' both empty. Will use "%s" (from description) instead',
|
||||
$alternateName
|
||||
)
|
||||
);
|
||||
$row[6] = $alternateName;
|
||||
$row[10] = '';
|
||||
}
|
||||
if (!('' === $oppositeAccount && '' === $oppositeName)) {
|
||||
Log::debug('Rabobank specific: either opposite account or name are filled.');
|
||||
}
|
||||
|
||||
return $row;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user