| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public static function dns(string $domain, string $name, string $value): void |
||
| 33 | { |
||
| 34 | $response = @dns_get_record(sprintf('%s.%s', $name, $domain), DNS_TXT); |
||
| 35 | |||
| 36 | if (!empty($response[0]['txt']) && $response[0]['txt'] === $value) { |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | throw DomainValidationException::localDnsChallengeTestFailed($domain); |
||
| 41 | } |
||
| 43 |