Skip to content

Instantly share code, notes, and snippets.

@ABM-Dan
Created December 14, 2016 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ABM-Dan/1bd17ba4ca79e4d66c678fe1a15a04b9 to your computer and use it in GitHub Desktop.
Save ABM-Dan/1bd17ba4ca79e4d66c678fe1a15a04b9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
$finder = PhpCsFixer\Finder::create()
->exclude([
'app/config',
'app/data',
'app/Resources',
'var',
'web/bundles',
'web/css',
'web/fonts',
'web/js',
])
->notPath('web/config.php')
->in(__DIR__)
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'phpdoc_order' => true,
])
->setFinder($finder)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment