Code Duplication    Length = 12-13 lines in 2 locations

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

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