mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
PHP CS Fixer > configuration > make more readable & remove unnecessary code
This commit is contained in:
11
.php_cs.dist
11
.php_cs.dist
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user