Code Duplication    Length = 7-7 lines in 2 locations

src/wp-includes/class-phpmailer.php 2 locations

@@ 1735-1741 (lines=7) @@
1732
                    if (!$firstword) {
1733
                        if ($space_left > 20) {
1734
                            $len = $space_left;
1735
                            if ($is_utf8) {
1736
                                $len = $this->utf8CharBoundary($word, $len);
1737
                            } elseif (substr($word, $len - 1, 1) == '=') {
1738
                                $len--;
1739
                            } elseif (substr($word, $len - 2, 1) == '=') {
1740
                                $len -= 2;
1741
                            }
1742
                            $part = substr($word, 0, $len);
1743
                            $word = substr($word, $len);
1744
                            $buf .= ' ' . $part;
@@ 1756-1762 (lines=7) @@
1753
                            break;
1754
                        }
1755
                        $len = $length;
1756
                        if ($is_utf8) {
1757
                            $len = $this->utf8CharBoundary($word, $len);
1758
                        } elseif (substr($word, $len - 1, 1) == '=') {
1759
                            $len--;
1760
                        } elseif (substr($word, $len - 2, 1) == '=') {
1761
                            $len -= 2;
1762
                        }
1763
                        $part = substr($word, 0, $len);
1764
                        $word = substr($word, $len);
1765