place curly on the next line, maybe use php-cs-fixer to fix all these things