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

src/Loader/ResultDescriptor.php 2 locations

@@ 408-428 (lines=21) @@
405
     * @return DOMElement|null
406
     * @throws InvalidWriteWorkflowException
407
     */
408
    protected function printPostFunctions(DOMDocument $dom)
409
    {
410
        $postFunctions = $this->getPostFunctions();
411
        if ($postFunctions->count() > 0) {
412
            $postFunctionsElements = $dom->createElement('post-functions');
413
            foreach ($postFunctions as $function) {
414
                try {
415
                    $functionElement = $function->writeXml($dom);
416
                } catch (\Exception $e) {
417
                    $errMsg  = 'Ошибка сохранения workflow. Ошибка в post-function';
418
                    throw new InvalidWriteWorkflowException($errMsg, $e->getCode(), $e);
419
                }
420
421
                $postFunctionsElements->appendChild($functionElement);
422
            }
423
424
            return $postFunctionsElements;
425
        }
426
427
        return null;
428
    }
429
430
    /**
431
     * Вывод информации о функциях пред обработки
@@ 438-457 (lines=20) @@
435
     *
436
     * @throws InvalidWriteWorkflowException
437
     */
438
    protected function printPreFunctions(DOMDocument $dom)
439
    {
440
        $preFunctions = $this->getPreFunctions();
441
        if ($preFunctions->count() > 0) {
442
            $preFunctionsElements = $dom->createElement('pre-functions');
443
            foreach ($preFunctions as $function) {
444
                try {
445
                    $functionElement = $function->writeXml($dom);
446
                } catch (\Exception $e) {
447
                    $errMsg  = 'Ошибка сохранения workflow. Ошибка в pre-function';
448
                    throw new InvalidWriteWorkflowException($errMsg, $e->getCode(), $e);
449
                }
450
                $preFunctionsElements->appendChild($functionElement);
451
            }
452
453
            return $preFunctionsElements;
454
        }
455
456
        return null;
457
    }
458
459
460
    /**