@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @param Crawler|null $node |
|
| 41 | + * @param Crawler $node |
|
| 42 | 42 | * |
| 43 | 43 | * @return array |
| 44 | 44 | */ |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $resultList = []; |
| 48 | 48 | |
| 49 | - $node->filter('.page-content section')->each(function (Crawler $node) use (&$resultList) { |
|
| 49 | + $node->filter('.page-content section')->each(function(Crawler $node) use (&$resultList) { |
|
| 50 | 50 | $headingNode = $node->filter('.group-heading'); |
| 51 | 51 | |
| 52 | 52 | $datetime = new DateTime(trim($headingNode->text())); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | protected function crawlEventListGroup(Crawler $node, DateTime $datetime): array |
| 67 | 67 | { |
| 68 | 68 | return $node->filter('.events-list-item')->each( |
| 69 | - function (Crawler $node) use ($datetime): Event { |
|
| 69 | + function(Crawler $node) use ($datetime): Event { |
|
| 70 | 70 | $eventNode = $node->filter('.events-list-item-event--title a'); |
| 71 | 71 | |
| 72 | 72 | $url = $this->parseUrl($eventNode); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $years = $node->filter('.content-top .secondary-nav-item-link') |
| 30 | - ->each(static function (Crawler $node) { |
|
| 30 | + ->each(static function(Crawler $node) { |
|
| 31 | 31 | return (int) trim($node->text()); |
| 32 | 32 | }) |
| 33 | 33 | ; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $url .= '?location_0=Germany'; |
| 60 | 60 | $url .= '&location_1='.$location->getLongitude(); |
| 61 | 61 | $url .= '&location_2='.$location->getLatitude(); |
| 62 | - $url .= '&radius='.($radius*1000); |
|
| 62 | + $url .= '&radius='.($radius * 1000); |
|
| 63 | 63 | $url .= '&page='.$page; |
| 64 | 64 | |
| 65 | 65 | return $this->crawl($url); |