I also agree there is no violation and no safety hazard.
Section 225.7(B) Applies to "Lighting Equipment Installed Outdoors". Is there a similar section regarding 120V receptacles?
The real question is where does the code prohibit what was done?
It does not.