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

src/Transport/Hydrator.php 2 locations

@@ 64-77 (lines=14) @@
61
     * @param array $json
62
     * @return array
63
     */
64
    protected function hydrateNestedResources(ResourceInterface $object, array $json)
65
    {
66
        $annotation = $this->getAnnotation($object);
67
68
        if (!($annotation instanceof Nested)) {
69
            return $json;
70
        }
71
72
        foreach ($annotation->properties() as $property) {
73
            $json[$property] = $this->hydrate($annotation->get($property), $json[$property]);
74
        }
75
76
        return $json;
77
    }
78
79
    /**
80
     * @param string $class
@@ 107-120 (lines=14) @@
104
     * @param ResourceInterface $object
105
     * @return array
106
     */
107
    protected function extractNestedResources(array $json, ResourceInterface $object)
108
    {
109
        $annotation = $this->getAnnotation($object);
110
111
        if (!($annotation instanceof Nested)) {
112
            return $json;
113
        }
114
115
        foreach ($annotation->properties() as $property) {
116
            $json[$property] = $this->extract($annotation->get($property), $json[$property]);
117
        }
118
119
        return $json;
120
    }
121
122
    /**
123
     * @param ResourceInterface $object