Conditions | 2 |
Paths | 2 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | protected function defineConnectionString() |
||
22 | 6 | { |
|
23 | if (! isset($this->configuration['dsn'])) { |
||
24 | 6 | $this->configuration['dsn'] = sprintf("mysql:host=%s;dbname=%s;port=%s", $this->configuration['host'] ?? '', $this->configuration['db'] ?? '', $this->configuration['port'] ?? 3306); |
|
25 | 6 | } |
|
56 |