Closed stklcode closed 2 years ago
But won't the add_action
one-liners be marked as issues by PHPCS and/or auto-fixed to multi-line by PHPCBF?
At least not with our current ruleset (which is simply <rule ref="WordPress"/>
) - obviously, "quality" CI is passing.
With warnings enabled there are 27 remaining issues in class-cachify.php after auto-fixing, but add_action
indentation is none of them.
The initialization routines got pretty long and unhandy to read with a mixture of
add_*
blocks and conditionals.Re-format the code to use one-line notations which do not exceed 96 characters (effectively 102 with tab-size 4) each and compress the class by a total of ~164~ 176 lines.