| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public static function set($user, $tenant) |
||
| 11 | { |
||
| 12 | if ($tenant) { |
||
| 13 | self::connection(Connections::Tenant); |
||
| 14 | } else { |
||
| 15 | self::connection('mysql'); |
||
| 16 | } |
||
| 17 | // This is test for tenant db |
||
| 18 | self::connection(Connections::Tenant); |
||
| 19 | |||
| 20 | // $key = 'database.default'; |
||
| 21 | // $value = Connections::Tenant; |
||
| 22 | // config([$key => $value]); |
||
| 23 | |||
| 24 | DB::purge(Connections::Tenant); |
||
| 25 | |||
| 26 | DB::reconnect(Connections::Tenant); |
||
| 27 | } |
||
| 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