This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
i try to set up code formatting according to fig-psr2 standards (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) but despite netbeans is doing pretty good job with formatting with lot of options, i wasnt able to set up blank lines between functions/methods. there is an example on github which i tried: <?php namespace Vendor\Package; use FooInterface; use BarClass as Bar; use OtherVendor\OtherPackage\BazClass; class Foo extends Bar implements FooInterface { public function sampleFunction($a, $b = null) { if ($a === $b) { bar(); } elseif ($a > $b) { $foo->bar($arg1); } else { BazClass::bar($arg2, $arg3); } } final public static function bar() { // method body } } there are only configuration settings that allow me to insert blank lines: * before function * after function but i need kind of "between functions" so i dont end up with blank line on either first or last line of class. eg: class Foo extends Bar implements FooInterface { public function sampleFunction($a, $b = null) { ... or class Foo extends Bar implements FooInterface { final public static function bar() { // method body } } i tried many combinations that work in several cases (if attributes/fields are present and so on) but none covers the psr2 with this basic situation.
Please solve this issue as Coding standard needs to use blank line between function, but not before or after the function.
Sorry, not a P1 defect at all. Common enhancement.