[ https://issues.apache.org/jira/browse/NETBEANS-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16906756#comment-16906756 ]
Junichi Yamamoto commented on NETBEANS-2971: -------------------------------------------- Thank you for reporting it. > Missing spaces in anonymous function declaration > ------------------------------------------------ > > Key: NETBEANS-2971 > URL: https://issues.apache.org/jira/browse/NETBEANS-2971 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting & Indentation > Affects Versions: 11.1 > Reporter: Tomáš Procházka > Assignee: Junichi Yamamoto > Priority: Minor > > Formatting arguments of anonymous function is not consistent with formatting > of regular functions. > # In PHP project properties set Formatting - Use project specific options. > # Language: PHP, Category: Spaces > # Check mark Within Parentheses - Method / Function Declaration > # Format code > Actual result: > {code:php} > function fn( $a ) { > return $a; > } > $func = function ($a) use ($x) { > return $a + $x; > }; > {code} > Expeceted result: > {code:php} > function fn( $a ) { > return $a; > } > $func = function ( $a ) use ( $x ) { > return $a + $x; > }; > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists