Completed
Branch master (d6362f)
by Christian
05:21
created
Category
src/Mappers/CloudFlare.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
             : null;
15 15
 
16 16
         return DNSRecord::createFromPrimitives(
17
-            DNSRecordType::createFromInt((int) $this->record['type']),
17
+            DNSRecordType::createFromInt((int)$this->record['type']),
18 18
             substr($this->record['name'], 0, -1),
19 19
             $this->record['TTL'],
20 20
             $IPAddress
Please login to merge, or discard this patch.
src/Mappers/GoogleDNS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
             : null;
15 15
 
16 16
         return DNSRecord::createFromPrimitives(
17
-            DNSRecordType::createFromInt((int) $this->record['type']),
17
+            DNSRecordType::createFromInt((int)$this->record['type']),
18 18
             substr($this->record['name'], 0, -1),
19 19
             $this->record['TTL'],
20 20
             $IPAddress
Please login to merge, or discard this patch.
src/Entities/DNSRecordType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
     public function toInt(): int
85 85
     {
86
-        return (int) array_flip(self::CODE_TYPE_MAP)[$this->type];
86
+        return (int)array_flip(self::CODE_TYPE_MAP)[$this->type];
87 87
     }
88 88
 
89 89
     public function isA(string $type): bool
Please login to merge, or discard this patch.
src/Entities/DNSRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         $rawIPAddres = $unserialized['IPAddress'] ?? null;
122 122
         $this->recordType = DNSRecordType::createFromString($unserialized['type']);
123 123
         $this->hostname = Hostname::createFromString($unserialized['hostname']);
124
-        $this->TTL = (int) $unserialized['TTL'];
124
+        $this->TTL = (int)$unserialized['TTL'];
125 125
         $this->IPAddress = $rawIPAddres ? IPAddress::createFromString($rawIPAddres) : null;
126 126
         $this->class = $unserialized['class'];
127 127
     }
Please login to merge, or discard this patch.
src/Entities/Hostname.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function equals(Hostname $hostname): bool
28 28
     {
29
-        return $this->hostname === (string) $hostname;
29
+        return $this->hostname === (string)$hostname;
30 30
     }
31 31
 
32 32
     public static function createFromString(string $hostname): Hostname
Please login to merge, or discard this patch.
src/Entities/DNSRecordCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function filteredByType(DNSRecordType $type): self
32 32
     {
33
-        return new self(...array_filter($this->records->getArrayCopy(), function (DNSRecord $record) use ($type) {
33
+        return new self(...array_filter($this->records->getArrayCopy(), function(DNSRecord $record) use ($type) {
34 34
             return $record->getType()->equals($type);
35 35
         }));
36 36
     }
Please login to merge, or discard this patch.
src/Entities/IPAddress.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public static function isValid(string $IPAddress): bool
28 28
     {
29
-        return (bool) filter_var($IPAddress, FILTER_VALIDATE_IP);
29
+        return (bool)filter_var($IPAddress, FILTER_VALIDATE_IP);
30 30
     }
31 31
 
32 32
     public static function createFromString(string $IPAddress): IPAddress
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function equals(IPAddress $IPAddress): bool
38 38
     {
39
-        return $this->IPAddress === (string) $IPAddress;
39
+        return $this->IPAddress === (string)$IPAddress;
40 40
     }
41 41
 
42 42
     public function getIPAddress(): string
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function isIPv6(): bool
48 48
     {
49
-        return (bool) filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
49
+        return (bool)filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
50 50
     }
51 51
 
52 52
     public function isIPv4(): bool
53 53
     {
54
-        return (bool) filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
54
+        return (bool)filter_var($this->IPAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Resolvers/Cached.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     private function buildCacheKey(Hostname $hostname, DNSRecordType $recordType): string
66 66
     {
67
-        return md5(sprintf(self::CACHE_KEY_TEMPLATE, $this->namespace, (string) $hostname, (string) $recordType));
67
+        return md5(sprintf(self::CACHE_KEY_TEMPLATE, $this->namespace, (string)$hostname, (string)$recordType));
68 68
     }
69 69
 
70 70
     private function extractAverageTTL(DNSRecordCollection $recordCollection): int
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
             $ttls[] = $record->getTTL();
84 84
         }
85 85
 
86
-        return (int) array_sum($ttls) / $recordCollection->count();
86
+        return (int)array_sum($ttls) / $recordCollection->count();
87 87
     }
88 88
 }
Please login to merge, or discard this patch.
src/Resolvers/ResolverAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         if ($this->name === null) {
26 26
             $explodedClass = explode('\\', get_class($this));
27
-            $this->name = (string) array_pop($explodedClass);
27
+            $this->name = (string)array_pop($explodedClass);
28 28
         }
29 29
 
30 30
         return $this->name;
Please login to merge, or discard this patch.