Code Duplication    Length = 7-7 lines in 2 locations

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

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

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