| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.2559 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 33 | public static function getDriverClassName($driver) { |
|
| 33 | 33 | if ($driver == null) { |
|
| 34 | throw new exceptions\DatabaseDriverException( |
||
| 35 | "Please provide a valid driver name in your database config file" |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | 33 | return '\ntentan\atiaa\drivers\\' . Text::ucamelize($driver) . "Driver"; |
|
| 39 | } |
||
| 40 | |||
| 46 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.