Download the PHP package karen-nalbandian/phalcon-coding-standard without Composer
On this page you can find all versions of the php package karen-nalbandian/phalcon-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karen-nalbandian/phalcon-coding-standard
More information about karen-nalbandian/phalcon-coding-standard
Files in karen-nalbandian/phalcon-coding-standard
Package phalcon-coding-standard
Short Description CodeSniffer ruleset for the Phalcon coding standard (PCG Cube flavor)
License MIT
Homepage https://github.com/karen-nalbandian/phalcon-coding-standard
Informations about the package phalcon-coding-standard
Phalcon PHP CodeSniffer Coding Standard (PCGuard flavor)
A coding standard to check against the Phalcon coding standards, with slight modifications.
Important note: Please be careful using this library, as it is for internal usage, and probably will not be maintained
Differences
The following standards has been modified:
- added the Phalcon.Commenting.FunctionComment.MissingParamType
- removed the Phalcon.Commenting.FunctionComment.SpacingAfterParamType
- removed the Phalcon.Commenting.Annotations.Invalid
- removed the Phalcon.Functions.Arguments.Invalid
- removed the Squiz.Strings.ConcatenationSpacing.PaddingFound
- removed the PSR2.Classes.PropertyDeclaration.Underscore
- removed the Zend.NamingConventions.ValidVariableName.ContainsNumbers
- removed the Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers
Installation
Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer require --dev karen-nalbandian/phalcon-coding-standard:dev-master
-
Add the coding standard to the PHP_CodeSniffer install path
vendor/bin/phpcs --config-set installed_paths vendor/karen-nalbandian/phalcon-coding-standard
-
Check the installed coding standards for "Phalcon"
vendor/bin/phpcs -i
-
Done!
vendor/bin/phpcs /path/to/code
Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repository
git clone https://github.com/karen-nalbandian/phalcon-coding-standard.git
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths /path/to/phalcon-coding-standard
Or copy/symlink this repository's "Phalcon"-folder inside the phpcs
Standards
directory -
Check the installed coding standards for "Phalcon"
phpcs -i
-
Done!
phpcs /path/to/code