Code Duplication    Length = 8-8 lines in 2 locations

src/Magestead/Installers/Magento2Project.php 2 locations

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