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 176224 - wrong formatting in multiline arrays inside function calls
Summary: wrong formatting in multiline arrays inside function calls
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 06:44 UTC by Filip Zamboj
Modified: 2010-03-30 13:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: [formatting]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-11-09 06:44:16 UTC
consider: 
<p><?php echo link_to($certificate->getName(), "certficate", 
            array(
                "id" => $certificate->getId(), 
                "name" => $certificate->getNameSlug()
            ));
            ?></p>

after formatting of file : 
<p><?php echo link_to($certificate->getName(), "certficate", 
            array(
            "id" => $certificate->getId(), 
            "name" => $certificate->getNameSlug()
            ));
            ?></p>
Comment 1 Tomasz Slota 2009-11-11 06:34:30 UTC
reproducible, it happens only when array is defined inside function declaration
Comment 2 Tomasz Slota 2009-11-24 08:10:43 UTC
I already have a prototype fix, but I am not 100% convinced it is safe and it this bug is not that much of a show stopper.. requesting a waiver
Comment 3 Petr Pisl 2010-02-04 07:30:47 UTC
Fixed in web-main
changeset:   158735:b3c9c65b4b5b
Comment 4 Quality Engineering 2010-02-04 22:30:09 UTC
Integrated into 'main-golden', will be available in build *201002050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b3c9c65b4b5b
User: Petr Pisl <ppisl@netbeans.org>
Log: issue #176224 - wrong formatting in multiline arrays inside function calls
Comment 5 Filip Zamboj 2010-03-30 13:26:54 UTC
v/c 
Product Version: NetBeans IDE Dev (Build 100330-93c73722455d)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01