To enter upon the land or lands, lot or lots, of any person or persons within the city, at all reasonable hours, by their duly appointed city engineer, in order to regulate partition fences, and when adjoining parties shall improve or enclose their lots, such fences shall be made in the manner generally used and kept in good repair at the equal expense of the parties, unless the owners or occupants between whom such fences is erected shall agree otherwise.
53 P.S. § 23157