Where does that code say anything about the peace officer then being able to hold a person indefinitely who declines to give their name for simple trespass in a parking garage? Unless this man was creating some commotion or destruction, he should have been advised to go on his way, imo.
Statutory interpretation is not your strongest suit, I gather.