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

sources/Module/MarkupValidator.php 2 locations

@@ 193-206 (lines=14) @@
190
     *
191
     * @return string Component class name.
192
     */
193
    private function getComponentClass($componentName)
194
    {
195
        $componentClassKey = self::COMPONENT_CLASS_CONFIG_KEY;
196
        if (isset($this->config[$componentName][$componentClassKey]) === false ||
197
            is_string($this->config[$componentName][$componentClassKey]) === false
198
        ) {
199
            $errorMessage = sprintf('Invalid class configuration of component «%s».', $componentName);
200
            throw new Exception($errorMessage);
201
        }
202
203
        $componentClass = $this->config[$componentName][$componentClassKey];
204
205
        return $componentClass;
206
    }
207
208
    /**
209
     * Returns component configuration parameters.
@@ 215-228 (lines=14) @@
212
     *
213
     * @return array Component configuration parameters.
214
     */
215
    private function getComponentConfiguration($componentName)
216
    {
217
        $componentConfigKey = self::COMPONENT_CONFIG_CONFIG_KEY;
218
        if (isset($this->config[$componentName][$componentConfigKey]) === false ||
219
            is_array($this->config[$componentName][$componentConfigKey]) === false
220
        ) {
221
            $errorMessage = sprintf('Invalid configuration of component «%s».', $componentName);
222
            throw new Exception($errorMessage);
223
        }
224
225
        $componentConfig = $this->config[$componentName][$componentConfigKey];
226
227
        return $componentConfig;
228
    }
229
}
230