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

src/fkooman/VPN/Server/IP.php 2 locations

@@ 97-104 (lines=8) @@
94
    /**
95
     * IPv4 only.
96
     */
97
    public function getNetmask()
98
    {
99
        if (4 !== $this->getFamily()) {
100
            throw new IPException('method only for IPv4');
101
        }
102
103
        return long2ip(-1 << (32 - $this->getPrefix()));
104
    }
105
106
    /**
107
     * IPv4 only.
@@ 121-128 (lines=8) @@
118
    /**
119
     * IPv4 only.
120
     */
121
    public function getNumberOfHosts()
122
    {
123
        if (4 !== $this->getFamily()) {
124
            throw new IPException('method only for IPv4');
125
        }
126
127
        return pow(2, 32 - $this->getPrefix()) - 2;
128
    }
129
130
    public function split($networkCount)
131
    {