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.

Bug 175684 - don't expand brackets in some cases
Summary: don't expand brackets in some cases
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-29 16:46 UTC by Filip Zamboj
Modified: 2012-05-02 09:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-10-29 16:46:05 UTC
consider 
try {
            if($foo== 'bar'){}
            else{
                return false; 
            }
        } catch(InvalidArgumentException $e) {
            echo "an exception";
            return false; 
        }
?>

after formatting are brackets epanded. 

expected is keep it as it is {}
Comment 1 Tomasz Slota 2010-02-04 10:11:59 UTC
ppisl is the new owner of formatting/indentation area
Comment 2 Petr Pisl 2010-05-06 16:22:30 UTC
There should be a rule for this in the ui.
Comment 3 Petr Pisl 2011-06-08 12:34:30 UTC
Still valid for NB 7.0.
Comment 4 Ondrej Brejla 2011-10-27 08:48:53 UTC
Still reproducible
Comment 5 Ondrej Brejla 2012-05-02 09:03:44 UTC
Still valid.

Product Version: NetBeans IDE Dev (Build 20120502-3fa1de339d64)
Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02
System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; cs_CZ (nb)
User directory: /home/warden/userdir
Cache directory: /home/warden/userdir/var/cache
Comment 6 Ondrej Brejla 2012-05-02 09:05:20 UTC
It's not a defect...P3 Enhancement for me.