(1) For a public offense, other than a petty offense, committed or attempted in his presence; or(2) For a felony which has been in fact committed although not in his presence, if he has probable cause to believe the person to be arrested committed it.