| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 7 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | View Code Duplication | public function __construct() |
|
| 11 | { |
||
| 12 | $guard = config('admin.guard'); |
||
| 13 | $provider = config("auth.guards.{$guard}.provider"); |
||
| 14 | $managerModelName = config("auth.providers.{$provider}.model"); |
||
| 15 | $this->managerModel = new $managerModelName(); |
||
| 16 | } |
||
| 17 | |||
| 33 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.