@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function toDNSRecord(): DNSRecord |
| 11 | 11 | { |
| 12 | - $type = DNSRecordType::createFromInt((int) $this->fields['type']); |
|
| 12 | + $type = DNSRecordType::createFromInt((int)$this->fields['type']); |
|
| 13 | 13 | $IPAddress = (isset($this->fields['data']) && IPAddress::isValid($this->fields['data'])) |
| 14 | 14 | ? $this->fields['data'] |
| 15 | 15 | : null; |
@@ -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'])) |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function toDNSRecord(): DNSRecord |
| 11 | 11 | { |
| 12 | - $type = DNSRecordType::createFromInt((int) $this->fields['type']); |
|
| 12 | + $type = DNSRecordType::createFromInt((int)$this->fields['type']); |
|
| 13 | 13 | $IPAddress = (isset($this->fields['data']) && IPAddress::isValid($this->fields['data'])) |
| 14 | 14 | ? $this->fields['data'] |
| 15 | 15 | : null; |