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

@@ 95-108 (lines=14) @@
92
        }
93
    }
94
95
    public function numberOfRealtionTo(string $entityToReach)
96
    {
97
        $numberOfRealtionTo = 0;
98
99
        foreach ($this->map as $rootEntity => $meta) {
100
            foreach ($meta['relations'] as $name => $entity) {
101
                if ($entity == $entityToReach) {
102
                    $numberOfRealtionTo++;
103
                }
104
            }
105
        }
106
107
        return $numberOfRealtionTo;
108
    }
109
110
    public function listOfParentsOf(string $entityToReach)
111
    {
@@ 110-123 (lines=14) @@
107
        return $numberOfRealtionTo;
108
    }
109
110
    public function listOfParentsOf(string $entityToReach)
111
    {
112
        $parents = [];
113
114
        foreach ($this->map as $rootEntity => $meta) {
115
            foreach ($meta['relations'] as $name => $entity) {
116
                if ($entity == $entityToReach) {
117
                    $parents[] = $rootEntity;
118
                }
119
            }
120
        }
121
122
        return $parents;
123
    }
124
}
125