src/Mail/Message.php
private function formatEmail(string $email, string $name = null): array
    {
        if (!$name && \preg_match('#^(.+) +<(.*)>\z#', $email, $matches)) {
            return [$matches[2] => $matches[1]];
        }

        return [$email => $name];
    }
private function formatEmail(string $email, string $name = null): array
    {
        if (!$name && \preg_match('#^(.+) +<(.*)>\z#', $email, $matches)) {
            return [$matches[2] => $matches[1]];
        }

        return [$email => $name];
    }
private function formatEmail ( string $ email , string $ name = null ) : array { if ( ! $ name && \ preg_match ( '#^(.+) +<(.*)>\z#' , $ email , $ matches ) ) { return [ $ matches [ 2 ] => $ matches [ 1 ] ] ; } return [ $ email => $ name ] ; }
Formats recipient email.

@param string      $email
@param string|null $name

@return array
Formats recipient email .