Code Duplication    Length = 3-3 lines in 2 locations

src/Connection.php 2 locations

@@ 130-132 (lines=3) @@
127
        $cluster = Cassandra::cluster();
128
129
        // Check if the credentials are not already set in the options
130
        if (!isset($options['username']) && !empty($config['username'])) {
131
            $options['username'] = $config['username'];
132
        }
133
        if (!isset($options['password']) && !empty($config['password'])) {
134
            $options['password'] = $config['password'];
135
        }
@@ 133-135 (lines=3) @@
130
        if (!isset($options['username']) && !empty($config['username'])) {
131
            $options['username'] = $config['username'];
132
        }
133
        if (!isset($options['password']) && !empty($config['password'])) {
134
            $options['password'] = $config['password'];
135
        }
136
137
        // Authentication
138
        if (isset($options['username']) && isset($options['password'])) {