Bellangelo Coding Standard for PHP_CodeSniffer provides sniffs that fall into one category ( for now ):
- Formatting - rules for consistent code looks
composer require bellangelo/coding-standard --dev
- Bellangelo.Naming.AvoidNumberedVariableNames
- Bellangelo.Naming.DuplicateWordInNaming 🔧
- Bellangelo.Naming.SingularClassName 🔧
Variables must not end in a number. This forces developers to use more descriptive names.
Class names should not contain duplicate words. This sniff will check for class names that contain the same word twice and remove any duplicates.
Class names should be singular. This sniff will check for class names that are plural and change them to singular.