MILWAUKEE — Mike Leake scattered four hits over 8 1-3 innings and Brandon Phillips had three RBI, lifting the Cincinnati Reds to a 6-2 win over the Milwaukee Brewers on Wednesday.

The Reds put the leadoff runner on base in each of the first seven innings and snapped a three-game losing streak.

Leake (8-4) bounced back from a rare rough start in his last outing and seemed to get stronger as the game progressed. He allowed four walks while striking out two.

Milwaukee starter Johnny Hellweg (0-3) had trouble throwing strikes and was battered for his fourth consecutive appearance. The right-hander, who made his major-league debut on June 28, allowed four runs on four hits and five walks in 4 1-3 innings.

Leake allowed four runs in just five innings during his last start July 5 in a 7-4 loss to Seattle, and gave up a first-inning run to Milwaukee. The right-hander then settled down, giving up Sean Halton’s first major-league home run and a walk to Jeff Bianchi in the fifth before retiring 13 consecutive batters.

Mets 7, Giants 2

SAN FRANCISCO — Former Giants prospect Zack Wheeler pitched seven sharp innings, Marlon Byrd homered again and the New York Mets completed their first sweep in San Francisco since 1994 with a 7-2 win Wednesday.

Daniel Murphy and John Buck each had two hits and drove in two runs as the Mets won their fourth in a row, including three straight over the slumping World Series champions. The Giants have lost 16 of 19.

Wheeler (3-1), a former Giants’ first-round draft pick, took a shutout into the seventh. He allowed one run and three hits overall, striking out five and walking three.

Matt Cain (5-6) lasted less than an inning for the first time in his career, giving up three runs on two hits while getting just two outs. He walked three.

San Francisco dropped a season-high 10 games under .500 as it was swept at home for the first time in nearly a year.

Wheeler retired 14 of the first 16 hitters before Pablo Sandoval singled for the Giants’ first hit with two outs in the fourth. Wheeler also hit an RBI double.

Stanton had been in a 3-for-26 slump before he put the Marlins ahead in their four-run first inning against Paul Maholm (9-8). Placido Polanco added three hits and three RBIs.

Jacob Turner (3-1) allowed four hits and two runs in seven innings.

Steve Cishek allowed two singles in the ninth to complete a six-hitter.

The Braves won two of three games in the series but missed a chance for their first road sweep since April 12-14 at Washington. Miami improved to 3-12 against the Braves at Marlins Park since it opened in 2012.

With thousands of youngsters in the stands on camp day, the announced attendance was 23,921 — the Marlins’ largest home crowd since April 27. Miami is last in the major leagues in attendance.

Atlanta came into the game with a 1.87 ERA this season against the Marlins, but Miami batted around in the first inning. Stanton’s double made the score 2-0, and he came home on Polanco’s double. Jeff Mathis added a two-out RBI single.

Maholm gave up no runs after that but lasted only 4 1-3 innings, throwing 103 pitches. Three times this year he has failed to pitch five innings.

Poor base-running hurt Atlanta in the second inning. Dan Uggla doubled home a run, then was thrown out trying to go from second to third when a pitch rolled away from catcher Mathis. B.J. Upton reached first on the play because the pitch was strike three, but he was promptly picked off by Turner.

Freddie Freeman, contending for the final spot on the NL All-Star team, doubled in the sixth and scored on Chris Johnson’s groundout to make the score 4-2. But that’s all the Braves could muster against Turner, who improved to 4-0 in his past six home starts with an ERA of 1.41.

Mathis hit a line drive at Maholm in the fourth inning, but the pitcher was able to deflect the ball with his glove, then retrieve it and throw to first for the out. He went on to pitch out of a jam, retiring Marcell Ozuna with the bases loaded to end the inning.

Notes: Umpire Dan Iassogna began wearing a cast this week on his right forearm after an X-ray revealed a broken wrist. He was hurt working behind the plate at a game June 29, but the severity of the injury wasn’t determined until after Monday’s Marlins-Braves game, when he was again the plate umpire and he was throwing balls underhand to the pitcher because of the pain. ... The Marlins’ Adeiny Hechavarria singled in the fifth to extend his hitting streak to 10 games, matching his career high. ... With his first career triple, Turner raised his lifetime batting average from .034 to .067. ... Johnson had two hits and is batting .432 (16 for 37) against the Marlins this year.