Total Complexity | 11 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 78.95% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class DnsHelper |
||
6 | { |
||
7 | /** |
||
8 | * @param string $hostname hostname without dot at end |
||
9 | * @link https://bugs.php.net/bug.php?id=78008 |
||
10 | */ |
||
11 | 2 | public static function existsMx(string $hostname): bool |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * @link https://bugs.php.net/bug.php?id=78008 |
||
28 | */ |
||
29 | 2 | public static function existsA(string $hostname): bool |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @link https://tools.ietf.org/html/rfc5321#section-5 |
||
45 | */ |
||
46 | 1 | public static function acceptsEmails(string $hostnameOrEmail): bool |
|
54 |