All such incorporating ordinances shall include a penal section or sections within the limits authorized by law to be provided for the violation of the ordinances of the city: Provided, That if the incorporated code or ordinance, state regulation or statute contains penalty provisions which the city may or must inflict or if the incorporated code or ordinance is based upon a statute whose provisions a city is specifically authorized to parallel in whole or in part by ordinance with the same penalties, such incorporating ordinance need not provide penalties.
K.S.A. 12-3011