@@ -36,8 +36,8 @@ |
||
| 36 | 36 | |
| 37 | 37 | if ($recordType->isA(DNSRecordType::TYPE_SOA)) { |
| 38 | 38 | return new SOAData( |
| 39 | - (string) $parsed[0], |
|
| 40 | - (string) $parsed[1], |
|
| 39 | + (string)$parsed[0], |
|
| 40 | + (string)$parsed[1], |
|
| 41 | 41 | (int)$parsed[2] ?? 0, |
| 42 | 42 | (int)$parsed[3] ?? 0, |
| 43 | 43 | (int)$parsed[4] ?? 0, |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | $promises[] = $this->doAsyncApiQuery(['name' => (string)$hostname, 'type' => $type]) |
| 72 | - ->then(function (Response $response) use (&$collection) { |
|
| 73 | - $decoded = (array) json_decode((string)$response->getBody(), true); |
|
| 72 | + ->then(function(Response $response) use (&$collection) { |
|
| 73 | + $decoded = (array)json_decode((string)$response->getBody(), true); |
|
| 74 | 74 | foreach ($this->parseResult($decoded) as $fields) { |
| 75 | 75 | $collection[] = $this->mapper->mapFields($fields)->toDNSRecord(); |
| 76 | 76 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | private function doApiQuery(array $query = []) : DNSRecordCollection |
| 91 | 91 | { |
| 92 | - $decoded = (array) json_decode((string)$this->doAsyncApiQuery($query)->wait()->getBody(), true); |
|
| 92 | + $decoded = (array)json_decode((string)$this->doAsyncApiQuery($query)->wait()->getBody(), true); |
|
| 93 | 93 | $collection = new DNSRecordCollection(); |
| 94 | 94 | |
| 95 | 95 | foreach ($this->parseResult($decoded) as $fields) { |