dms/coding-standard

DMS Coding Standard

Installs: 1 669

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Type:phpcodesniffer-standard

v8.0.1 2021-04-07 21:04 UTC

This package is auto-updated.

Last update: 2021-09-07 21:50:27 UTC


README

Customised PHPCS ruleset to standardise our PHP repositories

Standards

Our coding standard is based on PSR-1 and PSR-2, following the Doctrine flavor, with a couple differences:

  • ✅ Do not add spaces before a colon in return type declaration, only after function (): void {}
  • ✅ Always add declare(strict_types=1) at the beginning of a file (1 line after tag, not 2)

More info: