Conditions | 5 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | protected function connectionHasArangodbDriver(?string $name): bool |
||
12 | { |
||
13 | if ($name == '' && ! $this->arangodbIsDefaultConnection()) { |
||
14 | return false; |
||
15 | } |
||
16 | if ($name == '' && $this->arangodbIsDefaultConnection()) { |
||
17 | return true; |
||
18 | } |
||
19 | |||
20 | $connections = config('database.connections'); |
||
21 | |||
22 | return $connections[$name]['driver'] === 'arangodb'; |
||
23 | } |
||
38 |