4 ms·
> I really dislike some of the PHP PSR formatting guidelines What are they? I have found that PHP guidelines are surprisingly good.
by chj 10y ago
> I really dislike some of the PHP PSR formatting guidelines
What are they? I have found that PHP guidelines are surprisingly good.
- vizeroth 10y agoPSR-2: http://www.php-fig.org/psr/psr-2/ http://www.php-fig.org/psr/psr-2/ Of course, these have little to do with core PHP, but PSR-1, PSR-0/4, and large portions of PSR-2 have been widely adopted within the PHP development community. The most-debated portion of PSR-2 is, of course, the use of 4 spaces for indentation (no tabs). PSR-12 aims to bring the guidelines up to date with the latest features in PHP 7, but I've mostly lost track of things in PHP-land since moving to a new job and burying myself in XSL (and occasionally C#).
- voycey 10y agoBrackets on new lines specifically get my goat, I think it's unnecessary most of the time, there are a few other things that piss me off as well but I guess it's nice to have a standard and I am just one dude who is used to doing it his way :) I have code tidying stuff that happens on commit so I still just do it my way and then let automation handle the pedantry!