PHOENIX (AP) - Patrick Corbin pitched seven strong innings to win his fourth straight start, J.D. Martinez homered twice and the Arizona Diamondbacks used a nine-run eighth inning to thump the San Francisco Giants 11-0 on Sunday.

The Diamondbacks swept the three-game series and have won six of seven, maintaining a 1 1/2-game lead over Colorado for the top NL wild card.

Paul Goldschmidt scored three with his 31st homer of the season, and Martinez and Daniel Descalso also went deep in the eighth. Eight of those runs were charged to reliever Matt Cain.

Corbin (12-11) left to a standing ovation after allowing a single to Jarrett Parker to lead off the eighth. Corbin allowed five hits and struck out eight with a walk. He's allowed only one run in 30 1/3 innings across his last four starts.

Giants starter Chris Stratton (2-3) walked five and threw a critical wild pitch, but gave up two runs and four hits and struck out 10 in six innings.