Skip to content

rdohms/dms-coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMS Coding Standard

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: