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

@@ 96-108 (lines=13) @@
93
     * @param ResourceInterface $object
94
     * @return array
95
     */
96
    protected function hydrateApplyAnnotations(array $json, ResourceInterface $object): array
97
    {
98
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
99
            $annotation = $this->getAnnotation($object, $annotationClass);
100
            if ($annotation === null) {
101
                continue;
102
            }
103
104
            $json = $handler->hydrate($annotation, $json, $object);
105
        }
106
107
        return $json;
108
    }
109
110
    /**
111
     * @param string $class
@@ 146-158 (lines=13) @@
143
     * @param ResourceInterface $object
144
     * @return array
145
     */
146
    protected function extractApplyAnnotations(ResourceInterface $object, array $json): array
147
    {
148
        foreach ($this->annotationHandlers as $annotationClass => $handler) {
149
            $annotation = $this->getAnnotation($object, $annotationClass);
150
            if ($annotation === null) {
151
                continue;
152
            }
153
154
            $json = $handler->extract($annotation, $object, $json);
155
        }
156
157
        return $json;
158
    }
159
160
    /**
161
     * @param ResourceInterface $object