Code Duplication    Length = 4-4 lines in 2 locations

Processor/BfbProcessor.php 1 location

@@ 40-43 (lines=4) @@
37
            if (strlen($item[3])) {
38
                $value = abs((float) str_replace(',', '.', str_replace(' ', '', $item[3])));
39
                $debit = true;
40
            } else {
41
                $value = (float) str_replace(',', '.', str_replace(' ', '', $item[4]));
42
                $debit = false;
43
            }
44
45
            return [
46
                'date' => $date,

Processor/Processor.php 1 location

@@ 39-42 (lines=4) @@
36
        if (strlen($debitRaw)) {
37
            $value = abs((float) str_replace(',', '.', str_replace(' ', '', $debitRaw)));
38
            $debit = true;
39
        } else {
40
            $value = (float) str_replace(',', '.', str_replace(' ', '', $creditRaw));
41
            $debit = false;
42
        }
43
        return [
44
            'value' => $value,
45
            'debit' => $debit,