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 270903

Summary: Wrong formatting for method/function parameters when the wrapping always option is set
Product: php Reporter: junichi11
Component: Formatting & IndentationAssignee: junichi11
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description junichi11 2017-06-18 06:17:28 UTC
Options: Wrapping > Method Parameters: Always

Sample code:

function wrapAlways(
        $p1,
        $p2,
        $p3) {
}

Expected Result:

function wrapAlways(
        $p1,
        $p2,
        $p3) {
    
}

Actual Result:

function wrapAlways(
$p1,
        $p2,
        $p3) {
    
}

The first parameter is not indented.
Comment 1 junichi11 2017-06-19 03:32:36 UTC
Fixed.

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

Thanks.
Comment 2 Quality Engineering 2017-06-20 01:56:46 UTC
Integrated into 'main-silver', will be available in build *201706200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eb818a785135
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #270903 - Wrong formatting for method/function parameters when the wrapping always option is set