@@ -45,18 +45,18 @@ |
||
45 | 45 | protected function configure() |
46 | 46 | { |
47 | 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 |
|
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 | 53 | Notify about CfPs that are closing within 24 hours |
54 | 54 | |
55 | 55 | Usage: |
56 | 56 | |
57 | 57 | <info>callingallpapers notifyClosingCfp</info> |
58 | 58 | EOT |
59 | - ); |
|
59 | + ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -30,7 +30,6 @@ |
||
30 | 30 | namespace Callingallpapers\Parser\Lanyrd; |
31 | 31 | |
32 | 32 | use Callingallpapers\Entity\Cfp; |
33 | -use Callingallpapers\Parser\Lanyrd\LanyrdEntryParser; |
|
34 | 33 | use Callingallpapers\Parser\ParserInterface; |
35 | 34 | use Callingallpapers\Service\TimezoneService; |
36 | 35 | use Callingallpapers\Writer\WriterInterface; |
@@ -31,7 +31,6 @@ |
||
31 | 31 | |
32 | 32 | use Callingallpapers\Parser\JoindinCfpParser; |
33 | 33 | use Callingallpapers\Parser\Lanyrd\LanyrdCfpParser; |
34 | -use Callingallpapers\Parser\PapercallIoParser; |
|
35 | 34 | use Callingallpapers\Parser\PapercallIoParserFactory; |
36 | 35 | use Callingallpapers\Service\TimezoneService; |
37 | 36 | use Callingallpapers\Writer\ApiCfpWriter; |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | protected function configure() |
48 | 48 | { |
49 | 49 | $this->setName("parseCfPs") |
50 | - ->setDescription("Retrieve CfPs and parse them") |
|
51 | - ->setDefinition(array( |
|
52 | - new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
53 | - )) |
|
54 | - ->setHelp(<<<EOT |
|
50 | + ->setDescription("Retrieve CfPs and parse them") |
|
51 | + ->setDefinition(array( |
|
52 | + new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
53 | + )) |
|
54 | + ->setHelp(<<<EOT |
|
55 | 55 | Get details about CfPs from different sources |
56 | 56 | |
57 | 57 | Usage: |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | If you ommit the date the current date will be used instead |
62 | 62 | <info>callingallpapers parseCfPs<env></info> |
63 | 63 | EOT |
64 | - ); |
|
64 | + ); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | |
82 | 82 | $timezoneService = new TimezoneService(new Client(), $config['timezonedb_token']); |
83 | 83 | $parser = new LanyrdCfpParser($timezoneService); |
84 | - // $parser->parse($writer); |
|
84 | + // $parser->parse($writer); |
|
85 | 85 | $parser = new JoindinCfpParser(); |
86 | - // $parser->parse($writer); |
|
86 | + // $parser->parse($writer); |
|
87 | 87 | $factory = new PapercallIoParserFactory($timezoneService); |
88 | 88 | $parser = $factory(); |
89 | 89 | $parser->parse($writer); |
@@ -32,7 +32,6 @@ |
||
32 | 32 | use Callingallpapers\Entity\Cfp; |
33 | 33 | use Callingallpapers\Parser\EventDetailParserInterface; |
34 | 34 | use DateTimeImmutable; |
35 | -use DateTimeZone; |
|
36 | 35 | use DOMDocument; |
37 | 36 | use DOMNode; |
38 | 37 | use DOMXPath; |