Code Duplication    Length = 7-7 lines in 2 locations

src/RobotsTxtParser/Client.php 2 locations

@@ 79-85 (lines=7) @@
76
     *
77
     * @return string|null
78
     */
79
    public function getHost()
80
    {
81
        if (isset($this->host->export()[self::DIRECTIVE_HOST])) {
82
            return $this->host->export()[self::DIRECTIVE_HOST][0];
83
        }
84
        return null;
85
    }
86
87
    /**
88
     * Get Clean-param
@@ 92-98 (lines=7) @@
89
     *
90
     * @return array
91
     */
92
    public function getCleanParam()
93
    {
94
        if (isset($this->cleanParam->export()[self::DIRECTIVE_CLEAN_PARAM])) {
95
            return $this->cleanParam->export()[self::DIRECTIVE_CLEAN_PARAM];
96
        }
97
        return null;
98
    }
99
100
    /**
101
     * Return an User-agent instance, for future usage