Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 761-771 (lines=11) @@
758
     * Send messages using $Sendmail.
759
     * @return void
760
     */
761
    public function isSendmail()
762
    {
763
        $ini_sendmail_path = ini_get('sendmail_path');
764
765
        if (!stristr($ini_sendmail_path, 'sendmail')) {
766
            $this->Sendmail = '/usr/sbin/sendmail';
767
        } else {
768
            $this->Sendmail = $ini_sendmail_path;
769
        }
770
        $this->Mailer = 'sendmail';
771
    }
772
773
    /**
774
     * Send messages using qmail.
@@ 777-787 (lines=11) @@
774
     * Send messages using qmail.
775
     * @return void
776
     */
777
    public function isQmail()
778
    {
779
        $ini_sendmail_path = ini_get('sendmail_path');
780
781
        if (!stristr($ini_sendmail_path, 'qmail')) {
782
            $this->Sendmail = '/var/qmail/bin/qmail-inject';
783
        } else {
784
            $this->Sendmail = $ini_sendmail_path;
785
        }
786
        $this->Mailer = 'qmail';
787
    }
788
789
    /**
790
     * Add a "To" address.