Code Duplication    Length = 4-7 lines in 2 locations

sources/Commands/AddonRemoveCommand.php 1 location

@@ 56-62 (lines=7) @@
53
        $this->line('Addon name: '.$addon_name);
54
        $this->line('Addon path: '.$addon->relativePath($this->laravel));
55
56
        if (!$this->option('force')) {
57
            if (!$this->confirm('Are you sure? [y/N]', false)) {
58
                $this->comment('canceled');
59
60
                return;
61
            }
62
        }
63
64
        // process
65
        $filesystem->deleteDirectory($addon->path());

sources/Commands/AddonMakeCommand.php 1 location

@@ 128-131 (lines=4) @@
125
        $this->line('Skeleton: '.$skeleton);
126
        $this->line('Languages: '.implode(', ', $properties['languages']));
127
128
        if (!$this->option('yes') && !$this->confirm('generate ready? [Y/n]', true)) {
129
            $this->comment('canceled');
130
            return;
131
        }
132
133
        try {
134
            $generator->generateAddon($output_path, str_replace(':', '-', $skeleton), $properties);