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

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