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 - Request for PSR standards as formatting option
Summary: Request for PSR standards as formatting option
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 3 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-20 19:58 UTC by elimc
Modified: 2013-04-30 10:31 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.