bellangelo/coding-standard

Bellangelo Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

Fund package maintenance!
bellangelo

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v1.0.3 2024-11-11 23:52 UTC

This package is auto-updated.

Last update: 2025-02-12 00:26:21 UTC


README

Bellangelo Coding Standard for PHP_CodeSniffer provides sniffs that fall into one category ( for now ):

  • Formatting - rules for consistent code looks

How to install

composer require bellangelo/coding-standard --dev

Alphabetical list of sniffs

🔧 = Automatic errors fixing

Bellangelo.Naming.AvoidNumberedVariableNames

Variables must not end in a number. This forces developers to use more descriptive names.

Bellangelo.Naming.DuplicateWordInNaming 🔧

Class names should not contain duplicate words. This sniff will check for class names that contain the same word twice and remove any duplicates.

Bellangelo.Naming.SingularClassName 🔧

Class names should be singular. This sniff will check for class names that are plural and change them to singular.