The fire chief of a city shall be ex-officio fire marshal if the office is not separately filled pursuant to ordinance in the city and, in that case, all the powers and duties given to or imposed upon the fire marshal under this chapter shall be enjoyed and exercised by the fire chief.
11 Pa.C.S. § 12107