outsanity / phpcs
The Outsanity PHPCS rules
Installs: 547
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Shell
Requires
- ork/phpcs: ^2.0
- squizlabs/php_codesniffer: ^3.5
README
This is based on PSR-12 and my personal preferences. It's also based on AlexHowansky's work on ork-phpcs and other phpcs repos.
Conventions
Code
Source lives in src
.
Namespace prefix is \Outsanity\ProjectOrLibrary\
, so projects or librarys can
be used side-by-side if the need arises.
Tests
Unit tests live in tests
.
Test namespace prefix is \Outsanity\ProjectOrLibrary\Tests\
, with the
understanding that they will not be imported between projects.