Code Duplication    Length = 4-5 lines in 2 locations

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

@@ 934-938 (lines=5) @@
931
            return false;
932
        }
933
        if ($kind != 'Reply-To') {
934
            if (!array_key_exists(strtolower($address), $this->all_recipients)) {
935
                array_push($this->$kind, array($address, $name));
936
                $this->all_recipients[strtolower($address)] = true;
937
                return true;
938
            }
939
        } else {
940
            if (!array_key_exists(strtolower($address), $this->ReplyTo)) {
941
                $this->ReplyTo[strtolower($address)] = array($address, $name);
@@ 940-943 (lines=4) @@
937
                return true;
938
            }
939
        } else {
940
            if (!array_key_exists(strtolower($address), $this->ReplyTo)) {
941
                $this->ReplyTo[strtolower($address)] = array($address, $name);
942
                return true;
943
            }
944
        }
945
        return false;
946
    }