Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 1925-1939 (lines=15) @@
1922
                }
1923
                $body .= $this->endBoundary($this->boundary[1]);
1924
                break;
1925
            case 'alt_inline':
1926
                $body .= $this->getBoundary($this->boundary[1], '', 'text/plain', '');
1927
                $body .= $this->encodeString($this->AltBody, $this->Encoding);
1928
                $body .= $this->LE.$this->LE;
1929
                $body .= $this->textLine('--'.$this->boundary[1]);
1930
                $body .= $this->headerLine('Content-Type', 'multipart/related;');
1931
                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
1932
                $body .= $this->LE;
1933
                $body .= $this->getBoundary($this->boundary[2], '', 'text/html', '');
1934
                $body .= $this->encodeString($this->Body, $this->Encoding);
1935
                $body .= $this->LE.$this->LE;
1936
                $body .= $this->attachAll('inline', $this->boundary[2]);
1937
                $body .= $this->LE;
1938
                $body .= $this->endBoundary($this->boundary[1]);
1939
                break;
1940
            case 'alt_attach':
1941
                $body .= $this->textLine('--'.$this->boundary[1]);
1942
                $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
@@ 1940-1954 (lines=15) @@
1937
                $body .= $this->LE;
1938
                $body .= $this->endBoundary($this->boundary[1]);
1939
                break;
1940
            case 'alt_attach':
1941
                $body .= $this->textLine('--'.$this->boundary[1]);
1942
                $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
1943
                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
1944
                $body .= $this->LE;
1945
                $body .= $this->getBoundary($this->boundary[2], '', 'text/plain', '');
1946
                $body .= $this->encodeString($this->AltBody, $this->Encoding);
1947
                $body .= $this->LE.$this->LE;
1948
                $body .= $this->getBoundary($this->boundary[2], '', 'text/html', '');
1949
                $body .= $this->encodeString($this->Body, $this->Encoding);
1950
                $body .= $this->LE.$this->LE;
1951
                $body .= $this->endBoundary($this->boundary[2]);
1952
                $body .= $this->LE;
1953
                $body .= $this->attachAll('attachment', $this->boundary[1]);
1954
                break;
1955
            case 'alt_inline_attach':
1956
                $body .= $this->textLine('--'.$this->boundary[1]);
1957
                $body .= $this->headerLine('Content-Type', 'multipart/alternative;');