Code Duplication    Length = 8-8 lines in 2 locations

src/ApiDriver.php 2 locations

@@ 142-149 (lines=8) @@
139
        return $response;
140
    }
141
142
    public function delete(string $email, string $listName = '')
143
    {
144
        $list = $this->lists->findByName($listName);
145
146
        $response = $this->mailChimp->delete("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}");
147
148
        return $response;
149
    }
150
151
    public function deletePermanently(string $email, string $listName = '')
152
    {
@@ 151-158 (lines=8) @@
148
        return $response;
149
    }
150
151
    public function deletePermanently(string $email, string $listName = '')
152
    {
153
        $list = $this->lists->findByName($listName);
154
155
        $response = $this->mailChimp->post("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}/actions/delete-permanent");
156
157
        return $response;
158
    }
159
160
    public function getTags(string $email, string $listName = '')
161
    {