@@ -21,10 +21,10 @@ |
||
21 | 21 | use Badcow\DNS\Rdata\MX; |
22 | 22 | use Badcow\DNS\Rdata\NS; |
23 | 23 | use Badcow\DNS\Rdata\PTR; |
24 | +use Badcow\DNS\Rdata\RdataInterface; |
|
24 | 25 | use Badcow\DNS\Rdata\SOA; |
25 | 26 | use Badcow\DNS\Rdata\SRV; |
26 | 27 | use Badcow\DNS\Rdata\TXT; |
27 | -use Badcow\DNS\Rdata\RdataInterface; |
|
28 | 28 | |
29 | 29 | class AlignedBuilder |
30 | 30 | { |
@@ -279,7 +279,7 @@ |
||
279 | 279 | * |
280 | 280 | * @param Zone $zone |
281 | 281 | * |
282 | - * @return array Array order: name, ttl, type, rdata |
|
282 | + * @return integer[] Array order: name, ttl, type, rdata |
|
283 | 283 | */ |
284 | 284 | private static function getPadding(Zone $zone) |
285 | 285 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | |
149 | 149 | $totalError = 0; |
150 | 150 | |
151 | - $incrementError = function (bool $errorCondition, int $errorOrdinal) use (&$totalError) { |
|
151 | + $incrementError = function(bool $errorCondition, int $errorOrdinal) use (&$totalError) { |
|
152 | 152 | $totalError += $errorCondition ? $errorOrdinal : 0; |
153 | 153 | }; |
154 | 154 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public static function expandIncompleteIpv6(string $ip): string |
50 | 50 | { |
51 | - $hextets = array_map(function ($hextet) { |
|
51 | + $hextets = array_map(function($hextet) { |
|
52 | 52 | return str_pad($hextet, 4, '0', STR_PAD_LEFT); |
53 | 53 | }, explode(':', $ip)); |
54 | 54 |
@@ -296,8 +296,8 @@ |
||
296 | 296 | * @return RRSIG |
297 | 297 | */ |
298 | 298 | public static function Rrsig(string $typeCovered, int $algorithm, int $labels, int $originalTtl, |
299 | - int $signatureExpiration, int $signatureInception, int $keyTag, |
|
300 | - string $signersName, string $signature) |
|
299 | + int $signatureExpiration, int $signatureInception, int $keyTag, |
|
300 | + string $signersName, string $signature) |
|
301 | 301 | { |
302 | 302 | $rdata = new RRSIG(); |
303 | 303 | $rdata->setTypeCovered($typeCovered); |