Code Duplication    Length = 9-9 lines in 3 locations

Services/Composer.php 3 locations

@@ 43-51 (lines=9) @@
40
     * @param  string $package
41
     * @return void
42
     */
43
    public function update($package = null)
44
    {
45
        if (!is_null($package)) {
46
            $package = '"' . $package . '"';
47
        }
48
        $process = $this->getProcess();
49
        $process->setCommandLine(trim($this->findComposer() . ' update ' . $package));
50
        $process->run($this->output);
51
    }
52
53
    /**
54
     * Require a new composer package.
@@ 59-67 (lines=9) @@
56
     * @param  string $package
57
     * @return void
58
     */
59
    public function install($package)
60
    {
61
        if (!is_null($package)) {
62
            $package = '"' . $package . '"';
63
        }
64
        $process = $this->getProcess();
65
        $process->setCommandLine(trim($this->findComposer() . ' require ' . $package));
66
        $process->run($this->output);
67
    }
68
69
    /**
70
     * @return void
@@ 79-87 (lines=9) @@
76
        $process->run($this->output);
77
    }
78
79
    public function remove($package)
80
    {
81
        if (!is_null($package)) {
82
            $package = '"' . $package . '"';
83
        }
84
        $process = $this->getProcess();
85
        $process->setCommandLine(trim($this->findComposer() . ' remove ' . $package));
86
        $process->run($this->output);
87
    }
88
}
89