Code Duplication    Length = 8-8 lines in 5 locations

src/RobotsTxtParser/Parser/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/Parser/Directives/Host.php 1 location

@@ 113-120 (lines=8) @@
110
     *
111
     * @return string[]
112
     */
113
    public function render()
114
    {
115
        $result = [];
116
        foreach ($this->array as $value) {
117
            $result[] = self::DIRECTIVE . ': ' . $value;
118
        }
119
        return $result;
120
    }
121
}
122

src/RobotsTxtParser/Parser/Directives/RequestRate.php 1 location

@@ 73-80 (lines=8) @@
70
     *
71
     * @return string[]
72
     */
73
    public function render()
74
    {
75
        $result = [];
76
        foreach ($this->array as $value) {
77
            $result[] = self::DIRECTIVE . ': ' . $value;
78
        }
79
        return $result;
80
    }
81
}
82

src/RobotsTxtParser/Parser/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

src/RobotsTxtParser/Parser/Directives/VisitTime.php 1 location

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