Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 3 | public function getParameters(): array |
|
39 | { |
||
40 | 3 | $memP = [ |
|
41 | 3 | 'memory' => true, |
|
42 | 3 | ]; |
|
43 | |||
44 | 3 | $isInMemory = $this->inMemory(); |
|
45 | 3 | if (!$isInMemory) { |
|
46 | 1 | $memP['memory'] = false; |
|
47 | 1 | $memP['path'] = $this->getPath(); |
|
48 | } |
||
49 | |||
50 | 3 | return [ |
|
51 | 3 | 'driver' => static::name(), |
|
52 | 3 | 'user' => $this->getUser(), |
|
53 | 3 | 'password' => $this->getPassword(), |
|
54 | 3 | ...$memP, |
|
55 | 3 | ]; |
|
63 |