Psr-2 is more than one empty string

Is a valid way (PSR-2) to write code with two blank lines per line?

For instance:

$a = 1;


$b = 2;

Or should there always be only one blank line between $ a and $ b ?

+4
source share
1 answer

Yes, this is acceptable by the PSR-2 standard.

The standard indicates:

Blank lines MAY be added to improve readability and indicate appropriate blocks of code.

+5
source

All Articles