PHP CodeSniffer file or updated link?
Posted: Thu Oct 21, 2021 1:33 am
I've created a couple of extensions during my most recent project and would like to contribute them to the project (total/gratuity and a working version of the Square payment extension).
Does anyone have an updated link to the OpenCart PHP CodeSniffer file, or a copy of it?
Broken link: https://github.com/opencart/opencart/tr ... s/OpenCart
Also, any clarification on the tabs and spacing for Twig and JavaScript files? The OpenCart coding standard says 2 space tabs for Twig and tabs for JavaScript, but many of the 3.0.x Twig files contain quite a bit of JavaScript; how should I reconcile this contradiction in standards and avoid extended back-and-forth or rejection of my code?
Thanks in advance for your time.
Does anyone have an updated link to the OpenCart PHP CodeSniffer file, or a copy of it?
Broken link: https://github.com/opencart/opencart/tr ... s/OpenCart
Also, any clarification on the tabs and spacing for Twig and JavaScript files? The OpenCart coding standard says 2 space tabs for Twig and tabs for JavaScript, but many of the 3.0.x Twig files contain quite a bit of JavaScript; how should I reconcile this contradiction in standards and avoid extended back-and-forth or rejection of my code?
Thanks in advance for your time.