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/Server/Remote/PhpSecLib.php 1 location

@@ 123-138 (lines=16) @@
120
    /**
121
     * {@inheritdoc}
122
     */
123
    public function upload($local, $remote)
124
    {
125
        $this->checkConnection();
126
127
        $remote = str_replace(DIRECTORY_SEPARATOR, '/', $remote);
128
        $dir = str_replace(DIRECTORY_SEPARATOR, '/', dirname($remote));
129
130
        if (!isset($this->directories[$dir])) {
131
            $this->sftp->mkdir($dir, -1, true);
132
            $this->directories[$dir] = true;
133
        }
134
135
        if (!$this->sftp->put($remote, $local, SFTP::SOURCE_LOCAL_FILE)) {
136
            throw new \RuntimeException(implode($this->sftp->getSFTPErrors(), "\n"));
137
        }
138
    }
139
140
    /**
141
     * {@inheritdoc}

src/Server/Remote/SshExtension.php 1 location

@@ 122-137 (lines=16) @@
119
    /**
120
     * {@inheritdoc}
121
     */
122
    public function upload($local, $remote)
123
    {
124
        $this->checkConnection();
125
126
        $remote = str_replace(DIRECTORY_SEPARATOR, '/', $remote);
127
        $dir = str_replace(DIRECTORY_SEPARATOR, '/', dirname($remote));
128
129
        if (!isset($this->directories[$dir])) {
130
            $this->session->getSftp()->mkdir($dir, -1, true);
131
            $this->directories[$dir] = true;
132
        }
133
134
        if (!$this->session->getSftp()->send($local, $remote)) {
135
            throw new \RuntimeException('Can not upload file.');
136
        }
137
    }
138
139
    /**
140
     * {@inheritdoc}