Code Duplication    Length = 8-8 lines in 2 locations

Command/CreateDatabaseNotificationCommand.php 1 location

@@ 65-72 (lines=8) @@
62
    {
63
        $questionHelper = $this->getQuestionHelper();
64
65
        if ($input->isInteractive()) {
66
            $question = new ConfirmationQuestion($questionHelper->getQuestion('Do you confirm generation', 'yes', '?'), true);
67
            if (!$questionHelper->ask($input, $output, $question)) {
68
                $output->writeln('<error>Command aborted</error>');
69
70
                return 1;
71
            }
72
        }
73
74
        $style = new SymfonyStyle($input, $output);
75

Command/CreateNotificationCommand.php 1 location

@@ 124-131 (lines=8) @@
121
    {
122
        $questionHelper = $this->getQuestionHelper();
123
124
        if ($input->isInteractive()) {
125
            $question = new ConfirmationQuestion(
126
                $questionHelper->getQuestion('Do you confirm generation', 'yes', '?'),
127
                true
128
            );
129
            if (!$questionHelper->ask($input, $output, $question)) {
130
                $output->writeln('<error>Command aborted</error>');
131
132
                return 1;
133
            }
134
        }