protected function normalizeRecipient($recipient)
    {
        if (is_array($recipient)) {
            return (object) $recipient;
        } elseif (is_string($recipient)) {
            return (object) ['email' => $recipient];
        }

        return $recipient;
    }
protected function normalizeRecipient($recipient)
    {
        if (is_array($recipient)) {
            return (object) $recipient;
        } elseif (is_string($recipient)) {
            return (object) ['email' => $recipient];
        }

        return $recipient;
    }
protected function normalizeRecipient ( $ recipient ) { if ( is_array ( $ recipient ) ) { return ( object ) $ recipient ; } elseif ( is_string ( $ recipient ) ) { return ( object ) [ 'email' => $ recipient ] ; } return $ recipient ; }
Convert the given recipient into an object.

@param  mixed  $recipient
@return object
Convert the given recipient into an object .