Where do opening braces for functions go? (not methods, not closures)

101 views
Skip to first unread message

Masunaga Ray

unread,
Aug 29, 2013, 1:38:00 AM8/29/13
to php-f...@googlegroups.com
Where do opening braces for functions go
while ones for class methods MUST go on the next line
and for closures on the same line?

I thought functions would follow the same rule as closures,
but in the example code for PSR-1
the opening brace for function foo() goes with the same line.
Reply all
Reply to author
Forward
0 new messages