Code Duplication    Length = 8-8 lines in 2 locations

src/Magestead/Installers/Magento2Project.php 2 locations

@@ 52-59 (lines=8) @@
49
     * @param $projectPath
50
     * @param OutputInterface $output
51
     */
52
    protected function addPhpSpecPackage($projectPath, OutputInterface $output)
53
    {
54
        $output->writeln('<comment>Installing PHPSpec</comment>');
55
        $command = 'cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;';
56
        new ProcessCommand($command, $projectPath, $output);
57
58
        $this->setPhpSpecPermissions($projectPath, $output);
59
    }
60
61
    /**
62
     * @param $projectPath
@@ 65-72 (lines=8) @@
62
     * @param $projectPath
63
     * @param OutputInterface $output
64
     */
65
    protected function addBehatPackage($projectPath, OutputInterface $output)
66
    {
67
        $output->writeln('<comment>Installing Behat</comment>');
68
        $command = 'cd '.$projectPath.'/public; composer require behat/behat --dev;';
69
        new ProcessCommand($command, $projectPath, $output);
70
71
        $this->setBehatPermissions($projectPath, $output);
72
    }
73
74
    /**
75
     * @param array $options