MyIntervals / emogrifier

Converts CSS styles into inline style attributes in your HTML code.
https://www.myintervals.com/emogrifier.php
MIT License
905 stars 153 forks source link

[TASK] Update our coding standard #1264

Closed oliverklee closed 2 months ago

oliverklee commented 3 months ago

Switch to the PER2 coding standard and reduce the number of custom rules.

This basically aligns our code style with that used by the PHP-CSS-Parser project, which is very close to the PER-2 coding standard.

Fixes #1262

oliverklee commented 2 months ago

It looks like I'll need to tweak the ruleset a bit to retain compatibility with PHP 7.3 and 7.4.

oliverklee commented 2 months ago

@JakeQZ friendly ping :-)

JakeQZ commented 2 months ago

@JakeQZ friendly ping :-)

Sorry, I missed this amongst the other 464 emails in the last 5 days. Not even exaggerating - I just counted them ;)

oliverklee commented 2 months ago

@JakeQZ Thank your for doing the painstaking work of going through this with a fine-grained comb! :pray: I've now updated the ruleset accordingly.