Code Duplication    Length = 9-9 lines in 6 locations

src/Actions/Command.php 1 location

@@ 32-40 (lines=9) @@
29
30
class Command extends AbstractAction {
31
32
    public function install($package_name, $package_extra) {
33
34
        $io = $this->getIO();
35
36
        $io->write("<info>>>> Installing (extender) commands from package ".$package_name."</info>");
37
38
        self::processCommand($io, 'install', $package_name, $package_extra);
39
40
    }
41
42
    public function update($package_name, $initial_extra, $target_extra) {
43

src/Actions/ExtenderTask.php 1 location

@@ 32-40 (lines=9) @@
29
30
class ExtenderTask extends AbstractAction {
31
32
    public function install($package_name, $package_extra) {
33
34
        $io = $this->getIO();
35
36
        $io->write("<info>>>> Installing (extender) tasks from package ".$package_name."</info>");
37
38
        $this->processTask($io, 'install', $package_name, $package_extra);
39
40
    }
41
42
    public function update($package_name, $initial_extra, $target_extra) {
43

src/Actions/Rpc.php 1 location

@@ 32-40 (lines=9) @@
29
30
class Rpc extends AbstractAction {
31
32
    public function install($package_name, $package_extra) {
33
34
        $io = $this->getIO();
35
36
        $io->write("<info>>>> Installing rpc services from package ".$package_name."</info>");
37
38
        self::processRpc($io, 'install', $package_name, $package_extra);
39
40
    }
41
42
    public function update($package_name, $initial_extra, $target_extra) {
43

src/Actions/Task.php 1 location

@@ 32-40 (lines=9) @@
29
30
class Task extends AbstractAction {
31
32
    public function install($package_name, $package_extra) {
33
34
        $io = $this->getIO();
35
36
        $io->write("<info>>>> Installing (extender) tasks from package ".$package_name."</info>");
37
38
        $this->processTask($io, 'install', $package_name, $package_extra);
39
40
    }
41
42
    public function update($package_name, $initial_extra, $target_extra) {
43

src/Actions/Theme.php 2 locations

@@ 32-40 (lines=9) @@
29
30
class Theme extends AbstractAction {
31
32
    public function install($package_name, $package_extra) {
33
34
        $io = $this->getIO();
35
36
        $io->write("<info>>>> Installing themes from package ".$package_name."</info>");
37
38
        $this->processTheme($io, 'install', $package_name, $package_extra);
39
40
    }
41
42
    public function update($package_name, $initial_extra, $target_extra) {
43
@@ 54-62 (lines=9) @@
51
52
    }
53
54
    public function uninstall($package_name, $package_extra) {
55
56
        $io = $this->getIO();
57
58
        $io->write("<info>>>> Removing themes from package ".$package_name."</info>");
59
60
        $this->processTheme($io, 'uninstall', $package_name, $package_extra);
61
62
    }
63
64
    private function processTheme($io, $action, $package_name, $package_extra) {
65