You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Alberto Rinaudo (JIRA)" <ji...@apache.org> on 2018/07/16 11:16:00 UTC

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

Alberto Rinaudo created NETBEANS-1047:
-----------------------------------------

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


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.3#76005)

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