coding-standards icon indicating copy to clipboard operation
coding-standards copied to clipboard

Code Style for Templates

Open nusphere opened this issue 10 years ago • 4 comments

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

nusphere avatar Mar 20 '14 18:03 nusphere

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 .

mbabker avatar Mar 20 '14 19:03 mbabker

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

javigomez avatar Oct 06 '14 11:10 javigomez

:+1:

okonomiyaki3000 avatar Mar 11 '15 02:03 okonomiyaki3000

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

photodude avatar Jan 08 '17 16:01 photodude