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

src/Cache/CacheProvider.php 1 location

@@ 195-210 (lines=16) @@
192
     *
193
     * @return \M1\Vars\Cache\CacheProvider
194
     */
195
    public function setPath($path)
196
    {
197
        if (is_null($path)) {
198
            return;
199
        }
200
201
        if (!is_dir($path) || !is_writable($path)) {
202
            throw new \InvalidArgumentException(sprintf(
203
                "'%s' cache path does not exist or is not writable",
204
                $path
205
            ));
206
        }
207
208
        $this->path = realpath($path);
209
        return $this;
210
    }
211
212
    /**
213
     * Returns how long the cache lasts for

src/Vars.php 1 location

@@ 278-293 (lines=16) @@
275
     *
276
     * @return \M1\Vars\Vars
277
     */
278
    public function setBasePath($base_path)
279
    {
280
        if (is_null($base_path)) {
281
            return;
282
        }
283
284
        if (!is_dir($base_path)) {
285
            throw new \InvalidArgumentException(sprintf(
286
                "'%s' base path does not exist or is not writable",
287
                $base_path
288
            ));
289
        }
290
291
        $this->base_path = realpath($base_path);
292
        return $this;
293
    }
294
    
295
    /**
296
     * Adds a resource to $this->resources