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.
I have a simple anonymous function in an array_map, this is how I have it formatted: $ids = array_map( function($item) { return $item['match']; }, $record); Here is how netbeans formats it: $ids = array_map( function($item) { return $item['match']; }, $record); Is it not possible to set the auto formater to do something like what I have??
Another example: function bar() { return [ function() { echo []; } ]; }
Do you mean formatting or indentation? Thanks.
(In reply to antoniocs from comment #0) > Is it not possible to set the auto formater to do something like what I > have?? Perhaps the best way is to write it this way: $ids = array_map(function($item) { return $item['match']; }, $record); (In reply to artur_m from comment #1) > Another example: > > function bar() > { > return > [ > function() > { > echo []; > } > ]; > } Sorry, no idea what you mean. Please, next time write exact steps, the actual and expected nehavior. Thanks for reporting.