Code Duplication    Length = 16-19 lines in 3 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/ParseEventsConfsTech.php 1 location

@@ 58-76 (lines=19) @@
55
56
class ParseEventsConfsTech extends Command
57
{
58
    protected function configure()
59
    {
60
        $this->setName("parseCfPs:confs.tech")
61
             ->setDescription("Retrieve CfPs from Confs.tech ony and parse them")
62
             ->setDefinition(array(
63
                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
64
             ))
65
             ->setHelp(<<<EOT
66
Get details about CfPs from https://confs.tech
67
68
Usage:
69
70
<info>callingallpapers parseCfPs:confs.tech 2015-02-23<env></info>
71
72
If you ommit the date the current date will be used instead
73
<info>callingallpapers parseCfPs<env></info>
74
EOT
75
             );
76
    }
77
78
    protected function execute(InputInterface $input, OutputInterface $output)
79
    {

src/Command/ParseEvents.php 1 location

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