@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | { |
29 | 29 | if ($this->name === null) { |
30 | 30 | $explodedClass = explode('\\', get_class($this)); |
31 | - $this->name = (string) array_pop($explodedClass); |
|
31 | + $this->name = (string)array_pop($explodedClass); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | return $this->name; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | public function mapResults(MapperInterface $mapper, array $results) : DNSRecordCollection |
109 | 109 | { |
110 | 110 | $collection = new DNSRecordCollection(); |
111 | - array_map(function (array $fields) use (&$collection, $mapper) { |
|
111 | + array_map(function(array $fields) use (&$collection, $mapper) { |
|
112 | 112 | try { |
113 | 113 | $collection[] = $mapper->mapFields($fields)->toDNSRecord(); |
114 | 114 | } catch (InvalidArgumentException $e) { |
@@ -83,7 +83,7 @@ |
||
83 | 83 | throw new QueryFailure("Unable to query GoogleDNS API", 0, $e); |
84 | 84 | } |
85 | 85 | |
86 | - $result = (array) json_decode((string)$response->getBody(), true); |
|
86 | + $result = (array)json_decode((string)$response->getBody(), true); |
|
87 | 87 | |
88 | 88 | if (isset($result['Answer'])) { |
89 | 89 | return $result['Answer']; |