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

src/Parser/Directives/HostParser.php 1 location

@@ 112-120 (lines=9) @@
109
     *
110
     * @return string[]
111
     */
112
    public function render()
113
    {
114
        $result = [];
115
        foreach ($this->host as $host) {
116
            $result[] = self::DIRECTIVE_HOST . ':' . $host;
117
        }
118
        sort($result);
119
        return $result;
120
    }
121
122
    /**
123
     * Client