dms/coding-standard
DMS Coding Standard
Maintainers
Package info
github.com/rdohms/dms-coding-standard
Type:phpcodesniffer-standard
pkg:composer/dms/coding-standard
v12.0.0
2023-09-04 15:35 UTC
Requires
- php: ^8
- doctrine/coding-standard: ^12
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 8fc4ed4a021102c60e053beba6835e399f610e97
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:
