Code Duplication    Length = 11-12 lines in 2 locations

src/Process/Installer.php 2 locations

@@ 262-272 (lines=11) @@
259
     *
260
     * @return \Symfony\Component\Process\Process
261
     */
262
    public function installViaGit()
263
    {
264
        return new Process(sprintf(
265
            'cd %s && git clone %s %s && cd %s && git checkout %s',
266
            base_path(),
267
            $this->getRepoUrl(),
268
            $this->getDestinationPath(),
269
            $this->getDestinationPath(),
270
            $this->getBranch()
271
        ));
272
    }
273
274
    /**
275
     * Install the module via git subtree.
@@ 279-290 (lines=12) @@
276
     *
277
     * @return \Symfony\Component\Process\Process
278
     */
279
    public function installViaSubtree()
280
    {
281
        return new Process(sprintf(
282
            'cd %s && git remote add %s %s && git subtree add --prefix=%s --squash %s %s',
283
            base_path(),
284
            $this->getModuleName(),
285
            $this->getRepoUrl(),
286
            $this->getDestinationPath(),
287
            $this->getModuleName(),
288
            $this->getBranch()
289
        ));
290
    }
291
292
    /**
293
     * Install the module via composer.