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 3 locations

src/security/rsa/_RSAPrivateKeyPEMFornat.php 1 location

@@ 57-64 (lines=8) @@
54
    /**
55
     * @return string
56
     */
57
    public function getEncoded()
58
    {
59
        $pem = $this->rsa_imp->getPrivateKey(CRYPT_RSA_PUBLIC_FORMAT_PKCS1);
60
        $pem = preg_replace('/\-+BEGIN RSA PRIVATE KEY\-+/','',$pem);
61
        $pem = preg_replace('/\-+END RSA PRIVATE KEY\-+/','',$pem);
62
        $pem = str_replace( array("\n","\r","\t"), '', trim($pem));
63
        return $pem;
64
    }
65
66
    /**
67
     * @return string

src/security/rsa/_RSAPublicKeyPEMFornat.php 1 location

@@ 62-69 (lines=8) @@
59
    /**
60
     * @return string
61
     */
62
    public function getEncoded()
63
    {
64
        $pem = $this->rsa_imp->getPublicKey(CRYPT_RSA_PUBLIC_FORMAT_PKCS8);
65
        $pem = preg_replace('/\-+BEGIN PUBLIC KEY\-+/','',$pem);
66
        $pem = preg_replace('/\-+END PUBLIC KEY\-+/','',$pem);
67
        $pem = str_replace( array("\n","\r","\t"), '', trim($pem));
68
        return $pem;
69
    }
70
71
    /**
72
     * @return string

src/security/x509/_X509Certificate.php 1 location

@@ 82-89 (lines=8) @@
79
    /**
80
     * @return string
81
     */
82
    public function getPublicKey()
83
    {
84
        $pem = (string)$this->file->getPublicKey();
85
        $pem = preg_replace('/\-+BEGIN PUBLIC KEY\-+/','',$pem);
86
        $pem = preg_replace('/\-+END PUBLIC KEY\-+/','',$pem);
87
        $pem = str_replace( array("\n","\r","\t"), '', trim($pem));
88
        return $pem;
89
    }
90
91
    /**
92
     * @return array