A man has been sentenced after officers found class A and class B drugs and a mobile phone when they searched a Range Rover in Stafford.