Code Duplication    Length = 27-28 lines in 2 locations

src/Command/FetchCommand.php 1 location

@@ 74-100 (lines=27) @@
71
    /**
72
     * Configures the current command.
73
     */
74
    protected function configure()
75
    {
76
        $this
77
            ->setName('browscap:fetch')
78
            ->setDescription('Fetches an updated INI file for Browscap.')
79
            ->addArgument(
80
                'file',
81
                InputArgument::OPTIONAL,
82
                'browscap.ini file',
83
                $this->defaultIniFile
84
            )
85
            ->addOption(
86
                'remote-file',
87
                'r',
88
                InputOption::VALUE_OPTIONAL,
89
                'browscap.ini file to download from remote location (possible values are: ' . IniLoader::PHP_INI_LITE
90
                . ', ' . IniLoader::PHP_INI . ', ' . IniLoader::PHP_INI_FULL . ')',
91
                IniLoader::PHP_INI
92
            )
93
            ->addOption(
94
                'debug',
95
                'd',
96
                InputOption::VALUE_NONE,
97
                'Should the debug mode entered?'
98
            )
99
        ;
100
    }
101
102
    /**
103
     * @param InputInterface  $input

src/Command/CheckUpdateCommand.php 1 location

@@ 94-121 (lines=28) @@
91
    /**
92
     * Configures the current command.
93
     */
94
    protected function configure()
95
    {
96
        $this
97
            ->setName('browscap:check-update')
98
            ->setDescription('Checks if an updated INI file is available.')
99
            ->addOption(
100
                'debug',
101
                'd',
102
                InputOption::VALUE_NONE,
103
                'Should the debug mode entered?'
104
            )
105
            ->addOption(
106
                'remote-file',
107
                'r',
108
                InputOption::VALUE_OPTIONAL,
109
                'browscap.ini file to download from remote location (possible values are: ' . IniLoader::PHP_INI_LITE
110
                . ', ' . IniLoader::PHP_INI . ', ' . IniLoader::PHP_INI_FULL . ')',
111
                IniLoader::PHP_INI
112
            )
113
            ->addOption(
114
                'cache',
115
                'c',
116
                InputOption::VALUE_OPTIONAL,
117
                'Where the cache files are located',
118
                $this->defaultCacheFolder
119
            )
120
        ;
121
    }
122
123
    /**
124
     * @param InputInterface  $input