Code Duplication    Length = 9-9 lines in 2 locations

src/Parser/Directives/SitemapParser.php 1 location

@@ 63-71 (lines=9) @@
60
     *
61
     * @return string[]
62
     */
63
    public function render()
64
    {
65
        $result = [];
66
        foreach ($this->sitemaps as $uri) {
67
            $result[] = self::DIRECTIVE_SITEMAP . ':' . $uri;
68
        }
69
        sort($result);
70
        return $result;
71
    }
72
}
73

src/Parser/Directives/InlineHostParser.php 1 location

@@ 39-47 (lines=9) @@
36
     *
37
     * @return string[]
38
     */
39
    public function render()
40
    {
41
        $result = [];
42
        foreach ($this->host as $host) {
43
            $result[] = self::DIRECTIVE_HOST . ':' . $host;
44
        }
45
        sort($result);
46
        return $result;
47
    }
48
}
49