? ? Success

User tests: Successful: Unsuccessful:

avatar malukenho
malukenho
16 Dec 2015

.

avatar malukenho malukenho - open - 16 Dec 2015
avatar malukenho malukenho - change - 16 Dec 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Dec 2015
Status Pending New
Labels Added: ? ?
avatar joomla-cms-bot
joomla-cms-bot - comment - 16 Dec 2015

Please add more information to your issue. Without test instructions and/or any description we will close this issue within 4 weeks. Thanks.
This is an automated message from the J!Tracker Application.

avatar joomla-cms-bot joomla-cms-bot - change - 16 Dec 2015
Status New Pending
avatar photodude
photodude - comment - 19 Dec 2015

Why is this necessary?
Generally speaking, Due to the fact that switch does no comparison, it is slightly faster.
If the variable part is a function call (as is in this case) then switch is better since there is only one call to the function.

Maintainability down the road, what if there is more cases than just HTML (XML, JSON, RAW, etc). then using a switch seems to make even more sense.

avatar sovainfo
sovainfo - comment - 19 Dec 2015

Approve of the change for this situation. Consider a simple if much easier to read than the current switch.
As soon as other cases are introduced it should go back to a switch statement.

avatar brianteeman brianteeman - change - 29 Jan 2016
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-01-29 18:09:55
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 29 Jan 2016

Closed as no test instructions and/or any description were provided as requested.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8701.

avatar brianteeman brianteeman - close - 29 Jan 2016
avatar brianteeman brianteeman - close - 29 Jan 2016
avatar malukenho malukenho - head_ref_deleted - 29 Jan 2016

Add a Comment

Login with GitHub to post a comment