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 = 8-8 lines in 2 locations

src/Pinterest/Pinterest.php 2 locations

@@ 105-112 (lines=8) @@
102
     * @access public
103
     * @return integer
104
     */
105
    public function getRateLimit()
106
    {
107
        $header = $this->request->getHeaders();
108
        if (is_array($header)) {
109
            $header = array_change_key_case($header, CASE_LOWER);
110
        }
111
        return (isset($header['x-ratelimit-limit']) ? $header['x-ratelimit-limit'] : 1000);
112
    }
113
114
    /**
115
     * Get rate limit remaining from the headers
@@ 120-127 (lines=8) @@
117
     * @access public
118
     * @return mixed
119
     */
120
    public function getRateLimitRemaining()
121
    {
122
        $header = $this->request->getHeaders();
123
        if (is_array($header)) {
124
            $header = array_change_key_case($header, CASE_LOWER);
125
        }
126
        return (isset($header['x-ratelimit-remaining']) ? $header['x-ratelimit-remaining'] : 'unknown');
127
    }
128
}
129