Code Duplication    Length = 3-3 lines in 2 locations

src/Connection.php 2 locations

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