<?php

namespace App\Support;

class EmailNormalizer
{
    public static function normalize(?string $value): ?string
    {
        if ($value === null || $value === '') {
            return $value;
        }

        return strtolower(preg_replace('/\s+/', '', $value) ?? '');
    }
}
