Alec Bohm hit a three-run homer to cap a six-run fourth inning Friday night for the visiting Philadelphia Phillies, who clinched a playoff berth by beating the New York Mets 12-2 in the second game of a four-game series.Bohm finished 4-for-5 with four RBIs for the Phillies (92-62), who have reached the postseason for the third straight year. Philadelphia’s magic number for clinching the National League East for the first time since 2011 is two.The Phillies scored the final 12 runs Friday to cool off the red-hot Mets (85-69), who had their four-game winning streak snapped but remained two games ahead of the Atlanta Braves in the race for the third and final N.L. wild-card spot. The Braves fell to the Miami Marlins, 4-3, on Friday.Edmundo Sosa began the comeback with a second-inning sacrifice fly and Nick Castellanos tied the game with an RBI double in the third. The Phillies chased David Peterson (9-3) in the fourth, when Johan Rojas laced a two-run double, and Trea Turner greeted Adam Ottavino with an RBI single two batters before Bohm’s blast.Bohm and Castellanos had RBIs in the sixth and J.T. Realmuto hit a two-run homer in the eighth.Every Phillies starter had at least one hit. Castellanos collected three hits while Realmuto, Rojas and Turner had two hits apiece.