mirror of
https://github.com/halaxa/json-machine.git
synced 2025-01-17 04:58:16 +01:00
23 lines
549 B
PHP
23 lines
549 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__)
|
|
->exclude('ext')
|
|
;
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
return $config->setRules([
|
|
'@Symfony' => true,
|
|
'not_operator_with_space' => true,
|
|
'yoda_style' => false,
|
|
'single_line_throw' => false,
|
|
'unary_operator_spaces' => false,
|
|
'visibility_required' => false,
|
|
'php_unit_test_class_requires_covers' => true,
|
|
'declare_strict_types' => true,
|
|
'phpdoc_to_comment' => false, // todo remove when we move to GeneratorAggregate
|
|
|
|
])
|
|
->setFinder($finder)
|
|
;
|