Pennsylvania constitution
Article VII: elections
Section 9

Townships and wards of cities or boroughs shall form or be divided into election districts of compact and contiguous territory and their boundaries fixed and changed in such manner as may be provided by law.