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

lib/ApaiIO/Operations/Search.php 2 locations

@@ 104-111 (lines=8) @@
101
     */
102
    public function setPage($page)
103
    {
104
        if (false === is_numeric($page) || $page < 1 || $page > 10) {
105
            throw new \InvalidArgumentException(sprintf('%s is an invalid page value. It has to be numeric, positive and between 1 and 10',
106
                    $page));
107
        }
108
109
        $this->parameter['ItemPage'] = $page;
110
111
        return $this;
112
    }
113
114
    /**
@@ 250-257 (lines=8) @@
247
     */
248
    protected function validatePrice($price)
249
    {
250
        if (false === is_numeric($price) || $price < 1) {
251
            throw new \InvalidArgumentException(sprintf('%s is an invalid price value. It has to be numeric and >= than 1',
252
                    $price));
253
        }
254
    }
255
}
256