Code Duplication    Length = 19-19 lines in 2 locations

src/Command/ConvertCommand.php 1 location

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

src/Command/ParserCommand.php 1 location

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