Skip to content

Instantly share code, notes, and snippets.

@ceeram
Last active August 29, 2015 14:10
Show Gist options
  • Save ceeram/80da2318d18da2389ecb to your computer and use it in GitHub Desktop.
Save ceeram/80da2318d18da2389ecb to your computer and use it in GitHub Desktop.
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__)
->name('*.ctp')
//->exclude('tests')
;
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(array('-indentation'))//run all PSR2 fixers, EXCEPT indentation
->finder($finder)
;
@ceeram
Copy link
Author

ceeram commented Dec 3, 2014

Run as: $ php php-cs-fixer.phar fix --config-file=cakephp.php_cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment