2017 © Pedro Peláez
 

phpcodesniffer-standard coding-standard

DMS Coding Standard

image

dms/coding-standard

DMS Coding Standard

  • Thursday, July 26, 2018
  • by rdohms
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DMS Coding Standard

Customised PHPCS ruleset to standardise our PHP repositories, (*1)

Standards

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

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

More info:, (*3)

  • https://github.com/slevomat/coding-standard
  • https://github.com/doctrine/coding-standard

The Versions