Skip to content

Instantly share code, notes, and snippets.

@ABM-Dan
Created December 9, 2016 21:15
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/d65c0a1ac759d3c74162a7145e5d91e6 to your computer and use it in GitHub Desktop.
Save ABM-Dan/d65c0a1ac759d3c74162a7145e5d91e6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'phpdoc_order' => true,
])
->setFinder(
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__)
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment