TORONTO - Tim Hardaway Jr. had 23 points as the Detroit Pistons fended off the Toronto Raptors 117-105 on Friday to clinch a playoff berth.