Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 3175-3182 (lines=8) @@
3172
     * Clear all CC recipients.
3173
     * @return void
3174
     */
3175
    public function clearCCs()
3176
    {
3177
        foreach ($this->cc as $cc) {
3178
            unset($this->all_recipients[strtolower($cc[0])]);
3179
        }
3180
        $this->cc = array();
3181
        $this->clearQueuedAddresses('cc');
3182
    }
3183
3184
    /**
3185
     * Clear all BCC recipients.
@@ 3188-3195 (lines=8) @@
3185
     * Clear all BCC recipients.
3186
     * @return void
3187
     */
3188
    public function clearBCCs()
3189
    {
3190
        foreach ($this->bcc as $bcc) {
3191
            unset($this->all_recipients[strtolower($bcc[0])]);
3192
        }
3193
        $this->bcc = array();
3194
        $this->clearQueuedAddresses('bcc');
3195
    }
3196
3197
    /**
3198
     * Clear all ReplyTo recipients.