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

src/Decoders/DataParser.php 2 locations

@@ 910-921 (lines=12) @@
907
        }
908
909
910
        if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) {
911
            $idx = $this->context->getLinkedDataIndex($resType, $resId);
912
            $prevPath = $this->path;
913
914
            $this->initPathStack();
915
            $this->setPath('included')->setPath($idx);
916
917
            $this->parseProperty([$idx => $linkedData], $pathValue, $relationship, '[' . $idx . ']');
918
            $this->path = $prevPath;
919
920
            return;
921
        }
922
923
        $this->parseProperty($data, $pathValue, $relationship);
924
    }
@@ 956-973 (lines=18) @@
953
954
            $params = $relationship->getDataTypeParams();
955
956
            if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) {
957
                $idx = $this->context->getLinkedDataIndex($resType, $resId);
958
959
                $prevPath = $this->path;
960
                $this->initPathStack();
961
                $this->setPath('included')->setPath($idx);
962
963
                $parsed = $this->parseResourceOrObject(
964
                    [$idx => $linkedData],
965
                    '[' . $idx .']',
966
                    $params[1],
967
                    $relationship
968
                );
969
970
                $this->path = $prevPath;
971
972
                return $parsed;
973
            }
974
975
            return $this->parseResourceOrObject($data, $path, $params[1], $relationship);
976
        });