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 268541

Summary: If else formating
Product: php Reporter: amobilia
Component: Formatting & IndentationAssignee: junichi11
Status: RESOLVED FIXED    
Severity: normal CC: tmysik
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description amobilia 2016-10-16 01:46:27 UTC
The formater doesn't work properly for the code below .
A single ligne (and no accolads if is included on another if / else)
-----------------
<?php
if (TRUE) {
    if ($ifWithoutAccolads)
        $something;
}else {
    $something;
}
-----------------

Expectation : 
-----------------
<?php
if (TRUE) {
    if ($ifWithoutAccolads)
        $something;
} else {
    $something;
}
-----------------
[space before else]
Comment 1 junichi11 2017-06-15 05:52:04 UTC
Thanks for reporting!
Comment 2 junichi11 2017-06-16 01:52:52 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/bdbe69fcecd0

Thanks.
Comment 3 Quality Engineering 2017-06-17 02:19:06 UTC
Integrated into 'main-silver', will be available in build *201706170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bdbe69fcecd0
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #268541 - If else formating