| Total Complexity | 8 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait ArangoCommands |
||
| 8 | { |
||
| 9 | public bool $useArangoDB = false; |
||
| 10 | |||
| 11 | protected function connectionHasArangodbDriver(?string $name): bool |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function arangodbIsDefaultConnection(): bool |
||
| 26 | { |
||
| 27 | $connection = \DB::connection(); |
||
| 28 | |||
| 29 | return $connection->getDriverName() === 'arangodb'; |
||
| 30 | } |
||
| 31 | |||
| 32 | |||
| 33 | protected function useFallback(): bool |
||
| 36 | } |
||
| 37 | } |
||
| 38 |