['spacing' => 'none'], 'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']], 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], 'header_comment' => ['header' => $header], 'indentation_type' => true, 'phpdoc_align' => [ 'align' => 'vertical', 'tags' => ['param', 'property', 'property-read', 'property-write', 'return', 'throws', 'type', 'var', 'method'], ], 'blank_line_before_statement' => ['statements' => ['return']], 'constant_case' => ['case' => 'lower'], 'echo_tag_syntax' => ['format' => 'long'], 'trailing_comma_in_multiline' => ['elements' => ['arrays']], ]; foreach ($fixers as $fix) { $rules[$fix] = true; } $config = new PhpCsFixer\Config(); return $config ->setRules($rules) ->setFinder( PhpCsFixer\Finder::create() ->exclude('examples') ->in(__DIR__) );