Skip to content

Instantly share code, notes, and snippets.

@simonhughes
Last active June 22, 2018 12:51
Show Gist options
  • Save simonhughes/f7dd3568a9fe3f9002d2db2557be1262 to your computer and use it in GitHub Desktop.
Save simonhughes/f7dd3568a9fe3f9002d2db2557be1262 to your computer and use it in GitHub Desktop.
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('database/migrations')
->exclude('database/seeds')
->files('*.php')
;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
//'blank_line_after_opening_tag' => true,
//'class_attributes_separation' => true,
//'no_extra_blank_lines' => true,
//'phpdoc_align' => true,
//'phpdoc_indent' => true,
])
->setFinder($finder)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment