* SPDX-License-Identifier: MIT */ $finder = PhpCsFixer\Finder::create()->in(__DIR__); return (new PhpCsFixer\Config()) ->setRules([ '@PSR2' => true, 'curly_braces_position' => [ 'classes_opening_brace' => 'same_line', 'functions_opening_brace' => 'same_line', ], 'array_syntax' => ['syntax' => 'short'], 'braces' => ['position_after_functions_and_oop_constructs' => 'same'], 'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space']], ]) ->setIndent("\t") ->setFinder($finder);