Code Duplication    Length = 7-7 lines in 2 locations

src/KvkClient.php 2 locations

@@ 40-46 (lines=7) @@
37
        return $this->profileResponseFactory->fromProfileData($data);
38
    }
39
40
    public function getNextPage(KvkPaginatorInterface $kvkPaginator): KvkPaginatorInterface
41
    {
42
        $json = $this->httpClient->getJson($this->httpClient->getUrl($kvkPaginator->getNextUrl()));
43
        $data = $this->decodeJsonToArray($json);
44
45
        return $this->profileResponseFactory->fromProfileData($data);
46
    }
47
48
    public function getPreviousPage(KvkPaginatorInterface $kvkPaginator): KvkPaginatorInterface
49
    {
@@ 48-54 (lines=7) @@
45
        return $this->profileResponseFactory->fromProfileData($data);
46
    }
47
48
    public function getPreviousPage(KvkPaginatorInterface $kvkPaginator): KvkPaginatorInterface
49
    {
50
        $json = $this->httpClient->getJson($this->httpClient->getUrl($kvkPaginator->getPreviousUrl()));
51
        $data = $this->decodeJsonToArray($json);
52
53
        return $this->profileResponseFactory->fromProfileData($data);
54
    }
55
56
    /**
57
     * @param $json