I am currently going through updated file changes. I don't understand the difference between the following layouts (for example, in :
html/com_content/article/default.php lines 93-97
<?php
if [code here]
endif;
?>
and 98-100
<?php if [code here]
endif; ?>
and similar inconsistencies further on in the file and in other files.
Could the team in charge of this please agree on a house style for this?
Thanks.
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-01-02 12:12:49 |
Closed_By | ⇒ | HLeithner |
I realise it's technically the same, but it just means that because someone, when changing some other code for a PR, has also changed (for example):
<?php if
to
<?php
if
it's yet another few keystrokes and time required to update the files that would otherwise flag up as a 'changed' file every time if it wasn't updated, and it has to be done manually for every site where there is an override for those files.
yes that's true and shouldn't happen just for no reason
technical it's the same, since we don't have a code style für template files, choose one and be consistent. There are cases where it looks better to use the other form, then it's ok as long as we don't have a definitive codestyle to use.