markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Confirm (modified) PSR2 coding standard

Open samwilson opened this issue 4 years ago • 3 comments

Is there a phpcs ruleset that should be used for this repo? I'm working on adding footnotes and nearly have a patch ready.

samwilson avatar Sep 16 '21 01:09 samwilson

@samwilson none that I'm aware of. @cebe?

samdark avatar Sep 18 '21 18:09 samdark

I'll try to match whatever's existing, and go with PSR12 where it's not clear.

samwilson avatar Sep 20 '21 01:09 samwilson

Oops, I only just noticed that it says in CONTRIBUTING.md:

I am following a code style that is basically PSR-2 but with TABS indentation (yes, I really do that ;) ). I am not going to nit-pick on all the details about the code style but indentation is a must. The important part is that code is readable. Methods should be documented using phpdoc style.

samwilson avatar Sep 20 '21 08:09 samwilson