@@ -69,8 +69,8 @@ |
||
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 | } |
@@ -85,7 +85,7 @@ |
||
85 | 85 | throw new QueryFailure("Unable to query CloudFlare API", 0, $e); |
86 | 86 | } |
87 | 87 | |
88 | - $result = (array) json_decode((string)$response->getBody(), true); |
|
88 | + $result = (array)json_decode((string)$response->getBody(), true); |
|
89 | 89 | |
90 | 90 | if (isset($result['Answer'])) { |
91 | 91 | return $result['Answer']; |