Code Duplication    Length = 14-14 lines in 2 locations

src/Command/Server/StatusCommand.php 1 location

@@ 27-40 (lines=14) @@
24
    /**
25
     * Command configuration
26
     */
27
    protected function configure()
28
    {
29
        $this
30
            // the name of the command (the part after "bin/bluzman")
31
            ->setName('server:status')
32
            // the short description shown while running "php bin/bluzman list"
33
            ->setDescription('Get the status of built-in PHP server')
34
            // the full command description shown when running the command with
35
            // the "--help" option
36
            ->setHelp('This command allows you to check built-in PHP server')
37
        ;
38
        $this->addOption('host', null, InputOption::VALUE_OPTIONAL, 'IP address of the server', '0.0.0.0');
39
        $this->addOption('port', null, InputOption::VALUE_OPTIONAL, 'Port of the server', '8000');
40
    }
41
42
    /**
43
     * @param InputInterface $input

src/Command/Server/StopCommand.php 1 location

@@ 27-40 (lines=14) @@
24
    /**
25
     * Command configuration
26
     */
27
    protected function configure()
28
    {
29
        $this
30
            // the name of the command (the part after "bin/bluzman")
31
            ->setName('server:stop')
32
            // the short description shown while running "php bin/bluzman list"
33
            ->setDescription('Stop a built-in PHP server')
34
            // the full command description shown when running the command with
35
            // the "--help" option
36
            ->setHelp('This command allows you to stop built-in PHP server')
37
        ;
38
        $this->addOption('host', null, InputOption::VALUE_OPTIONAL, 'IP address of the server', '0.0.0.0');
39
        $this->addOption('port', null, InputOption::VALUE_OPTIONAL, 'Port of the server', '8000');
40
    }
41
42
    /**
43
     * @param InputInterface $input