Skip to content

Instantly share code, notes, and snippets.

@B-Galati
Last active April 26, 2018 07:43
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 B-Galati/c75b24dca3b544d8e3f02dd2326d07fb to your computer and use it in GitHub Desktop.
Save B-Galati/c75b24dca3b544d8e3f02dd2326d07fb to your computer and use it in GitHub Desktop.
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->exclude(__DIR__.'app/data')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'no_unneeded_final_method' => false,
'phpdoc_summary' => false,
'concat_space' => ["spacing" => "none"],
'array_syntax' => ['syntax' => 'short'],
'native_function_invocation' => true,
'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
])
->setFinder($finder)
->setCacheFile(__DIR__.'/var/.php_cs.cache')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment