Code Duplication    Length = 13-14 lines in 2 locations

src/Eccube/Service/Composer/ComposerApiService.php 2 locations

@@ 77-90 (lines=14) @@
74
     * @param string $packageName format "foo/bar foo/bar:1.0.0"
75
     * @return array
76
     */
77
    public function execRequire($packageName)
78
    {
79
        $packageName = explode(" ", trim($packageName));
80
        $output = $this->runCommand(array(
81
            'command' => 'require',
82
            'packages' => $packageName,
83
            '--no-interaction' => true,
84
            '--profile' => true,
85
            '--prefer-dist' => true,
86
            '--ignore-platform-reqs' => true,
87
        ));
88
89
        return OutputParser::parseRequire($output);
90
    }
91
92
    /**
93
     * Run remove command
@@ 98-110 (lines=13) @@
95
     * @param string $packageName format "foo/bar foo/bar:1.0.0"
96
     * @return bool
97
     */
98
    public function execRemove($packageName)
99
    {
100
        $packageName = explode(' ', trim($packageName));
101
        $this->runCommand(array(
102
            'command' => 'remove',
103
            'packages' => $packageName,
104
            '--ignore-platform-reqs' => true,
105
            '--no-interaction' => true,
106
            '--profile' => true,
107
        ));
108
109
        return true;
110
    }
111
112
    /**
113
     * Get require