Code Duplication    Length = 7-7 lines in 2 locations

src/Command/NewSite.php 1 location

@@ 46-52 (lines=7) @@
43
        $force = $input->getOption('force');
44
45
        try {
46
            if ($this->fs->exists($this->getPath().'/'.self::CONFIG_FILE) && !$force) {
47
                $helper = $this->getHelper('question');
48
                $question = new ConfirmationQuestion(
49
                    'Website already exists. Do you want to override it? [y/n]',
50
                    false
51
                );
52
                if (!$helper->ask($input, $output, $question)) {
53
                    return;
54
                }
55
            }

src/Command/NewPage.php 1 location

@@ 64-70 (lines=7) @@
61
            $filePath = $this->getPath().'/'.$fileRelativePath;
62
63
            // file already exists?
64
            if ($this->fs->exists($filePath) && !$force) {
65
                $helper = $this->getHelper('question');
66
                $question = new ConfirmationQuestion(sprintf(
67
                    'This page already exists. Do you want to override it? [y/n]',
68
                    $this->getpath()),
69
                    false
70
                );
71
                if (!$helper->ask($input, $output, $question)) {
72
                    return;
73
                }