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

src/File/File.php 1 location

@@ 78-88 (lines=11) @@
75
     * @param string $target
76
     * @return Nip_Process
77
     */
78
    public function unzip($target)
79
    {
80
        if (!is_dir($target)) {
81
            mkdir($target, 0755, true);
82
        }
83
84
        $process = new Nip_Process("unzip {$this->_path}  -d $target");
85
        $process->run();
86
87
        return $process;
88
    }
89
90
    public function download($filename = false, $contentType = false)
91
    {

src/File/System.php 1 location

@@ 248-256 (lines=9) @@
245
        return $this;
246
    }
247
248
    public function copyDirectory($source, $destination)
249
    {
250
        if (!is_dir($destination)) {
251
            mkdir($destination, 0755, true);
252
        }
253
        $process = new Nip_Process("cp -R -f $source/* $destination");
254
255
        return $process->run();
256
    }
257
258
    public function formatSize($bytes)
259
    {