coding-standards
coding-standards copied to clipboard
Code Style for Templates
Hi,
is there a way to solve the errors that thrown by template files?
i.e. https://github.com/shopfe/joomla-cms/blob/staging/plugins/twofactorauth/totp/tmpl/form.php
Because of the mixed HTML/PHP in layout files, many of the automated rules won't check those files properly.
On Thursday, March 20, 2014, shopfe [email protected] wrote:
Hi,
is there a way to solve the errors that thrown by template files?
i.e.
https://github.com/shopfe/joomla-cms/blob/staging/plugins/twofactorauth/totp/tmpl/form.php
Reply to this email directly or view it on GitHubhttps://github.com/joomla/coding-standards/issues/67 .
We need to document how not to Sniff /tmpl/ or /layout/ files
related https://github.com/joomla-projects/jcms-codestyle and: https://github.com/joomla-projects/com_localise/blob/develop/.travis/phpcs.php#L30
:+1:
how not to Sniff /tmpl/ or /layout/ files will be handled much better with the upcoming PHPCS 2.7.x release of the standards see this detail in the phpcs-2 branch