Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1047

PHP spaces when using Source / Organize Members

    XMLWordPrintableJSON

Details

    Description

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

      <?php
      
      $tb = FALSE;
      if ($tb OR ! $tb)
        ;
      if ($tb OR ( !$tb))
        ;
      

       

      this is how it is formatted when using "||":

      <?php
      
      $tb = FALSE;
      if ($tb || !$tb)
        ;
      if ($tb || (!$tb))
        ;
      

       

      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.

      Attachments

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              sycolth Alberto Rinaudo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h