Code Duplication    Length = 8-8 lines in 2 locations

src/Magestead/Installers/Magento2Project.php 2 locations

@@ 72-79 (lines=8) @@
69
     * @param $projectPath
70
     * @param OutputInterface $output
71
     */
72
    protected function addPhpSpecPackage($projectPath, OutputInterface $output)
73
    {
74
        $output->writeln('<comment>Installing PHPSpec</comment>');
75
        $command = 'cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;';
76
        new ProcessCommand($command, $projectPath, $output);
77
78
        $this->setPhpSpecPermissions($projectPath, $output);
79
    }
80
81
    /**
82
     * @param $projectPath
@@ 85-92 (lines=8) @@
82
     * @param $projectPath
83
     * @param OutputInterface $output
84
     */
85
    protected function addBehatPackage($projectPath, OutputInterface $output)
86
    {
87
        $output->writeln('<comment>Installing Behat</comment>');
88
        $command = 'cd '.$projectPath.'/public; composer require behat/behat --dev;';
89
        new ProcessCommand($command, $projectPath, $output);
90
91
        $this->setBehatPermissions($projectPath, $output);
92
    }
93
94
    /**
95
     * @param array $config