[ 
https://issues.apache.org/jira/browse/NETBEANS-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Junichi Yamamoto resolved NETBEANS-2971.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 11.2

> 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
>              Labels: pull-request-available
>             Fix For: 11.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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

Reply via email to