Code Duplication    Length = 5-5 lines in 2 locations

Console/Installers/Scripts/UserProviders/ProviderInstaller.php 1 location

@@ 59-63 (lines=5) @@
56
        $this->command = $command;
57
58
        // Publish asgard configs
59
        if ($this->command->option('verbose')) {
60
            $this->command->call('vendor:publish', ['--provider' => 'Modules\Core\Providers\CoreServiceProvider']);
61
        } else {
62
            $this->command->callSilent('vendor:publish', ['--provider' => 'Modules\Core\Providers\CoreServiceProvider']);
63
        }
64
65
        if (! $this->checkIsInstalled()) {
66
            return $this->command->error('No user driver was installed. Please check the presence of a Service Provider');

Console/Installers/Scripts/UserProviders/UsherInstaller.php 1 location

@@ 36-40 (lines=5) @@
33
     */
34
    public function publish()
35
    {
36
        if ($this->command->option('verbose')) {
37
            $this->command->call('vendor:publish', ['--provider' => 'Maatwebsite\Usher\UsherServiceProvider']);
38
39
            return $this->command->call('vendor:publish', ['--provider' => 'Mitch\LaravelDoctrine\LaravelDoctrineServiceProvider']);
40
        }
41
42
        $this->command->callSilent('vendor:publish', ['--provider' => 'Maatwebsite\Usher\UsherServiceProvider']);
43