No Code Attached Yet
avatar Scrabble96
Scrabble96
2 Jan 2024

Is your feature request related to a problem? Please describe.

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.

Describe the solution you'd like

Could the team in charge of this please agree on a house style for this?
Thanks.

Additional context

avatar Scrabble96 Scrabble96 - open - 2 Jan 2024
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Jan 2024
avatar HLeithner HLeithner - change - 2 Jan 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-01-02 12:12:49
Closed_By HLeithner
avatar HLeithner HLeithner - close - 2 Jan 2024
avatar HLeithner
HLeithner - comment - 2 Jan 2024

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.

avatar Scrabble96
Scrabble96 - comment - 3 Jan 2024

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.

avatar HLeithner
HLeithner - comment - 3 Jan 2024

yes that's true and shouldn't happen just for no reason

Add a Comment

Login with GitHub to post a comment