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

PSR.2 formatting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Formatting is not following PSR-2 regarding curly braces on function declarations,  please see https://www.php-fig.org/psr/psr-2/#44-method-arguments

       

      class ClassName {
      
        public function aVeryLongMethodName(
         ClassTypeHint $arg1,
         &$arg2,
         array $arg3 = []) { // Should move the parenthesize and curly brace to the next line
       }
      
        public function myMethod() { // Only the curly brace should be on next line
        }
      
      }
      

       

      This is tested on Build incubator-netbeans-release-205-on-20180202.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Cruiser Bo Andersen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: