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/13 12:21:00 UTC

[jira] [Resolved] (NETBEANS-1047) PHP spaces when using Source / Organize Members

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

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

> PHP spaces when using Source / Organize Members
> -----------------------------------------------
>
>                 Key: NETBEANS-1047
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1047
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Formatting &amp; Indentation
>    Affects Versions: 9.0
>            Reporter: Alberto Rinaudo
>            Assignee: Junichi Yamamoto
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 11.2
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Hi,
> This thing has been bugging me for a long time.
> I always use "Organize Members" to make my code look clean and readable with 0 effort.
> For php, however, some spaces are put in the wrong place.
> This is how php is formatted when using "OR":
> {code}
> <?php
> $tb = FALSE;
> if ($tb OR ! $tb)
>   ;
> if ($tb OR ( !$tb))
>   ;
> {code}
>  
> this is how it is formatted when using "||":
> {code}
> <?php
> $tb = FALSE;
> if ($tb || !$tb)
>   ;
> if ($tb || (!$tb))
>   ;
> {code}
>  
> As you can see extra spaces are added after "!" and "(" 
>  I always use OR/AND keywords as a habit, I'd love to see this fixed
> Thanks.



--
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