Conditions | 6 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 42 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | public static function resolveDbType($driverName) |
||
35 | { |
||
36 | switch ($driverName) { |
||
37 | case 'mysql': |
||
38 | return $driverName; |
||
39 | case 'pgsql': |
||
40 | return $driverName; |
||
41 | case 'dblib': |
||
42 | case 'mssql': |
||
43 | case 'sqlsrv': |
||
44 | return 'sqlsrv'; |
||
45 | default: |
||
46 | throw new RuntimeException('Your database is not supported!'); |
||
47 | } |
||
48 | } |
||
49 | |||
60 |