Code Duplication    Length = 10-10 lines in 2 locations

src/BackupFactory.php 2 locations

@@ 89-98 (lines=10) @@
86
                    $options['connections'][$options['default']]['password'],
87
                    $options
88
                );
89
            case 'pgsql':
90
                return new BackupEnginePgsql(
91
                    $backupProcessInstance,
92
                    $options['connections'][$options['default']]['database'],
93
                    $options['connections'][$options['default']]['host'],
94
                    null,
95
                    $options['connections'][$options['default']]['username'],
96
                    $options['connections'][$options['default']]['password'],
97
                    $options
98
                );
99
            case 'sqlite':
100
                return new BackupEngineSqlite(
101
                    $backupProcessInstance,
@@ 109-118 (lines=10) @@
106
                    null,
107
                    $options
108
                );
109
            case 'sqlsrv':
110
                return new BackupEngineSqlsrv(
111
                    $backupProcessInstance,
112
                    $options['connections'][$options['default']]['database'],
113
                    $options['connections'][$options['default']]['host'],
114
                    null,
115
                    $options['connections'][$options['default']]['username'],
116
                    $options['connections'][$options['default']]['password'],
117
                    $options
118
                );
119
            default:
120
                throw new BackupException('Database driver isn\'t supported.');
121
        }