| Conditions | 3 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 6 | protected function getOptions() |
|
| 17 | { |
||
| 18 | 6 | return [ |
|
| 19 | 6 | PDO::ATTR_PERSISTENT => array_key_exists('persistent', $this->config) ? $this->config['persistent'] : false, |
|
| 20 | 6 | PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, |
|
| 21 | 6 | PDO::ATTR_DEFAULT_FETCH_MODE => array_key_exists('fetch', $this->config) |
|
| 22 | 6 | ? constant($this->config['fetch']) : PDO::FETCH_OBJ |
|
| 23 | 6 | ]; |
|
| 26 |