Code Duplication    Length = 17-17 lines in 2 locations

src/Command/Build.php 1 location

@@ 25-41 (lines=17) @@
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function configure()
26
    {
27
        $this
28
            ->setName('build')
29
            ->setDescription('Build the website')
30
            ->setDefinition(
31
                new InputDefinition([
32
                    new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'),
33
                    new InputOption('drafts', 'd', InputOption::VALUE_NONE, 'Include drafts'),
34
                    new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Build without saving'),
35
                    new InputOption('baseurl', null, InputOption::VALUE_REQUIRED, 'Set the base URL'),
36
                    new InputOption('destination', null, InputOption::VALUE_REQUIRED, 'Set the output directory'),
37
                    new InputOption('optimize', null, InputOption::VALUE_OPTIONAL, 'Optimize output (disable with "no")', false),
38
                ])
39
            )
40
            ->setHelp('Build the website in the output directory.');
41
    }
42
43
    /**
44
     * {@inheritdoc}

src/Command/Serve.php 1 location

@@ 33-49 (lines=17) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function configure()
34
    {
35
        $this
36
            ->setName('serve')
37
            ->setDescription('Start the built-in server')
38
            ->setDefinition(
39
                new InputDefinition([
40
                    new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'),
41
                    new InputOption('drafts', 'd', InputOption::VALUE_NONE, 'Include drafts'),
42
                    new InputOption('open', 'o', InputOption::VALUE_NONE, 'Open browser automatically'),
43
                    new InputOption('host', null, InputOption::VALUE_REQUIRED, 'Server host'),
44
                    new InputOption('port', null, InputOption::VALUE_REQUIRED, 'Server port'),
45
                    new InputOption('optimize', null, InputOption::VALUE_OPTIONAL, 'Optimize output (disable with "no")', false),
46
                ])
47
            )
48
            ->setHelp('Start the live-reloading-built-in web server.');
49
    }
50
51
    /**
52
     * {@inheritdoc}