Probable ADA violation - would have to be repaired.
I'm sure this is in a pedestrian area - hazard to public by cuts or scrapes - building or zoning violation. Lots of legal problems here without even getting into the electrical code.
I've noticed that I have become a lot more aware of junk like this since I have a couple of disabled relatives. Franky, it ticks me off no end.