Code Duplication    Length = 8-9 lines in 2 locations

src/N98/Magento/Command/Installer/SubCommand/InstallSampleData.php 1 location

@@ 25-32 (lines=8) @@
22
23
        $dialog = $this->getCommand()->getHelper('dialog');
24
25
        if ($this->input->getOption('installSampleData') !== null) {
26
            $installSampleData = $this->getCommand()->parseBoolOption($this->input->getOption('installSampleData'));
27
        } else {
28
            $installSampleData = $dialog->askConfirmation(
29
                $this->output,
30
                '<question>Install sample data?</question> <comment>[y]</comment>: '
31
            );
32
        }
33
34
        if ($installSampleData) {
35
            $this->runSampleDataInstaller();

src/N98/Magento/Command/Installer/SubCommand/RewriteHtaccessFile.php 1 location

@@ 25-33 (lines=9) @@
22
23
        $dialog = $this->getCommand()->getHelper('dialog');
24
25
        if ($this->input->getOption('replaceHtaccessFile') !== null) {
26
            $replaceHtaccessFile = $this->getCommand()->parseBoolOption($this->input->getOption('replaceHtaccessFile'));
27
        } else {
28
            $replaceHtaccessFile = $dialog->askConfirmation(
29
                $this->output,
30
                '<question>Write BaseURL to .htaccess file?</question> <comment>[n]</comment>: ',
31
                false
32
            );
33
        }
34
35
        if ($replaceHtaccessFile) {
36
            $this->replaceHtaccessFile();