@@ -30,18 +30,18 @@ |
||
| 30 | 30 | //$endDate = $xpath->query('//div[contains(text()[2], "event ends")]/following-sibling::h2'); |
| 31 | 31 | $endDate = $xpath->query('//div[contains(text(), "event ends")]'); |
| 32 | 32 | |
| 33 | - if (! $endDate || $endDate->length == 0) { |
|
| 33 | + if (!$endDate || $endDate->length == 0) { |
|
| 34 | 34 | // This expression does not work. It looks like the reason is the array-notation... |
| 35 | 35 | //$endDate = $xpath->query('//div[contains(text()[2], "event date")]/following-sibling::h2'); |
| 36 | 36 | $endDate = $xpath->query('//div[contains(text(), "event date")]'); |
| 37 | 37 | } |
| 38 | - if (! $endDate || $endDate->length == 0) { |
|
| 38 | + if (!$endDate || $endDate->length == 0) { |
|
| 39 | 39 | throw new \InvalidArgumentException('The Event does not seem to have an end date'); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $endDate = $xpath->query('h2', $endDate->item(0)->parentNode); |
| 43 | 43 | |
| 44 | - if (! $endDate || $endDate->length == 0) { |
|
| 44 | + if (!$endDate || $endDate->length == 0) { |
|
| 45 | 45 | throw new \InvalidArgumentException('The Event does not seem to have an end date'); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $closingDateHolder = $xpath->query('//div[./div/span[contains(text(), "Call closes at")]] | //div[./div/span[contains(text(), "CfS closes at")]]'); |
| 32 | 32 | |
| 33 | - if (! $closingDateHolder || $closingDateHolder->length == 0) { |
|
| 33 | + if (!$closingDateHolder || $closingDateHolder->length == 0) { |
|
| 34 | 34 | throw new InvalidArgumentException('The CfP does not seem to have a closing date'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | $closingHour = $this->clearClosingHour($closingHour); |
| 41 | 41 | |
| 42 | - return new DateTimeImmutable($closingDay . ' ' . $closingHour, $this->timezone); |
|
| 42 | + return new DateTimeImmutable($closingDay.' '.$closingHour, $this->timezone); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | private function clearClosingHour(string $closingHour) : string |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $name = $this->shortenName($cfp->conferenceName); |
| 46 | 46 | $uri = $this->shortenUri($cfp->uri); |
| 47 | - $tags = ' #' . implode(' #', $cfp->tags); |
|
| 47 | + $tags = ' #'.implode(' #', $cfp->tags); |
|
| 48 | 48 | |
| 49 | 49 | $notificationString = sprintf(<<<'NOTIFICATION' |
| 50 | 50 | 24 hours until the CfP for "%1$s" closes: %2$s |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | if (strlen($name) < 70) { |
| 68 | 68 | return $name; |
| 69 | 69 | } |
| 70 | - return substr($name, 0, 69) . '…'; |
|
| 70 | + return substr($name, 0, 69).'…'; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | protected function shortenUri($uri) |
@@ -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): int |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | protected function configure() |
| 55 | 55 | { |
| 56 | 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 |
|
| 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 | 62 | Get details about CfPs from different sources |
| 63 | 63 | |
| 64 | 64 | Usage: |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | If you ommit the date the current date will be used instead |
| 69 | 69 | <info>callingallpapers parseCfPs<env></info> |
| 70 | 70 | EOT |
| 71 | - ); |
|
| 71 | + ); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | protected function execute(InputInterface $input, OutputInterface $output): int |