PITTSBURGH -- Right-hander Edinson Volquez hurled six solid innings to reach double figures in victories as he pitched the Pittsburgh Pirates to a 4-2 victory over the reeling Detroit Tigers on Tuesday night. The Pirates swept the two-game series against the Tigers.

Volquez (10-7) allowed two runs and five hits with five strikeout and two walks to win his second start in a row and for the fourth time in his last five starts at PNC Park.

Pirates left fielder Travis Snider had two hits, including an RBI double, after hitting two home runs and driving in four runs in Monday night's win. He went 5-for-9 in the series.

Rookie left-hander Robbie Ray (1-2), who was recalled from Triple-A Toledo before the game by the Tigers, took the loss. He lasted five-plus innings and gave up four runs and six hits while walking two and striking out five.

Tigers catcher Alex Avila had two hits, including a homer.

The Pirates (64-55) won for the fifth time in their last seven games and lead the National League wild card standings.

The Tigers (63-54) lost their fourth straight game and for the sixth time in the last seven games. They entered the night one-half game behind the Kansas City Royals in the American League Central.

Volquez had a career-high 17 wins for the Cincinnati Reds in 2008 and was an 11-game winner for the San Diego Padres in 2012.

It has been quite a turnaround season for Volquez, who was signed to a one-year, $5-million contract as a free agent in December.

He had the highest earned run average last season among major league pitchers who qualified for the ERA title with a 5.71 mark for the Padres and Los Angeles Dodgers. This season, he has compiled a 3.67 ERA through 24 games.

Left-handers Justin Wilson and Tony Watson and closer Mark Melancon, who notched his 22nd save, each pitched one scoreless inning of relief for the Pirates.

Ray is expected to remain with the Tigers at least through the end of the week as he likely will fill in Sunday against the Seattle Mariners for right-hander Justin Verlander, who is nursing a sore shoulder.

Ray kept the Tigers in the game as he left trailing 3-2 before being relieved in the sixth inning by right-hander Al Alburquerque, who promptly gave up an RBI double to pinch hitter Ike Davis.

The Pirates went ahead 2-1 in the second inning as catcher Russell Martin led off with a double and, one out later, first baseman Gaby Sanchez and Snider hit back-to-back RBI doubles.

Third baseman Josh Harrison helped give the Pirates a two-run edge in the third when he led off with a double, stole third base and scored on shortstop Jordy Mercer's single.

The Tigers cut the gap to 3-2 on Avila's solo homer, his ninth of the season, in the fourth.

Center fielder Ezequiel Carrera doubled and scored on second baseman Ian Kinsler's single to give the Tigers a first-inning run.

NOTES: Detroit RHP Justin Verlander underwent an MRI on Tuesday in Detroit and it revealed no structural damage in his shoulder, just inflammation. He left Monday night's loss at Pittsburgh after one inning because of a sore shoulder and is doubtful for his scheduled start Sunday against Seattle, though the Tigers are hopeful he will avoid going on the disabled list. ... Detroit recalled LHP Robbie Ray and LHP Blaine Hardy from Triple-A Toledo, optioned RHP Justin Miller to the same club and placed RHP Anibal Sanchez (strained right pectoral) on the 15-day DL, retroactive to Aug. 9. Ray started Tuesday and will pitch Sunday if Verlander cannot pitch. ... Pittsburgh recalled RHP Brandon Cumpton from Triple-A Indianapolis to pitch out of the bullpen and optioned RHP Casey Sadler to the same club. ... Pirates RHP Gerrit Cole (strained right lat) will make a fourth rehab start for Indianapolis on Saturday and is scheduled to pitch seven innings while being on a 90-pitch limit. ... The teams will switch venues Wednesday night and play at Comerica Park in Detroit on Wednesday. The Tigers will call up right-hander Buck Farmer from Double-A Erie to start and make his major league debut against Pittsburgh RHP Vance Worley (5-1, 2.30).