Code Duplication    Length = 8-8 lines in 2 locations

include/phpmailer/class.phpmailer.php 2 locations

@@ 3102-3109 (lines=8) @@
3099
    /**
3100
     * Clear all CC recipients.
3101
     */
3102
    public function clearCCs()
3103
    {
3104
        foreach ($this->cc as $cc) {
3105
            unset($this->all_recipients[mb_strtolower($cc[0])]);
3106
        }
3107
        $this->cc = [];
3108
        $this->clearQueuedAddresses('cc');
3109
    }
3110
3111
    /**
3112
     * Clear all BCC recipients.
@@ 3114-3121 (lines=8) @@
3111
    /**
3112
     * Clear all BCC recipients.
3113
     */
3114
    public function clearBCCs()
3115
    {
3116
        foreach ($this->bcc as $bcc) {
3117
            unset($this->all_recipients[mb_strtolower($bcc[0])]);
3118
        }
3119
        $this->bcc = [];
3120
        $this->clearQueuedAddresses('bcc');
3121
    }
3122
3123
    /**
3124
     * Clear all ReplyTo recipients.