Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
33 | public function handle(Logout $event) |
||
|
|||
34 | { |
||
35 | $user = auth()->user(); |
||
36 | $company = DB::connection($this->getConnectionName())->table('user_company')->where('user_id', $user->id)->select('company_id')->first(); |
||
37 | $tree = Tree::where('company_id', $company->company_id)->first(); |
||
38 | $tenant = Tenant::where('tree_id', $tree->id)->first(); |
||
39 | session()->flush(); |
||
40 | $tenant->forgetCurrent(); |
||
41 | } |
||
43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.