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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.