junichi11 opened a new pull request #3254: URL: https://github.com/apache/netbeans/pull/3254
https://issues.apache.org/jira/browse/NETBEANS-3391 - Add new wrapping options for parentheses of "for/foreach" and Method Call Args, and Method Params - Wrap After '(' and Wrap ')': Wrap when there is a newline within () - Keep ')' and '{' on the same line: Keep them when the Braces option for Method Declaration is "New Line" and wrap () e.g. ```php //for ($index = 0; //$index < count($array); //$index++) { // echo $index; //} for ( $index = 0; $index < count($array); $index++ ) { echo $index; } //test($param1, // $param2, // $param3); test( $param1, $param2, $param3 ); //function test( //$param1, //$param2, //$param3,): void { // //} function test( $param1, $param2, $param3, ): void { } // Keep ')' and '{' on the same line // the Braces option for Method Declaration is "New Line" //function test($param1, int $param2): void{ //} function test($param1, int $param2): void { } // Keep ')' and '{' on the same line // the Braces option for Method Declaration is "New Line" //function test(int $param1, // Test &$param2, //): void{ //} function test( int $param1, Test &$param2, ): void { } ``` - Note: It doesn't work correctly with new options yet when the wrapping option of Method Parameters/Method Call Arguments/For is "If Long" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
