sirbrillig/phpcs-import-detection
PHP_CodeSniffer plugin that detects unnecessary or missing PHP import (use) statements. Helps keep namespaces clean by flagging unused imports and suggesting fixes, improving code style consistency and reducing clutter in modern PHP projects.
sirbrillig/phpcs-import-detection is a PHPCS sniff that detects and reports unused or missing imports (use statements) in PHP files. It helps keep codebases tidy by surfacing dead imports and improving consistency around namespace usage.
Ideal for teams enforcing style via PHP_CodeSniffer, it integrates into existing rulesets and CI pipelines to prevent import-related noise and reduce manual cleanup.
use statements and flags them during lintingHow can I help you explore Laravel packages today?