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

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