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

src/Hydrator.php 2 locations

@@ 154-166 (lines=13) @@
151
     * @param ResourceInterface $object
152
     * @return array
153
     */
154
    protected function hydrateApplyAnnotations(array $json, ResourceInterface $object): array
155
    {
156
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
157
            $annotation = $this->getAnnotation($object, $annotationClass);
158
            if ($annotation === null) {
159
                continue;
160
            }
161
162
            $json = $handler->hydrate($annotation, $json, $object);
163
        }
164
165
        return $json;
166
    }
167
168
    protected function getEmptyOrResource(string $class, array $json): string
169
    {
@@ 236-248 (lines=13) @@
233
     * @param ResourceInterface $object
234
     * @return array
235
     */
236
    protected function extractApplyAnnotations(ResourceInterface $object, array $json): array
237
    {
238
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
239
            $annotation = $this->getAnnotation($object, $annotationClass);
240
            if ($annotation === null) {
241
                continue;
242
            }
243
244
            $json = $handler->extract($annotation, $object, $json);
245
        }
246
247
        return $json;
248
    }
249
250
    /**
251
     * @param ResourceInterface $object