I've started to use PHP-CS-Fixer and I was wondering if there is any configuration to do not automatically add curly braces on inline statements, for example
//I want to keep this way
if (empty($var))
throw new Exception('An error message..')
but when I format it turns into this:
if (empty($var)) {
throw new Exception('An error message..')
}
My php_cs.dist config:
...
->setRules([
'no_unneeded_curly_braces' => true,
'braces' => [
'allow_single_line_closure' => true,
'position_after_functions_and_oop_constructs' => 'same'
]
])
...
Is this possible to achieve with PHP-CS-Fixer?