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 234654 - PSR autoformatting
Summary: PSR autoformatting
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 9 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 13:42 UTC by danno_blammo
Modified: 2017-01-04 00:44 UTC (History)
1 user (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 danno_blammo 2013-08-20 13:42:38 UTC
It would be great to have an option for PHP autoformatting according to PSR-1 and PSR-2 guidelines.

http://www.php-fig.org/
Comment 1 Ondrej Brejla 2013-08-20 13:49:37 UTC
PSR-0 and 1 will be handled by Hints (code warnings) in NB 8.0. It's almost impossible to handle that by formatting (because if you affect some public elements you have to use refactoring...). Formatting should be used for PSR-2. At least for some parts.
Comment 2 lathspell 2015-01-06 15:41:04 UTC
Have a look at https://github.com/maniaplanet/netbeans-psr which claims to adjust NetBeans settings to PSR-1 and PSR-2.
Comment 3 cwt137 2015-07-14 15:21:26 UTC
It would be cool if the default formatting for Netbeans could be aligned to the PSR-1 and PSR-2 guidelines. Then there wouldn't be the need for things like https://github.com/bobsta63/netbeans-psr-formatting
Comment 4 cwt137 2017-01-04 00:44:37 UTC
Amy update on this 3.5 year old feature request?