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

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