PSR-2 VS Codeigniter Framework Style guidelines

488 Views Asked by At

There are contradictions between PSR-2 and Codeigniter Style Guidelines:

Allman style indenting in CI which is discouraged in PSR-2 elseifs on new line in allman

private methods in classes prefixed with underscore in CI and NOT in PSR-2.

TRUE, FALSE, NULL caps in Codeigniter and lowercase in PSR-2.

Tab in Codeigniter VS 4 spaces for indenting in PSR

Some more occurences like this but you get the point.

I am thinking of favoring PSR-2 over Codeigniter Style guidelines.

Thoughts?

0

There are 0 best solutions below