Code Duplication    Length = 8-8 lines in 2 locations

eZ/Bundle/EzPublishRestBundle/Features/Context/RestClient/GuzzleDriver.php 1 location

@@ 126-133 (lines=8) @@
123
     *
124
     * @param string $host
125
     */
126
    public function setHost($host)
127
    {
128
        if (substr($host, -1) === '/') {
129
            $host = substr($host, 0, strlen($host) - 1);
130
        }
131
132
        $this->host = $host;
133
    }
134
135
    /**
136
     * Set request resource url.

eZ/Bundle/EzPublishRestBundle/Features/Context/RestClient/BuzzDriver.php 1 location

@@ 113-120 (lines=8) @@
110
     *
111
     * @param string $host
112
     */
113
    public function setHost($host)
114
    {
115
        if (substr($host, -1) === '/') {
116
            $host = substr($host, 0, strlen($host) - 1);
117
        }
118
119
        $this->host = $host;
120
    }
121
122
    /**
123
     * Set request resource url.