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

Missing spaces in anonymous function declaration

    XMLWordPrintableJSON

Details

    Description

      Formatting arguments of anonymous function is not consistent with formatting of regular functions.

      1. In PHP project properties set Formatting - Use project specific options.
      2. Language: PHP, Category: Spaces
      3. Check mark Within Parentheses - Method / Function Declaration
      4. Format code

      Actual result:

      function fn( $a ) {
          return $a;
      }
      
      $func = function ($a) use ($x) {
          return $a + $x;
      };
      

      Expeceted result:

      function fn( $a ) {
          return $a;
      }
      
      $func = function ( $a ) use ( $x ) {
          return $a + $x;
      };
      

      Attachments

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              Kacer Tomáš Procházka
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m