Skip to content

Instantly share code, notes, and snippets.

@jjsaunier
Last active December 30, 2015 16:39
Show Gist options
  • Select an option

  • Save jjsaunier/7855869 to your computer and use it in GitHub Desktop.

Select an option

Save jjsaunier/7855869 to your computer and use it in GitHub Desktop.
PHP CS FIXER
php php-cs-fixer.phar fix /path/to/project --level=all
<?php
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array(
'ordered_use',
'multiline_spaces_before_semicolon',
'concat_with_spaces'
))
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->exclude(['vendor', 'app/cache'])
->in(__DIR__.'/src')
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment