A violation of any provision of this ordinance is hereby declared to be a misdemeanor and, upon conviction thereof, shall be punished as provided by law.