c-quential/coding-standard

C-quential Coding Standard for PHP_CodeSniffer.

Maintainers

Package info

github.com/C-quential/coding-standard

Type:phpcodesniffer-standard

pkg:composer/c-quential/coding-standard

Statistics

Installs: 3 038

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.1 2026-04-21 11:46 UTC

This package is auto-updated.

Last update: 2026-04-21 11:53:51 UTC


README

Custom rules for PHP_CodeSniffer

Installation

Install using Composer.

composer require c-quential/coding-standard

Sniffs

Below is an alphabetical list of sniffs, with short explanations.

Strings

CquentialCodingStandard.Strings.UnneededDoubleQuoteUsage: If a string can be rewritten to use single quotes, without adding string concatenation, you must do so.

TypeHints

CquentialCodingStandard.TypeHints.ArrowFunctionTypeHint: This sniff checks if arrow functions are fully type-hinted. All parameters need to be type-hinted and a return type is also required. If there is no return value, you can use null, as void is not allowed on arrow functions.