Code Duplication    Length = 10-11 lines in 2 locations

src/MSSQLDatabaseConfigurationHelper.php 2 locations

@@ 169-178 (lines=10) @@
166
        return !empty($data['supported']);
167
    }
168
169
    public function requireDatabaseServer($databaseConfig)
170
    {
171
        $conn = $this->createConnection($databaseConfig, $error);
172
        $success = !empty($conn);
173
174
        return array(
175
            'success' => $success,
176
            'error' => $error
177
        );
178
    }
179
180
    public function requireDatabaseConnection($databaseConfig)
181
    {
@@ 180-190 (lines=11) @@
177
        );
178
    }
179
180
    public function requireDatabaseConnection($databaseConfig)
181
    {
182
        $conn = $this->createConnection($databaseConfig, $error);
183
        $success = !empty($conn);
184
185
        return array(
186
            'success' => $success,
187
            'connection' => $conn,
188
            'error' => $error
189
        );
190
    }
191
192
    public function getDatabaseVersion($databaseConfig)
193
    {