GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 7-7 lines in 2 locations

src/Pinterest/Endpoints/Boards.php 1 location

@@ 56-62 (lines=7) @@
53
     * @throws Exceptions/PinterestExceptions
54
     * @return Board
55
     */
56
    public function edit($board_id, array $data, $fields = null)
57
    {
58
        $query = (!$fields) ? array() : array("fields" => $fields);
59
60
        $response = $this->request->update(sprintf("boards/%s/", $board_id), $data, $query);
61
        return new Board($this->master, $response);
62
    }
63
64
    /**
65
     * Delete a board

src/Pinterest/Endpoints/Pins.php 1 location

@@ 80-86 (lines=7) @@
77
     * @throws \DirkGroenen\Pinterest\Exceptions\PinterestException
78
     * @return Pin
79
     */
80
    public function edit($pin_id, array $data, $fields = null)
81
    {
82
        $query = (!$fields) ? array() : array("fields" => $fields);
83
84
        $response = $this->request->update(sprintf("pins/%s/", $pin_id), $data, $query);
85
        return new Pin($this->master, $response);
86
    }
87
88
    /**
89
     * Delete a pin