-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
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
Replace "else if" smarty conditions by "elseif" as officially recommanded #604
Comments
Hi @Klemart3D Thank you for your report. Currently you seems to show a feature to add in Prestashop instead of a real issue, If you're agree with that, I can change this issue into a discussion to discuss with the tech-council and product-council Waiting for your feedback |
Hi @AureRita, It's not a feature, it's a refactoring issue to have a more clean code, it's an issue for developers like me because some IDE like phpStorm showing it as an error (because of wrong smarty syntax used): It can take less than one minute to fix that for team working on native PrestaShop themes, but if you prefer, I can open issue into hummingbird repository? |
Let's transfer into hummingbird repo ! If you are willing to contribute, we would be happy to review your work 🤗 |
Hi @MatShir , thank you.
|
Fixed |
Prerequisites
Describe the bug and add attachments
As recommended by Smarty official documentation an "else-if" condition must be write
{elseif}
(without space betweenelse
andif
).But currently, an
else if
syntax (with a space betweenelse
andif
) is currently used:https://github.com/search?q=repo%3APrestaShop%2Fclassic-theme+%22%7Belse+if%22&type=code
https://github.com/search?q=repo%3APrestaShop%2Fhummingbird%20%22%7Belse%20if%22&type=code
In comparison,
elseif
syntax (without space betweenelse
andif
) is currently used:https://github.com/search?q=repo%3APrestaShop%2Fclassic-theme+%7Belseif&type=code
https://github.com/search?q=repo%3APrestaShop%2Fhummingbird+%22%7Belseif%22&type=code
Not checked into every Smarty template files (modules, other themes…)
Expected behavior
A uniform smarty else-if syntax following official recommendation everywhere (in each smarty template ".tpl" files of the whole project).
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.x, 8.x
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
No response
The text was updated successfully, but these errors were encountered: