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

src/ApaiIO/Operations/Search.php 2 locations

@@ 130-133 (lines=4) @@
127
     */
128
    public function setPage($page)
129
    {
130
        if (false === is_numeric($page) || $page < 1 || $page > 10) {
131
            throw new \InvalidArgumentException(sprintf('%s is an invalid page value. It has to be numeric, positive and between 1 and 10',
132
                    $page));
133
        }
134
135
        $this->parameters['ItemPage'] = $page;
136
@@ 276-279 (lines=4) @@
273
     */
274
    protected function validatePrice($price)
275
    {
276
        if (false === is_numeric($price) || $price < 0) {
277
            throw new \InvalidArgumentException(sprintf('%s is an invalid price value. It has to be numeric and >= than 0',
278
                    $price));
279
        }
280
    }
281
}
282