Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
34 | private function parseDsn(string $dsn): array |
||
35 | { |
||
36 | $query = []; |
||
37 | |||
38 | if ($queryAsString = \mb_strstr($dsn, '?')) { |
||
39 | \parse_str(\ltrim($queryAsString, '?'), $query); |
||
40 | } |
||
41 | |||
42 | return [ |
||
43 | 'intercept' => \filter_var($query['intercept'] ?? true, \FILTER_VALIDATE_BOOLEAN), |
||
44 | 'catch_exceptions' => \filter_var($query['catch_exceptions'] ?? true, \FILTER_VALIDATE_BOOLEAN), |
||
45 | ]; |
||
48 |