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

src/Config/DefaultConfiguration.php 1 location

@@ 187-198 (lines=12) @@
184
            $xmlDoc = new DOMDocument();
185
            $resultLoadXml = $xmlDoc->loadXML($content);
186
187
            if (!$resultLoadXml) {
188
                $error = libxml_get_last_error();
189
                if ($error instanceof \LibXMLError) {
190
                    $errMsg = "Error in workflow xml.\n";
191
                    $errMsg .= "Message: {$error->message}.\n";
192
                    $errMsg .= "File: {$error->file}.\n";
193
                    $errMsg .= "Line: {$error->line}.\n";
194
                    $errMsg .= "Column: {$error->column}.";
195
196
                    throw new InvalidParsingWorkflowException($errMsg);
197
                }
198
            }
199
            /** @var DOMElement $root */
200
            $root = $xmlDoc->getElementsByTagName('osworkflow')->item(0);
201

src/Loader/WorkflowLoader.php 1 location

@@ 54-62 (lines=9) @@
51
            $xmlDoc = new \DOMDocument();
52
            $resultLoadXml = $xmlDoc->loadXML($content);
53
54
            if (!$resultLoadXml && ($error = libxml_get_last_error()) && $error instanceof \LibXMLError) {
55
                $errMsg = "Error in workflow xml.\n";
56
                $errMsg .= "Message: {$error->message}.\n";
57
                $errMsg .= "File: {$error->file}.\n";
58
                $errMsg .= "Line: {$error->line}.\n";
59
                $errMsg .= "Column: {$error->column}.";
60
61
                throw new InvalidParsingWorkflowException($errMsg);
62
            }
63
64
            /** @var DOMElement $root */
65
            $root = $xmlDoc->getElementsByTagName('workflow')->item(0);