����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.188.180.227 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/./bofirmacademy.com/vendor/egulias/email-validator/src/Validation/ |
Upload File : |
<?php namespace Egulias\EmailValidator\Validation; use Egulias\EmailValidator\EmailLexer; use Egulias\EmailValidator\EmailParser; use Egulias\EmailValidator\Result\InvalidEmail; use Egulias\EmailValidator\Result\Reason\ExceptionFound; class RFCValidation implements EmailValidation { /** * @var EmailParser|null */ private $parser; /** * @var array */ private $warnings = []; /** * @var ?InvalidEmail */ private $error; public function isValid(string $email, EmailLexer $emailLexer) : bool { $this->parser = new EmailParser($emailLexer); try { $result = $this->parser->parse($email); $this->warnings = $this->parser->getWarnings(); if ($result->isInvalid()) { /** @psalm-suppress PropertyTypeCoercion */ $this->error = $result; return false; } } catch (\Exception $invalid) { $this->error = new InvalidEmail(new ExceptionFound($invalid), ''); return false; } return true; } public function getError() : ?InvalidEmail { return $this->error; } public function getWarnings() : array { return $this->warnings; } }