Code Duplication    Length = 5-5 lines in 2 locations

src/TreeHouse/IoBundle/Command/ImportCloseCommand.php 1 location

@@ 45-49 (lines=5) @@
42
     */
43
    protected function execute(InputInterface $input, OutputInterface $output)
44
    {
45
        if (null === $import = $this->findImportById($input->getArgument('import'))) {
46
            $output->writeln(sprintf('<error>Import %d does not exist</error>', $input->getArgument('import')));
47
48
            return 1;
49
        }
50
51
        // start import if it hasn't already
52
        if (!$import->isStarted()) {

src/TreeHouse/IoBundle/Command/ImportLogViewCommand.php 1 location

@@ 53-57 (lines=5) @@
50
     */
51
    protected function execute(InputInterface $input, OutputInterface $output)
52
    {
53
        if (null === $import = $this->findImportById($input->getArgument('import'))) {
54
            $output->writeln(sprintf('<error>Import %d does not exist</error>', $input->getArgument('import')));
55
56
            return 1;
57
        }
58
59
        $items = 0;
60
        $success = 0;