Code Duplication    Length = 6-6 lines in 2 locations

src/PaymentSlip.php 2 locations

@@ 1459-1464 (lines=6) @@
1456
            // need to separate, as left payer lines are much shorter
1457
            $leftLines = $lines;
1458
            // modify the array containing the left payer lines
1459
            foreach ($leftLines as $index => $line) {
1460
                $wrapString = wordwrap($line, 30, "\n", 38);
1461
                if (count($wrapArray = explode("\n", $wrapString)) > 1) {
1462
                    array_splice($leftLines, $index, 1, $wrapArray);
1463
                }
1464
            }
1465
            // modify the array containing the right payer lines
1466
            foreach ($lines as $index => $line) {
1467
                $wrapString = wordwrap($line, 48, "\n", 55);
@@ 1466-1471 (lines=6) @@
1463
                }
1464
            }
1465
            // modify the array containing the right payer lines
1466
            foreach ($lines as $index => $line) {
1467
                $wrapString = wordwrap($line, 48, "\n", 55);
1468
                if (count($wrapArray = explode("\n", $wrapString)) > 1) {
1469
                    array_splice($lines, $index, 1, $wrapArray);
1470
                }
1471
            }
1472
1473
            $elements['payerLeft'] = array(
1474
                'lines' => $leftLines,