| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 27 | public function validateHost(Hostname $hostname) |
||
| 28 | { |
||
| 29 | if ($this->env->get(SkipDnsValidation::SKIP_DNS_VALIDATION)) { |
||
| 30 | return; |
||
| 31 | } |
||
| 32 | |||
| 33 | try { |
||
| 34 | $this->validateNameServers($hostname->toRoot()); |
||
| 35 | } catch (\Throwable $domainException) { |
||
| 36 | $message = []; |
||
| 37 | $message[] = "Failed to validate name servers for '$hostname':"; |
||
| 38 | $message[] = $domainException->getMessage(); |
||
| 39 | throw new \Exception(implode("\n", $message)); |
||
| 40 | } |
||
| 70 |