Any person who is found to have violated a provision of this chapter, or any person who pleads guilty or enters a plea of nolo contendere to a violation of this chapter, in the magistrate court of the county, shall be punished according to section 1-4 for each such violation.