Fast-food chains like Wendy’s and McDonald’s are shutting down locations due to low profits and legal troubles.