Code Duplication    Length = 8-8 lines in 2 locations

Command/CreateDatabaseNotificationCommand.php 1 location

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

Command/CreateNotificationCommand.php 1 location

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