Code Duplication    Length = 9-9 lines in 2 locations

src/Parser/Directives/HostParser.php 1 location

@@ 118-126 (lines=9) @@
115
     *
116
     * @return string[]
117
     */
118
    public function render()
119
    {
120
        $result = [];
121
        foreach ($this->host as $host) {
122
            $result[] = self::DIRECTIVE_HOST . ':' . $host;
123
        }
124
        sort($result);
125
        return $result;
126
    }
127
}
128

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 $url) {
67
            $result[] = self::DIRECTIVE_SITEMAP . ':' . $url;
68
        }
69
        sort($result);
70
        return $result;
71
    }
72
}
73