Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 18-36 (lines=19) @@
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
class BuildCommand extends AbstractCommand
19
{
20
    protected function configure()
21
    {
22
        $this
23
            ->setName('build')
24
            ->setDescription('Build')
25
            ->addArgument('target', InputArgument::REQUIRED, 'Target to build')
26
            ->addArgument('version', InputArgument::REQUIRED, 'Version to build')
27
        ;
28
    }
29
30
    protected function execute(InputInterface $input, OutputInterface $output)
31
    {
32
        $deploy = $this->getConveyor($input, $output, $this->getHelperSet());
33
34
        $deploy->build($input->getArgument('target'), $input->getArgument('version'));
35
    }
36
}
37

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

@@ 18-36 (lines=19) @@
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
class DiffCommand extends AbstractCommand
19
{
20
    protected function configure()
21
    {
22
        $this
23
            ->setName('diff')
24
            ->setDescription('Compare a remote version with a local version')
25
            ->addArgument('target', InputArgument::REQUIRED, 'Target to diff')
26
            ->addArgument('version', InputArgument::REQUIRED, 'Version to diff')
27
        ;
28
    }
29
30
    protected function execute(InputInterface $input, OutputInterface $output)
31
    {
32
        $deploy = $this->getConveyor($input, $output, $this->getHelperSet());
33
34
        $deploy->diff($input->getArgument('target'), $input->getArgument('version'));
35
    }
36
}
37