Each matter relating to a nomination of a candidate and election of a city officer shall be governed by the Pennsylvania Election Code.