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/Mado/QueryBundle/Component/Meta/JsonPathFinder.php 2 locations

@@ 131-144 (lines=14) @@
128
        }
129
    }
130
131
    public function numberOfRealtionTo(string $entityToReach)
132
    {
133
        $numberOfRealtionTo = 0;
134
135
        foreach ($this->map as $rootEntity => $meta) {
136
            foreach ($meta['relations'] as $name => $entity) {
137
                if ($entity == $entityToReach) {
138
                    $numberOfRealtionTo++;
139
                }
140
            }
141
        }
142
143
        return $numberOfRealtionTo;
144
    }
145
146
    public function listOfParentsOf(string $entityToReach)
147
    {
@@ 146-159 (lines=14) @@
143
        return $numberOfRealtionTo;
144
    }
145
146
    public function listOfParentsOf(string $entityToReach)
147
    {
148
        $parents = [];
149
150
        foreach ($this->map as $rootEntity => $meta) {
151
            foreach ($meta['relations'] as $name => $entity) {
152
                if ($entity == $entityToReach) {
153
                    $parents[] = $rootEntity;
154
                }
155
            }
156
        }
157
158
        return $parents;
159
    }
160
161
    public function getEntitiesPath()
162
    {