Code Duplication    Length = 10-13 lines in 2 locations

lib/Console/Command/DefaultCommand.php 2 locations

@@ 118-130 (lines=13) @@
115
        }
116
    }
117
118
    protected function askConfigurationQuestion(array $possibleLocations, InputInterface $input, OutputInterface $output)
119
    {
120
        $question = new ChoiceQuestion(
121
            'Could not find a magium-configuration.xml file.  Where would you like me to put it?',
122
            $possibleLocations
123
        );
124
        $ask = $this->getHelper('question');
125
        if ($ask instanceof QuestionHelper) {
126
            $result = $ask->ask($input, $output, $question);
127
            return $result;
128
        }
129
        return null;
130
    }
131
132
133
    /**
@@ 136-145 (lines=10) @@
133
    /**
134
     * @param string $contextPath
135
     */
136
    protected function askContextFileQuestion(InputInterface $input, OutputInterface $output, $contextPath)
137
    {
138
        $question = new ConfirmationQuestion(sprintf('The context file %s does not exist next to the magium-configuration.xml file.  Create it? ', $contextPath));
139
        $ask = $this->getHelper('question');
140
        if ($ask instanceof QuestionHelper) {
141
            $result = $ask->ask($input, $output, $question);
142
            return $result;
143
        }
144
        return null;
145
    }
146
147
    protected function execute(InputInterface $input, OutputInterface $output)
148
    {