Rather than adding countless inspections to our single
Spam class, instead, let's elevate each of these inspections to its own class. Then, our
Spam class can simply filter through all registered inspections, and trigger them. Much cleaner!
View the source code for this episode on GitHub.
Published on Jun 8th, 2017.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.