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

src/Http/Headers/HeadersChecker.php 2 locations

@@ 78-89 (lines=12) @@
75
        }
76
77
        $this->matcher->matchDecoder($header);
78
        if (null === $this->matcher->getDecoderHeaderMatchedType()) {
79
            throw new JsonApiException(
80
                new Error(
81
                    rand(),
82
                    null,
83
                    JsonApiException::HTTP_CODE_UNSUPPORTED_MEDIA_TYPE,
84
                    self::UNSUPPORTED_CONTENT_TYPE_ERROR,
85
                    'Unsupported content type'
86
                ),
87
                JsonApiException::HTTP_CODE_UNSUPPORTED_MEDIA_TYPE
88
            );
89
        }
90
    }
91
92
    /**
@@ 102-113 (lines=12) @@
99
    {
100
        $this->matcher->matchEncoder($header);
101
102
        if (null === $this->matcher->getEncoderHeaderMatchedType()) {
103
            throw new JsonApiException(
104
                new Error(
105
                    rand(),
106
                    null,
107
                    JsonApiException::HTTP_CODE_UNSUPPORTED_MEDIA_TYPE,
108
                    self::UNSUPPORTED_ACCEPT_ERROR,
109
                    'Unsupported media type'
110
                ),
111
                JsonApiException::HTTP_CODE_UNSUPPORTED_MEDIA_TYPE
112
            );
113
        }
114
    }
115
}