Code Duplication    Length = 7-7 lines in 2 locations

src/Api/Providers/Provider.php 2 locations

@@ 73-79 (lines=7) @@
70
     * @param string $resourceUrl
71
     * @return array|bool
72
     */
73
    protected function execGetRequest(array $requestOptions, $resourceUrl)
74
    {
75
        $query = Request::createQuery(['options' => $requestOptions]);
76
        $response = $this->request->exec($resourceUrl . "?{$query}");
77
        
78
        return $this->response->getData($response);
79
    }
80
81
    /**
82
     * Executes a GET request to Pinterest API with pagination.
@@ 89-95 (lines=7) @@
86
     * @param array $bookmarks
87
     * @return array|bool
88
     */
89
    protected function execGetRequestWithPagination(array $requestOptions, $resourceUrl, $bookmarks = [])
90
    {
91
        $query = Request::createQuery(['options' => $requestOptions], $bookmarks);
92
        $response = $this->request->exec($resourceUrl . "?{$query}");
93
94
        return $this->response->getPaginationData($response);
95
    }
96
97
    /**
98
     * Executes pagination GET request.