Joe Pavelski had a hat trick to move into a tie for second in the NHL in goals scored, and Raffi Torres and Logan Couture each tallied twice in their return to the lineup following injuries as the San Jose Sharks defeated the Philadelphia Flyers 7-3.