Code Duplication    Length = 5-5 lines in 2 locations

src/Lodash/Commands/UserAdd.php 1 location

@@ 43-47 (lines=5) @@
40
        $guard = $this->getGuard();
41
        $config = config('auth');
42
43
        if (! isset($config['guards'][$guard]['provider'])) {
44
            $this->error('Provider not found for guard "' . $guard . '"!');
45
46
            return;
47
        }
48
        $provider = $config['guards'][$guard]['provider'];
49
        if (! isset($config['providers'][$provider]['model'])) {
50
            $this->error('Model not found for provider "' . $provider . '"!');

src/Lodash/Commands/UserPassword.php 1 location

@@ 43-47 (lines=5) @@
40
        $guard = $this->getGuard();
41
        $config = config('auth');
42
43
        if (! isset($config['guards'][$guard]['provider'])) {
44
            $this->error('Provider not found for guard "' . $guard . '"!');
45
46
            return;
47
        }
48
        $provider = $config['guards'][$guard]['provider'];
49
        if (! isset($config['providers'][$provider]['model'])) {
50
            $this->error('Model not found for provider "' . $provider . '"!');