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 00:35:00 UTC

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

    [ 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 &amp; 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-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