Code Duplication    Length = 8-8 lines in 3 locations

src/RobotsTxtParser/Core/Directives/Comment.php 1 location

@@ 58-65 (lines=8) @@
55
     *
56
     * @return string[]
57
     */
58
    public function render()
59
    {
60
        $result = [];
61
        foreach ($this->array as $value) {
62
            $result[] = self::DIRECTIVE . ':' . $value;
63
        }
64
        return $result;
65
    }
66
}
67

src/RobotsTxtParser/Core/Directives/Host.php 1 location

@@ 124-131 (lines=8) @@
121
     *
122
     * @return string[]
123
     */
124
    public function render()
125
    {
126
        $result = [];
127
        foreach ($this->array as $value) {
128
            $result[] = self::DIRECTIVE . ':' . $value;
129
        }
130
        return $result;
131
    }
132
}
133

src/RobotsTxtParser/Core/Directives/Sitemap.php 1 location

@@ 67-74 (lines=8) @@
64
     *
65
     * @return string[]
66
     */
67
    public function render()
68
    {
69
        $result = [];
70
        foreach ($this->array as $value) {
71
            $result[] = self::DIRECTIVE . ':' . $value;
72
        }
73
        return $result;
74
    }
75
}
76