Section 189. Unless the context otherwise requires, the provisions of this chapter shall apply to cities so far as consistent with their several charters.