@@ -509,8 +509,8 @@ |
||
509 | 509 | } |
510 | 510 | |
511 | 511 | public static function SIG(string $typeCovered, int $algorithm, int $labels, int $originalTtl, |
512 | - \DateTime $signatureExpiration, \DateTime $signatureInception, int $keyTag, |
|
513 | - string $signersName, string $signature): SIG |
|
512 | + \DateTime $signatureExpiration, \DateTime $signatureInception, int $keyTag, |
|
513 | + string $signersName, string $signature): SIG |
|
514 | 514 | { |
515 | 515 | $sig = new SIG(); |
516 | 516 | $sig->setTypeCovered($typeCovered); |
@@ -499,6 +499,7 @@ |
||
499 | 499 | /** |
500 | 500 | * Find all records in a Zone named $name. |
501 | 501 | * |
502 | + * @param string|null $name |
|
502 | 503 | * @return ResourceRecord[] |
503 | 504 | */ |
504 | 505 | public static function findRecord(?string $name, Zone $zone, ?string $type = 'ANY'): array |
@@ -120,11 +120,11 @@ |
||
120 | 120 | $loc = new ResourceRecord(); |
121 | 121 | $loc->setName('canberra'); |
122 | 122 | $loc->setRdata(Factory::LOC( |
123 | - -35.3075, //Lat |
|
124 | - 149.1244, //Lon |
|
125 | - 500, //Alt |
|
126 | - 20.12, //Size |
|
127 | - 200.3, //HP |
|
123 | + -35.3075, //Lat |
|
124 | + 149.1244, //Lon |
|
125 | + 500, //Alt |
|
126 | + 20.12, //Size |
|
127 | + 200.3, //HP |
|
128 | 128 | 300.1 //VP |
129 | 129 | )); |
130 | 130 | $loc->setComment('This is Canberra'); |
@@ -120,11 +120,11 @@ |
||
120 | 120 | $loc = new ResourceRecord(); |
121 | 121 | $loc->setName('canberra'); |
122 | 122 | $loc->setRdata(Factory::LOC( |
123 | - -35.3075, //Lat |
|
124 | - 149.1244, //Lon |
|
125 | - 500, //Alt |
|
126 | - 20.12, //Size |
|
127 | - 200.3, //HP |
|
123 | + -35.3075, //Lat |
|
124 | + 149.1244, //Lon |
|
125 | + 500, //Alt |
|
126 | + 20.12, //Size |
|
127 | + 200.3, //HP |
|
128 | 128 | 300.1 //VP |
129 | 129 | )); |
130 | 130 | $loc->setComment('This is Canberra'); |
@@ -23,9 +23,9 @@ |
||
23 | 23 | { |
24 | 24 | return [ |
25 | 25 | //[Text, IDType, Identifier, FQDN] |
26 | - ['AAIBY2/AuCccgoJbsaxcQc9TUapptP69lOjxfNuVAA2kjEA=', 2, '00:01:00:06:41:2d:f1:66:01:02:03:04:05:06', 'chi6.example.com.'], |
|
27 | - ['AAEBOSD+XR3Os/0LozeXVqcNc7FwCfQdWL3b/NaiUDlW2No=', 1, '01:07:08:09:0a:0b:0c', 'chi.example.com.'], |
|
28 | - ['AAABxLmlskllE0MVjd57zHcWmEH3pCQ6VytcKD//7es/deY=', 0, '01:02:03:04:05:06', 'client.example.com.'], |
|
26 | + ['AAIBY2/AuCccgoJbsaxcQc9TUapptP69lOjxfNuVAA2kjEA=', 2, '00:01:00:06:41:2d:f1:66:01:02:03:04:05:06', 'chi6.example.com.'], |
|
27 | + ['AAEBOSD+XR3Os/0LozeXVqcNc7FwCfQdWL3b/NaiUDlW2No=', 1, '01:07:08:09:0a:0b:0c', 'chi.example.com.'], |
|
28 | + ['AAABxLmlskllE0MVjd57zHcWmEH3pCQ6VytcKD//7es/deY=', 0, '01:02:03:04:05:06', 'client.example.com.'], |
|
29 | 29 | ]; |
30 | 30 | } |
31 | 31 |
@@ -23,10 +23,10 @@ |
||
23 | 23 | { |
24 | 24 | return [ |
25 | 25 | //Text Order Pref Flags Service Regexp Replacement |
26 | - ['100 50 "s" "http+N2L+N2C+N2R" "" www.example.com.', 100, 50, 's', 'http+N2L+N2C+N2R', '', 'www.example.com.'], |
|
27 | - ['100 10 "" "" "!^urn:cid:.+@([^\.]+\.)(.*)$!\2!i" .', 100, 10, '', '', '!^urn:cid:.+@([^\.]+\.)(.*)$!\2!i', '.'], |
|
28 | - ['100 50 "s" "SIP+D2U" "" _sip2._udp.testnaptr.at.', 100, 50, 's', 'SIP+D2U', '', '_sip2._udp.testnaptr.at.'], |
|
29 | - ['100 10 "u" "sip+E2U" "!^.*$!sip:[email protected]!i" .', 100, 10, 'u', 'sip+E2U', '!^.*$!sip:[email protected]!i', '.'], |
|
26 | + ['100 50 "s" "http+N2L+N2C+N2R" "" www.example.com.', 100, 50, 's', 'http+N2L+N2C+N2R', '', 'www.example.com.'], |
|
27 | + ['100 10 "" "" "!^urn:cid:.+@([^\.]+\.)(.*)$!\2!i" .', 100, 10, '', '', '!^urn:cid:.+@([^\.]+\.)(.*)$!\2!i', '.'], |
|
28 | + ['100 50 "s" "SIP+D2U" "" _sip2._udp.testnaptr.at.', 100, 50, 's', 'SIP+D2U', '', '_sip2._udp.testnaptr.at.'], |
|
29 | + ['100 10 "u" "sip+E2U" "!^.*$!sip:[email protected]!i" .', 100, 10, 'u', 'sip+E2U', '!^.*$!sip:[email protected]!i', '.'], |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 |
@@ -88,15 +88,15 @@ |
||
88 | 88 | public function testWire(): void |
89 | 89 | { |
90 | 90 | $expectation = pack('nCCC4nCC', |
91 | - 1, //Address Family |
|
92 | - 24, //Prefix |
|
93 | - 0 + //N: "!" is present |
|
94 | - 4, //AFD Length |
|
95 | - 255, 255, 255, 255, //AFDPart |
|
96 | - |
|
97 | - 2, //Address Family |
|
98 | - 64, //Prefix |
|
99 | - 128 + //N: "!" is present |
|
91 | + 1, //Address Family |
|
92 | + 24, //Prefix |
|
93 | + 0 + //N: "!" is present |
|
94 | + 4, //AFD Length |
|
95 | + 255, 255, 255, 255, //AFDPart |
|
96 | + |
|
97 | + 2, //Address Family |
|
98 | + 64, //Prefix |
|
99 | + 128 + //N: "!" is present |
|
100 | 100 | 16 //AFD Length |
101 | 101 | ).inet_pton('2001:acad:dead:beef::'); //AFDPart |
102 | 102 |
@@ -120,11 +120,11 @@ |
||
120 | 120 | $loc = new ResourceRecord(); |
121 | 121 | $loc->setName('canberra'); |
122 | 122 | $loc->setRdata(Factory::LOC( |
123 | - -35.3075, //Lat |
|
124 | - 149.1244, //Lon |
|
125 | - 500, //Alt |
|
126 | - 20.12, //Size |
|
127 | - 200.3, //HP |
|
123 | + -35.3075, //Lat |
|
124 | + 149.1244, //Lon |
|
125 | + 500, //Alt |
|
126 | + 20.12, //Size |
|
127 | + 200.3, //HP |
|
128 | 128 | 300.1 //VP |
129 | 129 | )); |
130 | 130 | $loc->setComment('This is Canberra'); |