Netbeans for PHP settings that allows to be compliant with PSR-1/PSR-2.
Tool
> Options
> Import
To automatically adjust your line ending to LF
, you have to install the plugin Change line endings on Save. The configuration is included in the repo. Be careful, the configuration is global.