youshido-php / CS-CodeStyle

Code sniffer code style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youshido Symfony2 PHP CodeSniffer Coding Standard

This standard copy Symfony2 one with following changes:

  • Concatenation spacing equal 1

Installation

This standard can be installed with the Composer dependency manager.

Install the coding standard as a dependency of your project

    composer require --dev youshido/cs-code-standard

Usage

Run CodeSniffer with following parameters to check your project code style:

    ./vendor/bin/phpcs --encoding=utf-8 --extensions=php --standard=./vendor/youshido/cs-code-standard ./src -p

About

Code sniffer code style