Remove a lot of deprecated code.

This commit is contained in:
James Cole
2018-07-25 06:45:25 +02:00
parent dbf019135a
commit 7c950c3022
39 changed files with 189 additions and 621 deletions

View File

@@ -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;
}