Code Duplication    Length = 7-7 lines in 2 locations

src/Parser/Directives/CrawlDelayParser.php 1 location

@@ 81-87 (lines=7) @@
78
     *
79
     * @return string[]
80
     */
81
    public function render()
82
    {
83
        if (!empty($this->value)) {
84
            return [$this->directive . ':' . $this->value];
85
        }
86
        return [];
87
    }
88
}
89

src/Parser/Directives/RobotVersionParser.php 1 location

@@ 61-67 (lines=7) @@
58
     *
59
     * @return string[]
60
     */
61
    public function render()
62
    {
63
        if (!empty($this->value)) {
64
            return [self::DIRECTIVE . ':' . $this->value];
65
        }
66
        return [];
67
    }
68
}
69