Is it a valid way(PSR-2) to write code with 2 blank lines in a row?
For example:
$a = 1;
$b = 2;
Or there always has to be only one blank line beetween $a and $b?
Yes, this is acceptable by the PSR-2 standard.
The standard indicates:
Blank lines MAY be added to improve readability and to indicate related blocks of code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With