An Uber Eats driver who battered his father-in-law with a hammer outside Willenhall McDonalds has avoided jail.