@@ -53,16 +53,16 @@ |
||
| 53 | 53 | |
| 54 | 54 | public function __construct(array $config = []) |
| 55 | 55 | { |
| 56 | - $this->checkMxRecords = (bool) ($config['checkMxRecords'] ?? true); |
|
| 56 | + $this->checkMxRecords = (bool) ($config['checkMxRecords'] ?? true); |
|
| 57 | 57 | $this->checkBannedListedEmail = (bool) ($config['checkBannedListedEmail'] ?? false); |
| 58 | - $this->checkDisposableEmail = (bool) ($config['checkDisposableEmail'] ?? false); |
|
| 59 | - $this->checkFreeEmail = (bool) ($config['checkFreeEmail'] ?? false); |
|
| 60 | - $this->localDisposableOnly = (bool) ($config['LocalDisposableOnly'] ?? false); |
|
| 61 | - $this->localFreeOnly = (bool) ($config['LocalFreeOnly'] ?? false); |
|
| 58 | + $this->checkDisposableEmail = (bool) ($config['checkDisposableEmail'] ?? false); |
|
| 59 | + $this->checkFreeEmail = (bool) ($config['checkFreeEmail'] ?? false); |
|
| 60 | + $this->localDisposableOnly = (bool) ($config['LocalDisposableOnly'] ?? false); |
|
| 61 | + $this->localFreeOnly = (bool) ($config['LocalFreeOnly'] ?? false); |
|
| 62 | 62 | |
| 63 | - $this->bannedList = $config['bannedList'] ?? []; |
|
| 63 | + $this->bannedList = $config['bannedList'] ?? []; |
|
| 64 | 64 | $this->disposableList = $config['disposableList'] ?? []; |
| 65 | - $this->freeList = $config['freeList'] ?? []; |
|
| 65 | + $this->freeList = $config['freeList'] ?? []; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | // Convert to standard format for final validation |
| 245 | - $ipv6 = implode(':', array_map(function ($segment) { |
|
| 245 | + $ipv6 = implode(':', array_map(function($segment) { |
|
| 246 | 246 | return str_pad($segment, 4, '0', STR_PAD_LEFT); |
| 247 | 247 | }, $segments)); |
| 248 | 248 | |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | // Convert to standard format for final validation |
| 281 | - $ipv4 = implode('.', array_map(function ($octet) { |
|
| 281 | + $ipv4 = implode('.', array_map(function($octet) { |
|
| 282 | 282 | return ltrim($octet, '0') ?: '0'; |
| 283 | 283 | }, $octets)); |
| 284 | 284 | |