We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there currently a way to avoid errors when using a inline php syntax? Like this:
<?php if ($condition == true) : ?> <p>Yes</p> <?php endif; ?>
The text was updated successfully, but these errors were encountered:
Change the InlineControlStructureSniff to allow it. Generally the only place it's allowed though is layout files. These files are exempted in the CMS (see https://github.com/joomla/joomla-cms/blob/staging/build/phpcs/Joomla/ruleset.xml#L138), so if you're using this ruleset in a project you'd need to tweak the ruleset a bit.
Sorry, something went wrong.
Strange enough I don't get the error that is generated in this file (Inline control structures are not allowed). When taking this file for example https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/form/tmpl/edit.php#L61 codesniffer says: Expected "if (...)\n"; found "if (...) "
Expected "if (...)\n"; found "if (...) "
That error message is coming from the ControlSignatureSniff.
No branches or pull requests
Is there currently a way to avoid errors when using a inline php syntax?
Like this:
The text was updated successfully, but these errors were encountered: