apnet / coding-standard
Apnet PHP coding standard
Installs: 2 101
Dependents: 10
Suggesters: 1
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2019-02-20 17:40:06 UTC
README
Installation
Add requirements to composer.json:
{ "require-dev" : { "apnet/coding-standard" : "~3.0" } }
Sniffs
- PSR2
- PEAR.Commenting.InlineComment
- PEAR.ControlStructures.MultiLineCondition
- PEAR.WhiteSpace.ObjectOperatorIndent
- Symfony2.Classes.MultipleClassesOneFile
- Symfony2.Commenting.ClassComment
- Symfony2.Commenting.FunctionComment - with {@inheritdoc} support
- Apnet.NamingConvensions.ValidVariableName - require camelCase property names
- Squiz.Functions.MultiLineFunctionDeclaration
Getting PHP_CodeSniffer report
Run phpcs --standard=vendor/apnet/coding-standard/src/Apnet src
to analize code inside src
directory