src/Gravatar.php
private function createEmailHash(string $email): string
    {
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \InvalidArgumentException('Invalid email address');
        }

        return md5(strtolower(trim($email)));
    }
private function createEmailHash(string $email): string
    {
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \InvalidArgumentException('Invalid email address');
        }

        return md5(strtolower(trim($email)));
    }
private function createEmailHash ( string $ email ) : string { if ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { throw new \ InvalidArgumentException ( 'Invalid email address' ) ; } return md5 ( strtolower ( trim ( $ email ) ) ) ; }
Creates a hash from an email address.
Creates a hash from an email address .