Code Duplication    Length = 7-7 lines in 2 locations

lib/Ajde/Mailer/class.phpmailer.php 2 locations

@@ 1588-1594 (lines=7) @@
1585
                    if ($e != 0) {
1586
                        if ($space_left > 20) {
1587
                            $len = $space_left;
1588
                            if ($is_utf8) {
1589
                                $len = $this->utf8CharBoundary($word, $len);
1590
                            } elseif (substr($word, $len - 1, 1) == '=') {
1591
                                $len--;
1592
                            } elseif (substr($word, $len - 2, 1) == '=') {
1593
                                $len -= 2;
1594
                            }
1595
                            $part = substr($word, 0, $len);
1596
                            $word = substr($word, $len);
1597
                            $buf .= ' '.$part;
@@ 1609-1615 (lines=7) @@
1606
                            break;
1607
                        }
1608
                        $len = $length;
1609
                        if ($is_utf8) {
1610
                            $len = $this->utf8CharBoundary($word, $len);
1611
                        } elseif (substr($word, $len - 1, 1) == '=') {
1612
                            $len--;
1613
                        } elseif (substr($word, $len - 2, 1) == '=') {
1614
                            $len -= 2;
1615
                        }
1616
                        $part = substr($word, 0, $len);
1617
                        $word = substr($word, $len);
1618