Code Duplication    Length = 10-13 lines in 2 locations

lib/Console/Command/DefaultCommand.php 2 locations

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