Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 3004-3011 (lines=8) @@
3001
     * Clear all CC recipients.
3002
     * @return void
3003
     */
3004
    public function clearCCs()
3005
    {
3006
        foreach ($this->cc as $cc) {
3007
            unset($this->all_recipients[strtolower($cc[0])]);
3008
        }
3009
        $this->cc = array();
3010
        $this->clearQueuedAddresses('cc');
3011
    }
3012
3013
    /**
3014
     * Clear all BCC recipients.
@@ 3017-3024 (lines=8) @@
3014
     * Clear all BCC recipients.
3015
     * @return void
3016
     */
3017
    public function clearBCCs()
3018
    {
3019
        foreach ($this->bcc as $bcc) {
3020
            unset($this->all_recipients[strtolower($bcc[0])]);
3021
        }
3022
        $this->bcc = array();
3023
        $this->clearQueuedAddresses('bcc');
3024
    }
3025
3026
    /**
3027
     * Clear all ReplyTo recipients.