I want to make sure all classes in some dir (src/Controller/CP
) extend some other class AbstractCPController
.
So that
class SupportTicketTagController extends AbstractController
would show PHPCS error, and
class SupportTicketTagController extends AbstractCPController
would be fine.
Is that possible with PHPCS?
I ended up creating my own Sniff. Its far from perfect but may serve as a base for somebody in the future: