A catch block should be considered a control statement, not a function. Otherwise, coder module reports "Functions should be called with no spaces between the function name" for catch (Exception $fault) {

CommentFileSizeAuthor
catch.patch1.15 KBmfb

Comments

douggreen’s picture

Status: Needs review » Fixed

Thanks! I didn't realize that php5 supported try { } catch (...). With 6.x moving to php5 as a minimum requirement, I'm sure we'll see more of this...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.