Update PHP CS Fixer config file
This commit is contained in:
parent
5f4d8e9441
commit
a0e305baa1
@ -1,15 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return Symfony\CS\Config\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setUsingLinter(false)
|
->setRules(array(
|
||||||
->setUsingCache(true)
|
'@Symfony' => true,
|
||||||
->fixers(array(
|
'@Symfony:risky' => true,
|
||||||
'long_array_syntax',
|
'array_syntax' => array('syntax' => 'long'),
|
||||||
'php_unit_construct',
|
|
||||||
'php_unit_dedicate_assert',
|
|
||||||
))
|
))
|
||||||
->finder(
|
->setRiskyAllowed(true)
|
||||||
Symfony\CS\Finder\DefaultFinder::create()
|
->setFinder(
|
||||||
|
PhpCsFixer\Finder::create()
|
||||||
->in(__DIR__)
|
->in(__DIR__)
|
||||||
->exclude(array(
|
->exclude(array(
|
||||||
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
Reference in New Issue
Block a user