Man in court today following incident where a man was attack