cebe / markdown

A super fast, highly extensible markdown parser for PHP
http://markdown.cebe.cc/
MIT License
997 stars 141 forks source link

Confirm (modified) PSR2 coding standard #181

Open samwilson opened 2 years ago

samwilson commented 2 years ago

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

samdark commented 2 years ago

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

samwilson commented 2 years ago

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

samwilson commented 2 years ago

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.