Phillies pitcher Cole Hamels pitched seven solid innings to help lead the Phillies to a 3-1 win over the Mets on Friday.

"Cole was really in control of the game the whole night," manager Ryan Sandberg said, per MLB.com. "He had the one inning in the fourth with the run scoring on the wild pitch. He got out of that. But other than that, he was in control."

Hamels allowed one run on four hits during the outing. He also struck out eight batters and walked two. Hamels received his second win of the season for his effort and he was able to lower his ERA from 4.14 to 3.68.

"We've got a lead, so you want to make sure they earn it," Hamels said. "Not walking guys, I know that's kind of been my problem in the past. So I was just trying to go after them, and if they get on with hits, they get on with hits. I didn't really want to give them free passes."

Hamels has now gone seven innings and given up one run in two of his last three starts. His next expected start is scheduled for Wednesday against the Pirates.