apnet/coding-standard

This package is abandoned and no longer maintained. No replacement package was suggested.

Apnet PHP coding standard

3.0.0 2016-07-12 16:46 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