mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
PHP Coding Standards Fixer > update configuration
This commit is contained in:
@@ -4,11 +4,14 @@ $finder = PhpCsFixer\Finder::create()
|
|||||||
->in([
|
->in([
|
||||||
__DIR__ . '/src',
|
__DIR__ . '/src',
|
||||||
__DIR__ . '/tests',
|
__DIR__ . '/tests',
|
||||||
]);
|
])
|
||||||
|
;
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRules([
|
->setRules([
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
|
'@PhpCsFixer' => true,
|
||||||
|
'@PHP71Migration' => true,
|
||||||
'binary_operator_spaces' => [
|
'binary_operator_spaces' => [
|
||||||
'align_double_arrow' => true,
|
'align_double_arrow' => true,
|
||||||
],
|
],
|
||||||
@@ -24,4 +27,5 @@ return PhpCsFixer\Config::create()
|
|||||||
'phpdoc_summary' => false,
|
'phpdoc_summary' => false,
|
||||||
'trim_array_spaces' => false,
|
'trim_array_spaces' => false,
|
||||||
])
|
])
|
||||||
->setFinder($finder);
|
->setFinder($finder)
|
||||||
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user