Kei Nishikori closes a career shaped by injury, reaching a career-high No 4 in the ATP world rankings and winning 12 titles.