This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be nice, in the PHP formatting tool, to have the ability to delete braces for IF and loop statements, if there statements have juste one line. Example 1: Change: if ($test) { return false; } To: if ($test) return false; Example 2: Change: foreach ($array as $key => $value) { $value = 'test'; } To: foreach ($array as $key => $value) $value = 'test'; Thanks by advance. Florian
When it indicates there is a problem with the code and there is not, and you cannot trust the syntax checking, it is not a convenience issue, it is a bug. The PROPER way to do a single statement IF in PHP is WITHOUT the braces.