Code Duplication    Length = 4-4 lines in 2 locations

src/Cache/Storage/Adapter/CouchbaseResourceManager.php 2 locations

@@ 55-58 (lines=4) @@
52
        }
53
        if (is_array($server)) {
54
            // array(<host>[, <port>])
55
            if (isset($server[0])) {
56
                $host = (string)$server[0];
57
                $port = isset($server[1]) ? (int)$server[1] : $port;
58
            }
59
            // array('host' => <host>[, 'port' => <port>])
60
            if (!isset($server[0]) && isset($server['host'])) {
61
                $host = (string)$server['host'];
@@ 60-63 (lines=4) @@
57
                $port = isset($server[1]) ? (int)$server[1] : $port;
58
            }
59
            // array('host' => <host>[, 'port' => <port>])
60
            if (!isset($server[0]) && isset($server['host'])) {
61
                $host = (string)$server['host'];
62
                $port = isset($server['port']) ? (int)$server['port'] : $port;
63
            }
64
        } else {
65
            // parse server from URI host{:?port}
66
            $server = trim($server);