Skip to content

Instantly share code, notes, and snippets.

@jamesmills
Created May 6, 2019 10:16
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 jamesmills/d9000449c91424ba0e607a92c83c3f85 to your computer and use it in GitHub Desktop.
Save jamesmills/d9000449c91424ba0e607a92c83c3f85 to your computer and use it in GitHub Desktop.
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/app')
->in(__DIR__ . '/database/migrations')
;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => ['space' => 'single'],
'no_unused_imports' => true,
'blank_line_before_statement' => true,
'trailing_comma_in_multiline_array' => true,
'single_quote' => true
])
->setFinder($finder)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment