File manager - Edit - /home/autoph/public_html/connectv1/vendor/daveearley/daves-email-validation-tool/src/Validations/EmailHostValidator.php
Back
<?php declare(strict_types=1); namespace EmailValidation\Validations; class EmailHostValidator extends Validator implements ValidatorInterface { public function getValidatorName(): string { return 'valid_host'; // @codeCoverageIgnore } public function getResultResponse(): bool { $hostName = $this->getEmailAddress()->getHostPart(); if ($hostName) { return ($this->getHostByName($hostName) !== $hostName); } return false; // @codeCoverageIgnore } protected function getHostByName(string $hostName): string { return gethostbyname($hostName); // @codeCoverageIgnore } }
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings