Code Duplication    Length = 5-5 lines in 2 locations

src/Lodash/Commands/UserAdd.php 1 location

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

src/Lodash/Commands/UserPassword.php 1 location

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