| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ConnectionTrait |
||
| 8 | { |
||
| 9 | public function setConnection($conn = 'mysql', $db = 'genealogy')//'enso') |
||
| 10 | { |
||
| 11 | if ($conn === Connections::Tenant) { |
||
| 12 | $key = 'database.connections.tenant.database'; |
||
| 13 | config([$key => $db]); |
||
| 14 | } |
||
| 15 | \Session::put('conn', $conn); |
||
| 16 | \Session::put('db', $db); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getConnection() |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getDB() |
||
| 37 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths