Code Duplication    Length = 11-11 lines in 2 locations

src/api/Congress.php 1 location

@@ 51-61 (lines=11) @@
48
     *
49
     * @return null
50
     */
51
    public function setClient($key)
52
    {
53
        $this->client = new Client(
54
            [
55
            'base_uri' => self::BASE_URI,
56
            'headers' => [
57
            'X-APIKEY' => $key
58
            ]
59
            ]
60
        );
61
    }
62
63
    /**
64
     * Return Congress API Guzzle Client

src/api/OpenStates.php 1 location

@@ 51-61 (lines=11) @@
48
     *
49
     * @return null
50
     */
51
    public function setClient($key)
52
    {
53
        $this->client = new Client(
54
            [
55
            'base_uri' => self::BASE_URI,
56
            'headers' => [
57
            'X-APIKEY' => $key
58
            ]
59
            ]
60
        );
61
    }
62
63
    /**
64
     * Return Guzzle Client