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

@@ 915-926 (lines=12) @@
912
        }
913
914
915
        if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) {
916
            $idx = $this->context->getLinkedDataIndex($resType, $resId);
917
            $prevPath = $this->path;
918
919
            $this->initPathStack();
920
            $this->setPath('included')->setPath($idx);
921
922
            $this->parseProperty([$idx => $linkedData], $pathValue, $relationship, '[' . $idx . ']');
923
            $this->path = $prevPath;
924
925
            return;
926
        }
927
928
        $this->parseProperty($data, $pathValue, $relationship);
929
    }
@@ 961-978 (lines=18) @@
958
959
            $params = $relationship->getDataTypeParams();
960
961
            if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) {
962
                $idx = $this->context->getLinkedDataIndex($resType, $resId);
963
964
                $prevPath = $this->path;
965
                $this->initPathStack();
966
                $this->setPath('included')->setPath($idx);
967
968
                $parsed = $this->parseResourceOrObject(
969
                    [$idx => $linkedData],
970
                    '[' . $idx .']',
971
                    $params[1],
972
                    $relationship
973
                );
974
975
                $this->path = $prevPath;
976
977
                return $parsed;
978
            }
979
980
            return $this->parseResourceOrObject($data, $path, $params[1], $relationship);
981
        });