Omnibus Election Code
Section 251. Election contests for municipal offices. - A sworn petition contesting the election of a municipal officer shall be filed with the proper regional trial court by any candidate who has duly filed a certificate of candidacy and has been voted for the same office, within ten days after proclamation of the results of the election.