Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 57-66 (lines=10) @@
54
     * @param string $pluginName format foo/bar or foo/bar:1.0.0 or "foo/bar 1.0.0"
55
     * @return array
56
     */
57
    public function execInfo($pluginName)
58
    {
59
        $output = $this->runCommand(array(
60
            'command' => 'info',
61
            'package' => $pluginName,
62
        ));
63
        $parser = new ParseOutputCommand($output, ParseOutputCommand::INFO_TYPE);
64
65
        return $parser->parse();
66
    }
67
68
    /**
69
     * Run execute command
@@ 157-166 (lines=10) @@
154
     *
155
     * @return array
156
     */
157
    public function getConfig()
158
    {
159
        $output = $this->runCommand(array(
160
            'command' => 'config',
161
            '--list' => true,
162
        ));
163
        $parser = new ParseOutputCommand($output, ParseOutputCommand::LIST_TYPE);
164
165
        return $parser->parse();
166
    }
167
168
    /**
169
     * Set work dir