Code Duplication    Length = 7-7 lines in 2 locations

src/CouchDB/Connection.php 2 locations

@@ 52-58 (lines=7) @@
49
     *
50
     * @return string
51
     */
52
    public function version()
53
    {
54
        $json = (string) $this->client->request('GET', '/')->getBody();
55
        $value = JSONEncoder::decode($json);
56
57
        return $value['version'];
58
    }
59
60
    /**
61
     * Show all databases.
@@ 65-71 (lines=7) @@
62
     *
63
     * @return array
64
     */
65
    public function listDatabases()
66
    {
67
        $json = (string) $this->client->request('GET', '/_all_dbs')->getBody();
68
        $databases = JSONEncoder::decode($json);
69
70
        return $databases;
71
    }
72
73
    /**
74
     * Drop a database.