Code Duplication    Length = 9-11 lines in 2 locations

src/Version/Guzzle5.php 1 location

@@ 21-31 (lines=11) @@
18
    /**
19
     * {@InheritDoc}
20
     */
21
    public function __construct($baseUri, $options = [])
22
    {
23
        $this->defaultOptions = array_merge([
24
            'base_url' => $baseUri,
25
            'defaults' => [
26
                'exceptions' => false,
27
            ]
28
        ], $options);
29
30
        $this->client = new Client($this->defaultOptions);
31
    }
32
33
    /**
34
     * We have to recreate client to modify baseUri

src/Version/Guzzle6.php 1 location

@@ 19-27 (lines=9) @@
16
    /**
17
     * {@InheritDoc}
18
     */
19
    public function __construct($baseUri, $options = [])
20
    {
21
        $this->defaultOptions = array_merge([
22
            'base_uri' => $baseUri,
23
            'http_errors' => false
24
        ], $options);
25
26
        $this->client = new Client($this->defaultOptions);
27
    }
28
29
    public function setBaseUri($baseUri)
30
    {