It shall be the duty of the chief of police and policemen of the city to arrest any person violating any of the laws of this State in their presence and to immediately carry such persons before a magistrate and see that a proper warrant is sworn out.