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

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

@@ 91-112 (lines=22) @@
88
        return array_key_exists('disable', $clientConfig) && $clientConfig['disable'];
89
    }
90
91
    public function getDisabledCommonNames($userId = null)
92
    {
93
        if (!is_null($userId)) {
94
            Utils::validateUserId($userId);
95
        }
96
97
        $disabledCommonNames = array();
98
        $pathFilter = sprintf('%s/*', $this->staticConfigDir);
99
        if (!is_null($userId)) {
100
            $pathFilter = sprintf('%s/%s_*', $this->staticConfigDir, $userId);
101
        }
102
103
        foreach (glob($pathFilter) as $commonNamePath) {
104
            $commonName = basename($commonNamePath);
105
106
            if ($this->isDisabled($commonName)) {
107
                $disabledCommonNames[] = $commonName;
108
            }
109
        }
110
111
        return $disabledCommonNames;
112
    }
113
114
    public function getAllStaticAddresses($userId = null)
115
    {
@@ 114-132 (lines=19) @@
111
        return $disabledCommonNames;
112
    }
113
114
    public function getAllStaticAddresses($userId = null)
115
    {
116
        if (!is_null($userId)) {
117
            Utils::validateUserId($userId);
118
        }
119
120
        $staticAddresses = array();
121
        $pathFilter = sprintf('%s/*', $this->staticConfigDir);
122
        if (!is_null($userId)) {
123
            $pathFilter = sprintf('%s/%s_*', $this->staticConfigDir, $userId);
124
        }
125
126
        foreach (glob($pathFilter) as $commonNamePath) {
127
            $commonName = basename($commonNamePath);
128
            $staticAddresses[$commonName] = $this->getStaticAddresses($commonName);
129
        }
130
131
        return $staticAddresses;
132
    }
133
134
    public function getStaticAddresses($commonName)
135
    {