Code Duplication    Length = 11-11 lines in 2 locations

src/Magestead/Command/BehatCommand.php 1 location

@@ 37-47 (lines=11) @@
34
        return $output->writeln('<error>Command not available for this application</error>');
35
    }
36
37
    protected function getCommand(Config $config, $option)
38
    {
39
        $type = $config->type;
40
        switch ($type) {
41
            case 'magento':
42
                return "cd /var/www;bin/behat $option";
43
                break;
44
        }
45
46
        return false;
47
    }
48
49
}
50

src/Magestead/Command/PhpspecCommand.php 1 location

@@ 37-47 (lines=11) @@
34
        return $output->writeln('<error>Command not available for this application</error>');
35
    }
36
37
    protected function getCommand(Config $config, $option)
38
    {
39
        $type = $config->type;
40
        switch ($type) {
41
            case 'magento':
42
                return "cd /var/www;bin/phpspec $option";
43
                break;
44
        }
45
46
        return false;
47
    }
48
49
}
50