Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MixedConnection |
||
9 | { |
||
10 | public static function set($user, $tenant) |
||
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::Mixed; |
||
22 | // // config([$key => $value]); |
||
23 | |||
24 | // DB::purge(Connections::Mixed); |
||
25 | |||
26 | // DB::reconnect(Connections::Mixed); |
||
27 | } |
||
28 | |||
29 | private static function connection($connection) |
||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.