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

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