PHP CS Fixer > configuration > make more readable & remove unnecessary code

This commit is contained in:
Meritoo
2019-08-02 12:21:03 +02:00
parent b251bcec0e
commit 79708f4e61
2 changed files with 9 additions and 3 deletions

View File

@@ -1,9 +1,13 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
->in(__DIR__)
->exclude([
'build',
'vendor',
])
->notPath([
'tests/Resources/var/',
])
;
@@ -12,6 +16,7 @@ return PhpCsFixer\Config::create()
'@Symfony' => true,
'@PhpCsFixer' => true,
'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => true,
],