Code Duplication    Length = 7-7 lines in 2 locations

generator/Parser/DefinitionParser.php 2 locations

@@ 21-27 (lines=7) @@
18
        $properties = [];
19
        $constants = [];
20
21
        foreach ($sources as $sourceId) {
22
            $types = array_merge($types, array_filter($definitions
23
                ->query($sourceId, '[typeof="rdfs:Class"]')
24
                ->each(function (Crawler $crawler) {
25
                    return call_user_func(ParseType::fromCrawler($crawler));
26
                })));
27
        }
28
29
        foreach ($sources as $sourceId) {
30
            $properties = array_merge($properties, array_filter($definitions
@@ 29-35 (lines=7) @@
26
                })));
27
        }
28
29
        foreach ($sources as $sourceId) {
30
            $properties = array_merge($properties, array_filter($definitions
31
                ->query($sourceId, '[typeof="rdf:Property"]')
32
                ->each(function (Crawler $crawler) {
33
                    return call_user_func(ParseProperty::fromCrawler($crawler));
34
                })));
35
        }
36
37
        foreach ($sources as $sourceId) {
38
            foreach ($types as $type) {