(a) In any city that has adopted these provisions and contracted for county enforcement of them, the owner of a dog or cat residing within any city limit boundaries in any platted subdivision in which the average lot size is two acres or less, or in any mobile home park, shall confine the dog or cat in a secure enclosure by a chain or leash affixed to the animal's collar and attached to some substantial stationary object adequate to prevent the dog or cat from running at large. (b) It shall further be the duty of any owner or keeper of any dog or cat regardless of the size of the owner's lot or property, to keep the dog or cat under such control so as to: (1) Prevent the animal from becoming a danger to persons or property at any location, or trespassing upon another person's property without that person's permission. (2) Prevent such animal from running at large upon the streets, roads, sidewalks, alleys, parks, or other public places.