@@ -146,7 +146,7 @@ |
||
146 | 146 | $rawIPAddres = $unserialized['IPAddress'] ?? null; |
147 | 147 | $this->recordType = DNSRecordType::createFromString($unserialized['type']); |
148 | 148 | $this->hostname = Hostname::createFromString($unserialized['hostname']); |
149 | - $this->TTL = (int) $unserialized['TTL']; |
|
149 | + $this->TTL = (int)$unserialized['TTL']; |
|
150 | 150 | $this->IPAddress = $rawIPAddres ? IPAddress::createFromString($rawIPAddres) : null; |
151 | 151 | $this->class = $unserialized['class']; |
152 | 152 | $this->data = (isset($unserialized['data'])) |
@@ -63,13 +63,13 @@ |
||
63 | 63 | $results = []; |
64 | 64 | $eachPromise = new EachPromise($this->generateEachTypeQuery($hostname), [ |
65 | 65 | 'concurrency' => 4, |
66 | - 'fulfilled' => function (Response $response) use (&$results) { |
|
66 | + 'fulfilled' => function(Response $response) use (&$results) { |
|
67 | 67 | $results = array_merge( |
68 | 68 | $results, |
69 | - $this->parseResult((array) json_decode((string)$response->getBody(), true)) |
|
69 | + $this->parseResult((array)json_decode((string)$response->getBody(), true)) |
|
70 | 70 | ); |
71 | 71 | }, |
72 | - 'rejected' => function (RequestException $e): void { |
|
72 | + 'rejected' => function(RequestException $e): void { |
|
73 | 73 | throw $e; |
74 | 74 | }, |
75 | 75 | ]); |
@@ -59,8 +59,8 @@ |
||
59 | 59 | if ($recordType->isA(DNSRecordType::TYPE_SRV)) { |
60 | 60 | return new SRVData( |
61 | 61 | (int)$parsed[0] ?? 0, |
62 | - (int) $parsed[1] ?? 0, |
|
63 | - (int) $parsed[2] ?? 0, |
|
62 | + (int)$parsed[1] ?? 0, |
|
63 | + (int)$parsed[2] ?? 0, |
|
64 | 64 | new Hostname($parsed[3]), |
65 | 65 | ); |
66 | 66 | } |