@@ -114,7 +114,7 @@ |
||
| 114 | 114 | public function mapResults(MapperInterface $mapper, array $results) : DNSRecordCollection |
| 115 | 115 | { |
| 116 | 116 | $collection = new DNSRecordCollection(); |
| 117 | - array_map(function (array $fields) use (&$collection, $mapper) { |
|
| 117 | + array_map(function(array $fields) use (&$collection, $mapper) { |
|
| 118 | 118 | try { |
| 119 | 119 | $collection[] = $mapper->mapFields($fields)->toDNSRecord(); |
| 120 | 120 | } catch (InvalidArgumentException $e) { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public static function isValid(string $IPAddress): bool |
| 33 | 33 | { |
| 34 | - return (bool) filter_var($IPAddress, FILTER_VALIDATE_IP); |
|
| 34 | + return (bool)filter_var($IPAddress, FILTER_VALIDATE_IP); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | public static function createFromString(string $IPAddress): IPAddress |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function isIPv6(): bool |
| 53 | 53 | { |
| 54 | - return (bool) filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); |
|
| 54 | + return (bool)filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function isIPv4(): bool |
| 58 | 58 | { |
| 59 | - return (bool) filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); |
|
| 59 | + return (bool)filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); |
|
| 60 | 60 | } |
| 61 | 61 | } |