SAN FRANCISCO — The San Francisco Giants completed a three-game sweep of the Los Angeles Dodgers with an 8-4 victory Wednesday to move further clear of their National League West rivals going into the closing weeks of the regular season. The Giants (69-55) entered the series trailing the Dodgers (67-58) by half a game in the division but left Los Angeles riding high with a 2 1/2-game advantage. Matt Cain (13-5) controlled the series finale and the Dodgers' offense, tossing seven innings and allowing just one run to win his third straight start. Joaquin Arias homered in the first inning to give the visitors a 3-0 lead, as he finished 3-for-5 with five RBIs, and San Francisco held a healthy 8-1 advantage before surrendering three late runs that flattered the hosts. D-backs 3, Marlins 2: Tyler Skaggs allowed three hits through 6 2-3 innings in his major league debut, pitching Arizona to a victory over Miami in the opener of the first home doubleheader in Diamondbacks history. The 21-year-old left-hander gave up a two-run homer to Justin Ruggiano in the second, then shut down the Marlins on one hit the rest of his outing. Skaggs (1-0) He fanned four and survived five walks, then left to a standing ovation from a crowd of 17,239, Arizona's smallest at home this season. Aaron Hill had a two-run homer and an RBI single. Jacob Turner (0-1), in his first start for Miami since coming to the Marlins in a trade deadline deal with Detroit, allowed three runs and four hits in six innings. Miami managed just five hits against Skaggs, Brad Ziegler, David Hernandez and J.J. Putz, who pitched a scoreless ninth for his 16th straight save and 25th in 28 tries this season. Brewers 3, Cubs 2: Ryan Braun hit his NL-leading 34th homer and Yovani Gallardo pitched seven strong innings as Milwaukee completed a three-game sweep of Chicago. Braves 5 Nationals 1: Kris Medlen pitched seven shutout innings in his latest winning performance and Martin Prado's two-run double proved decisive to help the Braves end a four-game losing streak. Reds 3, Phillies 2: Bronson Arroyo allowed three hits in eight-plus innings, and Jay Bruce homered to lead Cincinnati. Rockies 5, Mets 2: Wilin Rosario hit a tiebreaking homer in the seventh inning, and Colorado won its seventh straight victory at Citi Field. Cardinals 4, Astros 2: Kyle Lohse pitched seven innings of three-hit ball to earn his seventh consecutive win for St. Louis. Padres 4, Pirates 2: Andrew Werner allowed two runs over six-plus innings in his major league debut and Carlos Quentin drove in three runs for San Diego. Elsewhere St. Louis beat Houston 4-2. — Agencies