You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (JIRA)" <ji...@apache.org> on 2019/08/14 10:38:00 UTC

[jira] [Resolved] (NETBEANS-2971) Missing spaces in anonymous function declaration

     [ 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 &amp; 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists