Parking brake return spring for 10” drums

Spring in picture is installed incorrectly. Might be the same spring on a 9"?
I just noticed the spring is installed differently between the two pics I posted. Which is the proper way?