Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 783-793 (lines=11) @@
780
     * Send messages using $Sendmail.
781
     * @return void
782
     */
783
    public function isSendmail()
784
    {
785
        $ini_sendmail_path = ini_get('sendmail_path');
786
787
        if (!stristr($ini_sendmail_path, 'sendmail')) {
788
            $this->Sendmail = '/usr/sbin/sendmail';
789
        } else {
790
            $this->Sendmail = $ini_sendmail_path;
791
        }
792
        $this->Mailer = 'sendmail';
793
    }
794
795
    /**
796
     * Send messages using qmail.
@@ 799-809 (lines=11) @@
796
     * Send messages using qmail.
797
     * @return void
798
     */
799
    public function isQmail()
800
    {
801
        $ini_sendmail_path = ini_get('sendmail_path');
802
803
        if (!stristr($ini_sendmail_path, 'qmail')) {
804
            $this->Sendmail = '/var/qmail/bin/qmail-inject';
805
        } else {
806
            $this->Sendmail = $ini_sendmail_path;
807
        }
808
        $this->Mailer = 'qmail';
809
    }
810
811
    /**
812
     * Add a "To" address.