Code Duplication    Length = 5-5 lines in 2 locations

src/Webcreate/Conveyor/Command/DeployCommand.php 1 location

@@ 47-51 (lines=5) @@
44
        $target = $input->getArgument('target');
45
        $targets = [$target];
46
47
        if (false !== strpos($target, ',')) {
48
            $output->writeln('<info>Deprecated: Comma-separated list of targets is no longer supported, please use target groups to deploy to multiple targets at once.</info>');
49
50
            $targets = explode(',', $target);
51
        }
52
53
        foreach ($targets as $target) {
54
            $conveyor->deploy($target, $input->getArgument('version'), $options);

src/Webcreate/Conveyor/Command/SimulateCommand.php 1 location

@@ 44-48 (lines=5) @@
41
        $target = $input->getArgument('target');
42
        $targets = [$target];
43
44
        if (false !== strpos($target, ',')) {
45
            $output->writeln('<info>Deprecated: Comma-separated list of targets is no longer supported, please use target groups to deploy to multiple targets at once.</info>');
46
47
            $targets = explode(',', $target);
48
        }
49
50
        foreach ($targets as $target) {
51
            $conveyor->simulate($target, $input->getArgument('version'), $options);