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

@@ 159-171 (lines=13) @@
156
     * @param ResourceInterface $object
157
     * @return array
158
     */
159
    protected function hydrateApplyAnnotations(array $json, ResourceInterface $object): array
160
    {
161
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
162
            $annotation = $this->getAnnotation($object, $annotationClass);
163
            if ($annotation === null) {
164
                continue;
165
            }
166
167
            $json = $handler->hydrate($annotation, $json, $object);
168
        }
169
170
        return $json;
171
    }
172
173
    /**
174
     * Ensure all properties expected by resource are available
@@ 278-290 (lines=13) @@
275
     * @param ResourceInterface $object
276
     * @return array
277
     */
278
    protected function extractApplyAnnotations(ResourceInterface $object, array $json): array
279
    {
280
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
281
            $annotation = $this->getAnnotation($object, $annotationClass);
282
            if ($annotation === null) {
283
                continue;
284
            }
285
286
            $json = $handler->extract($annotation, $object, $json);
287
        }
288
289
        return $json;
290
    }
291
292
    /**
293
     * @param ResourceInterface $object