Code Duplication    Length = 7-12 lines in 2 locations

src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php 1 location

@@ 109-120 (lines=12) @@
106
        $this->output->write($text, $newLine, $type);
107
    }
108
109
    public function writeError($message, $exit = false)
110
    {
111
        $this->output->writeln(
112
            $this->getQuestionHelper()
113
                ->getHelperSet()
114
                ->get('formatter')
115
                ->formatBlock($message, 'error')
116
        );
117
        if ($exit) {
118
            exit;
119
        }
120
    }
121
122
    public function askAndValidate(
123
        $question,

src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php 1 location

@@ 108-114 (lines=7) @@
105
     * @param $message
106
     * @param bool $exit
107
     */
108
    private function writeError($message, $exit = false)
109
    {
110
        $this->output->writeln($this->questionHelper->getHelperSet()->get('formatter')->formatBlock($message, 'error'));
111
        if ($exit) {
112
            exit;
113
        }
114
    }
115
116
    /**
117
     * Get an array with all the bundles the user has created.