Code Duplication    Length = 3-3 lines in 2 locations

src/Connection.php 2 locations

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