@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } catch (Exception $exception) { |
| 57 | 57 | echo "Something went wrong during retrieving druid data\n"; |
| 58 | 58 | echo $exception->getMessage() . "\n"; |
| 59 | - echo $exception->getTraceAsString(). "\n"; |
|
| 59 | + echo $exception->getTraceAsString() . "\n"; |
|
| 60 | 60 | if ($exception instanceof \GuzzleHttp\Exception\ClientException) { |
| 61 | 61 | echo $exception->getResponse()->getBody() . "\n"; |
| 62 | 62 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | ->select('Mountain') |
| 23 | 23 | ->select('Country') |
| 24 | 24 | ->select('Location') |
| 25 | - ->whereSpatialRadius('Location', [28,84], 0.8) |
|
| 25 | + ->whereSpatialRadius('Location', [28, 84], 0.8) |
|
| 26 | 26 | ; |
| 27 | 27 | |
| 28 | 28 | // Execute the query. |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | /** @var array<string,array<mixed>|int|string> $payload */ |
| 149 | 149 | $payload = $task->toArray(); |
| 150 | 150 | |
| 151 | - $this->log('Executing druid task: '. var_export($payload, true)); |
|
| 151 | + $this->log('Executing druid task: ' . var_export($payload, true)); |
|
| 152 | 152 | |
| 153 | 153 | /** @var string[] $result */ |
| 154 | 154 | $result = $this->executeRawRequest( |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | if (!is_array($row)) { |
| 328 | 328 | throw new InvalidArgumentException('We failed to parse response!'); |
| 329 | 329 | } |
| 330 | - } catch (InvalidArgumentException|JsonException $exception ) { |
|
| 330 | + } catch (InvalidArgumentException | JsonException $exception) { |
|
| 331 | 331 | $this->log('We failed to decode druid response. '); |
| 332 | 332 | $this->log('Status code: ' . $response->getStatusCode()); |
| 333 | 333 | $this->log('Response body: ' . $contents); |