Code Duplication    Length = 8-9 lines in 2 locations

src/Api/Providers/Boards.php 1 location

@@ 134-141 (lines=8) @@
131
     * @return array
132
     * @internal param string $username
133
     */
134
    public function getBoardData($boardId, $url, $sourceUrl, $bookmarks = [])
135
    {
136
        $get = Request::createRequestData(['options' => ['board_id' => $boardId]], $sourceUrl, $bookmarks);
137
        $getString = UrlHelper::buildRequestString($get);
138
        $response = $this->request->exec($url . '?' . $getString);
139
140
        return $this->response->getPaginationData($response);
141
    }
142
143
    /**
144
     * @param $boardId

src/Api/Providers/Pinners.php 1 location

@@ 28-36 (lines=9) @@
25
     * @param array  $bookmarks
26
     * @return array
27
     */
28
    public function getUserData($username, $url, $sourceUrl, $bookmarks = [])
29
    {
30
        $data = ['options' => ['username' => $username]];
31
        $get = Request::createRequestData($data, $sourceUrl, $bookmarks);
32
        $getString = UrlHelper::buildRequestString($get);
33
        $response = $this->request->exec($url . '?' . $getString);
34
35
        return $this->response->getPaginationData($response);
36
    }
37
38
    /**
39
     * @param string $username