Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function handle() |
||
29 | { |
||
30 | $database = 'tenant_'.$this->tenant->id; |
||
31 | $connection = \DB::connection('tenant'); |
||
32 | $createMysql = $connection->statement('CREATE DATABASE '.$database); |
||
33 | |||
34 | if ($createMysql) { |
||
35 | $this->tenantManager->setTenant($this->tenant); |
||
36 | \DB::connection('tenant')->purge(); |
||
|
|||
37 | $this->migrate(); |
||
38 | } else { |
||
39 | $connection->statement('DROP DATABASE '.$database); |
||
40 | } |
||
55 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.