Created
December 14, 2016 15:53
-
-
Save ABM-Dan/1bd17ba4ca79e4d66c678fe1a15a04b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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