| @@ -42,11 +42,11 @@ discard block | ||
| 42 | 42 | protected function configure() | 
| 43 | 43 |      { | 
| 44 | 44 |          $this->setName("parseCfPs") | 
| 45 | -             ->setDescription("Retrieve CfPs and parse them") | |
| 46 | - ->setDefinition(array( | |
| 47 | -                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), | |
| 48 | - )) | |
| 49 | - ->setHelp(<<<EOT | |
| 45 | +                ->setDescription("Retrieve CfPs and parse them") | |
| 46 | + ->setDefinition(array( | |
| 47 | +                    new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), | |
| 48 | + )) | |
| 49 | + ->setHelp(<<<EOT | |
| 50 | 50 | Get details about CfPs from different sources | 
| 51 | 51 | |
| 52 | 52 | Usage: | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | If you ommit the date the current date will be used instead | 
| 57 | 57 | <info>callingallpapers parseCfPs<env></info> | 
| 58 | 58 | EOT | 
| 59 | - ); | |
| 59 | + ); | |
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | protected function execute(InputInterface $input, OutputInterface $output) | 
| @@ -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; | 
| @@ -32,15 +32,9 @@ | ||
| 32 | 32 | use Callingallpapers\CfpFilter\FilterList; | 
| 33 | 33 | use Callingallpapers\CfpFilter\FollowUriRedirect; | 
| 34 | 34 | use Callingallpapers\CfpFilter\StripParamsFromUri; | 
| 35 | -use Callingallpapers\ErrorHandling\ErrorStore; | |
| 36 | -use Callingallpapers\Exception\UnverifiedUriException; | |
| 37 | 35 | use Callingallpapers\Parser\ConfsTech\ConferenceParser; | 
| 38 | 36 | use Callingallpapers\Parser\ConfsTechParser; | 
| 39 | -use Callingallpapers\Parser\JoindinCfpParser; | |
| 40 | -use Callingallpapers\Parser\Lanyrd\LanyrdCfpParser; | |
| 41 | -use Callingallpapers\Parser\PapercallIo\PapercallIoParserFactory; | |
| 42 | 37 | use Callingallpapers\ResultKeeper\ConsoleOutputResultKeeper; | 
| 43 | -use Callingallpapers\ResultKeeper\ResultKeeper; | |
| 44 | 38 | use Callingallpapers\Service\ConfsTechParserFactory; | 
| 45 | 39 | use Callingallpapers\Service\GeolocationService; | 
| 46 | 40 | use Callingallpapers\Service\TimezoneService; | 
| @@ -58,11 +58,11 @@ discard block | ||
| 58 | 58 | protected function configure() | 
| 59 | 59 |      { | 
| 60 | 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 | |
| 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 | 66 | Get details about CfPs from https://confs.tech | 
| 67 | 67 | |
| 68 | 68 | Usage: | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | If you ommit the date the current date will be used instead | 
| 73 | 73 | <info>callingallpapers parseCfPs<env></info> | 
| 74 | 74 | EOT | 
| 75 | - ); | |
| 75 | + ); | |
| 76 | 76 | } | 
| 77 | 77 | |
| 78 | 78 | protected function execute(InputInterface $input, OutputInterface $output) | 
| @@ -9,8 +9,6 @@ | ||
| 9 | 9 | |
| 10 | 10 | namespace Callingallpapers\ResultKeeper; | 
| 11 | 11 | |
| 12 | -use Symfony\Component\Console\Output\OutputInterface; | |
| 13 | - | |
| 14 | 12 | class ResultKeeper | 
| 15 | 13 |  { | 
| 16 | 14 | private $errors = []; | 
| @@ -16,7 +16,6 @@ | ||
| 16 | 16 | use Callingallpapers\Writer\WriterInterface; | 
| 17 | 17 | use DateTimeImmutable; | 
| 18 | 18 | use GuzzleHttp\Client; | 
| 19 | -use Symfony\Component\Console\Output\OutputInterface; | |
| 20 | 19 | |
| 21 | 20 | class ConfsTechParserFactory | 
| 22 | 21 |  { | 
| @@ -11,5 +11,5 @@ | ||
| 11 | 11 | |
| 12 | 12 | class Created extends Success | 
| 13 | 13 |  { | 
| 14 | - // Nothing to be done. | |
| 14 | + // Nothing to be done. | |
| 15 | 15 | } | 
| @@ -32,17 +32,8 @@ | ||
| 32 | 32 | use Callingallpapers\CfpFilter\FilterList; | 
| 33 | 33 | use Callingallpapers\CfpFilter\FollowUriRedirect; | 
| 34 | 34 | use Callingallpapers\CfpFilter\StripParamsFromUri; | 
| 35 | -use Callingallpapers\ErrorHandling\ErrorStore; | |
| 36 | -use Callingallpapers\Exception\UnverifiedUriException; | |
| 37 | -use Callingallpapers\Parser\ConfsTech\ConferenceParser; | |
| 38 | -use Callingallpapers\Parser\ConfsTechParser; | |
| 39 | -use Callingallpapers\Parser\JoindinCfpParser; | |
| 40 | -use Callingallpapers\Parser\Lanyrd\LanyrdCfpParser; | |
| 41 | -use Callingallpapers\Parser\PapercallIo\PapercallIoParserFactory; | |
| 42 | 35 | use Callingallpapers\Parser\ParserInterface; | 
| 43 | 36 | use Callingallpapers\ResultKeeper\ConsoleOutputResultKeeper; | 
| 44 | -use Callingallpapers\ResultKeeper\ResultKeeper; | |
| 45 | -use Callingallpapers\Service\ConfsTechParserFactory; | |
| 46 | 37 | use Callingallpapers\Service\GeolocationService; | 
| 47 | 38 | use Callingallpapers\Service\ServiceContainer; | 
| 48 | 39 | use Callingallpapers\Service\TimezoneService; | 
| @@ -11,12 +11,10 @@ | ||
| 11 | 11 | |
| 12 | 12 | use Callingallpapers\Entity\Cfp; | 
| 13 | 13 | use Callingallpapers\Service\ServiceContainer; | 
| 14 | -use Callingallpapers\Service\TimezoneService; | |
| 15 | 14 | use DateTimeZone; | 
| 16 | 15 | use DOMDocument; | 
| 17 | 16 | use DOMXPath; | 
| 18 | 17 | use Exception; | 
| 19 | -use GuzzleHttp\Client; | |
| 20 | 18 | use InvalidArgumentException; | 
| 21 | 19 | |
| 22 | 20 | class EntryParser |