Code Duplication    Length = 13-14 lines in 2 locations

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

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