Code Duplication    Length = 7-7 lines in 2 locations

eZ/Publish/Core/Repository/TreeAccessor/TreeDelegate.php 2 locations

@@ 37-43 (lines=7) @@
34
        ];
35
    }
36
37
    public function getAncestors(Location $location): iterable
38
    {
39
        $query = new LocationQuery();
40
        $query->filter = new Ancestor($location->pathString);
41
42
        return new LazySearchResult($this->searchService, $query, $this->languageFilter);
43
    }
44
45
    public function getSiblings(Location $location): iterable
46
    {
@@ 58-64 (lines=7) @@
55
        return new LazySearchResult($this->searchService, $query, $this->languageFilter);
56
    }
57
58
    public function getChildren(Location $location): iterable
59
    {
60
        $query = new LocationQuery();
61
        $query->filter = new ParentLocationId($location->id);
62
63
        return new LazySearchResult($this->searchService, $query, $this->languageFilter);
64
    }
65
}
66