Code Duplication    Length = 7-7 lines in 4 locations

src/Api/Persona.php 4 locations

@@ 13-19 (lines=7) @@
10
11
class Persona extends AbstractApi
12
{
13
    public function add(PersonaSettings $persona): PersonaResponse
14
    {
15
        $request = new PersonaRequest($this->pageToken, $persona);
16
        $response = $this->client->post('me/personas', $request->build());
17
18
        return new PersonaResponse($response);
19
    }
20
21
    public function get(string $personaId): PersonaResponse
22
    {
@@ 21-27 (lines=7) @@
18
        return new PersonaResponse($response);
19
    }
20
21
    public function get(string $personaId): PersonaResponse
22
    {
23
        $request = new PersonaRequest($this->pageToken);
24
        $response = $this->client->get($personaId, $request->build());
25
26
        return new PersonaResponse($response);
27
    }
28
29
    public function getAll(): PersonaResponse
30
    {
@@ 29-35 (lines=7) @@
26
        return new PersonaResponse($response);
27
    }
28
29
    public function getAll(): PersonaResponse
30
    {
31
        $request = new PersonaRequest($this->pageToken);
32
        $response = $this->client->get('me/personas', $request->build());
33
34
        return new PersonaResponse($response);
35
    }
36
37
    public function delete(string $personaId): PersonaResponse
38
    {
@@ 37-43 (lines=7) @@
34
        return new PersonaResponse($response);
35
    }
36
37
    public function delete(string $personaId): PersonaResponse
38
    {
39
        $request = new PersonaRequest($this->pageToken);
40
        $response = $this->client->delete($personaId, $request->build());
41
42
        return new PersonaResponse($response);
43
    }
44
}
45