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.

Bug 225114

Summary: Request for PSR standards as formatting option
Product: php Reporter: elimc
Component: Formatting & IndentationAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: elimc, rdoursenaud
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description elimc 2013-01-20 19:58:33 UTC
I would like to request that a future version of NetBeans have the ability to convert existing code to the PSR standard. There is currently a .phar file that you can dl to your computer to convert code to be more PSR friendly. You can find it here: http://cs.sensiolabs.org/

Vim and Sublime Text 2 are already using it as a plugin.

Additionally, I would love to have the option to use PSR styles natively in NetBeans. For example, when I type "fnc" and press tab, it creates an empty function block:

function functionname() {

}

But the PSR standard calls for parenthesis in methods to be on their own lines.

I suspect that the PSR standard will only become more popular over time, and it may be a good idea to implement it now.