@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function getPageBody(string $url, array $params = [], string $method = 'GET'): ?string |
| 56 | 56 | { |
| 57 | - $request = $this->createRequest($method, $url, $params); |
|
| 57 | + $request = $this->createRequest($method, $url, $params); |
|
| 58 | 58 | |
| 59 | 59 | try { |
| 60 | 60 | $response = $this->client->sendRequest($request); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $resultList = []; |
| 33 | 33 | |
| 34 | - $node->filter('.page-content section')->each(function (Crawler $node) use (&$resultList) { |
|
| 34 | + $node->filter('.page-content section')->each(function(Crawler $node) use (&$resultList) { |
|
| 35 | 35 | $headingNode = $node->filter('.group-heading'); |
| 36 | 36 | |
| 37 | 37 | $datetime = new DateTime(trim($headingNode->text())); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | private function crawlEventListGroup(Crawler $node, DateTime $datetime): array |
| 72 | 72 | { |
| 73 | 73 | return $node->filter('.events-list-item')->each( |
| 74 | - function (Crawler $node) use ($datetime): Event { |
|
| 74 | + function(Crawler $node) use ($datetime): Event { |
|
| 75 | 75 | return $this->parseEvent($node, $datetime); |
| 76 | 76 | } |
| 77 | 77 | ); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'location_0' => 'Germany', |
| 93 | 93 | 'location_1' => $location->getLatitude(), |
| 94 | 94 | 'location_2' => $location->getLongitude(), |
| 95 | - 'radius' => $radius*1000, |
|
| 95 | + 'radius' => $radius * 1000, |
|
| 96 | 96 | 'page' => $page, |
| 97 | 97 | ]); |
| 98 | 98 | } |