Code Duplication    Length = 19-19 lines in 2 locations

src/Command/ConvertCommand.php 1 location

@@ 47-65 (lines=19) @@
44
        parent::__construct();
45
    }
46
47
    protected function configure() : void
48
    {
49
        $this
50
            ->setName('browscap:convert')
51
            ->setDescription('Converts an existing browscap.ini file to a cache.php file.')
52
            ->addArgument(
53
                'file',
54
                InputArgument::OPTIONAL,
55
                'Path to the browscap.ini file',
56
                $this->defaultIniFile
57
            )
58
            ->addOption(
59
                'cache',
60
                'c',
61
                InputOption::VALUE_OPTIONAL,
62
                'Where the cache files are located',
63
                $this->defaultCacheFolder
64
            );
65
    }
66
67
    protected function execute(InputInterface $input, OutputInterface $output) : void
68
    {

src/Command/ParserCommand.php 1 location

@@ 41-59 (lines=19) @@
38
        parent::__construct();
39
    }
40
41
    protected function configure() : void
42
    {
43
        $this
44
            ->setName('browscap:parse')
45
            ->setDescription('Parses a user agent string and dumps the results.')
46
            ->addArgument(
47
                'user-agent',
48
                InputArgument::REQUIRED,
49
                'User agent string to analyze',
50
                null
51
            )
52
            ->addOption(
53
                'cache',
54
                'c',
55
                InputOption::VALUE_OPTIONAL,
56
                'Where the cache files are located',
57
                $this->defaultCacheFolder
58
            );
59
    }
60
61
    protected function execute(InputInterface $input, OutputInterface $output) : void
62
    {