Code Duplication    Length = 16-19 lines in 2 locations

src/Command/NotifyClosingCfps.php 1 location

@@ 45-60 (lines=16) @@
42
43
class NotifyClosingCfps extends Command
44
{
45
    protected function configure()
46
    {
47
        $this->setName("notifyClosingCfps")
48
             ->setDescription("Notify about CfPs that close within 24 hours")
49
             ->setDefinition(array(
50
                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
51
             ))
52
             ->setHelp(<<<EOT
53
Notify about CfPs that are closing within 24 hours
54
55
Usage:
56
57
<info>callingallpapers notifyClosingCfp</info>
58
EOT
59
             );
60
    }
61
62
    protected function execute(InputInterface $input, OutputInterface $output)
63
    {

src/Command/ParseEvents.php 1 location

@@ 45-63 (lines=19) @@
42
43
class ParseEvents extends Command
44
{
45
    protected function configure()
46
    {
47
        $this->setName("parseCfPs")
48
             ->setDescription("Retrieve CfPs and parse them")
49
             ->setDefinition(array(
50
                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
51
             ))
52
             ->setHelp(<<<EOT
53
Get details about CfPs from different sources
54
55
Usage:
56
57
<info>callingallpapers parseCfPs 2015-02-23<env></info>
58
59
If you ommit the date the current date will be used instead
60
<info>callingallpapers parseCfPs<env></info>
61
EOT
62
             );
63
    }
64
65
    protected function execute(InputInterface $input, OutputInterface $output)
66
    {