Code Duplication    Length = 10-10 lines in 2 locations

src/Magestead/Installers/Magento2Project.php 1 location

@@ 171-180 (lines=10) @@
168
     * @param $projectPath
169
     * @param OutputInterface $output
170
     */
171
    protected function finaliseSetup($projectPath, OutputInterface $output)
172
    {
173
        $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento indexer:reindex; \'';
174
        $output->writeln('<comment>Reindexing Tables</comment>');
175
        new ProcessCommand($command, $projectPath, $output);
176
177
        $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento cache:flush;\'';
178
        $output->writeln('<comment>Flushing All Cache</comment>');
179
        new ProcessCommand($command, $projectPath, $output);
180
    }
181
182
    /**
183
     * @param array $options

src/Magestead/Installers/MagentoProject.php 1 location

@@ 112-121 (lines=10) @@
109
     * @param $projectPath
110
     * @param OutputInterface $output
111
     */
112
    protected function installMagerun($projectPath, OutputInterface $output)
113
    {
114
        $command = 'vagrant ssh -c \'cd /var/www/bin; sudo wget https://files.magerun.net/n98-magerun.phar;\'';
115
        $output->writeln('<info>Downloading Magerun</info>');
116
        new ProcessCommand($command, $projectPath, $output);
117
118
        $command = 'vagrant ssh -c \'cd /var/www/bin; sudo chmod +x ./n98-magerun.phar;\'';
119
        $output->writeln('<comment>Setting Magerun Permissions</comment>');
120
        new ProcessCommand($command, $projectPath, $output);
121
    }
122
123
    protected function finaliseSetup($options, $projectPath, OutputInterface $output)
124
    {