src/Entity/Mail.php
protected function formatAddress($address)
    {
        if (is_array($address)) {
            $email = is_int(key($address)) ? current($address) : key($address);
            return array($email => current($address));
        }

        return array($address => $address);
    }
protected function formatAddress($address)
    {
        if (is_array($address)) {
            $email = is_int(key($address)) ? current($address) : key($address);
            return array($email => current($address));
        }

        return array($address => $address);
    }
protected function formatAddress ( $ address ) { if ( is_array ( $ address ) ) { $ email = is_int ( key ( $ address ) ) ? current ( $ address ) : key ( $ address ) ; return array ( $ email => current ( $ address ) ) ; } return array ( $ address => $ address ) ; }
Format a address

@param string|array $address

@return array
Format a address