Updated InvitationController to PSR standards.