Code Duplication    Length = 11-12 lines in 2 locations

src/Process/Installer.php 2 locations

@@ 253-263 (lines=11) @@
250
     *
251
     * @return \Symfony\Component\Process\Process
252
     */
253
    public function installViaGit()
254
    {
255
        return new Process(sprintf(
256
            'cd %s && git clone %s %s && cd %s && git checkout %s',
257
            base_path(),
258
            $this->getRepoUrl(),
259
            $this->getDestinationPath(),
260
            $this->getDestinationPath(),
261
            $this->getBranch()
262
        ));
263
    }
264
265
    /**
266
     * Install the component via git subtree.
@@ 270-281 (lines=12) @@
267
     *
268
     * @return \Symfony\Component\Process\Process
269
     */
270
    public function installViaSubtree()
271
    {
272
        return new Process(sprintf(
273
            'cd %s && git remote add %s %s && git subtree add --prefix=%s --squash %s %s',
274
            base_path(),
275
            $this->getComponentName(),
276
            $this->getRepoUrl(),
277
            $this->getDestinationPath(),
278
            $this->getComponentName(),
279
            $this->getBranch()
280
        ));
281
    }
282
283
    /**
284
     * Install the component via composer.