? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
11 Oct 2020

Summary of Changes

Cleanup of switch statements to remove code smell & adhere to code style guidelines - mostly reported by inspection in phpStorm

Removes spaces before :

Removes redundant cases that are already caught by default, you don't need case statements on the same block as the default.

default commonly found as last block, not first, refactored one place to make it last

Testing Instructions

Code review

avatar PhilETaylor PhilETaylor - open - 11 Oct 2020
avatar PhilETaylor PhilETaylor - change - 11 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Oct 2020
Category Administration com_finder com_installer Front End com_ajax com_contact com_content com_tags com_users Modules Plugins
avatar PhilETaylor PhilETaylor - change - 11 Oct 2020
Title
[4] Cleanup of switch statements to remove code smell
[4] Cleanup of switch statements to remove code smell & adhere to code style guidelines
avatar PhilETaylor PhilETaylor - edited - 11 Oct 2020
avatar PhilETaylor PhilETaylor - change - 11 Oct 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 11 Oct 2020
avatar ChristineWk ChristineWk - test_item - 13 Oct 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 13 Oct 2020

I have tested this item successfully on ecb33bc


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

avatar PhilETaylor PhilETaylor - change - 13 Oct 2020
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 13 Oct 2020

Committed suggestions

avatar ChristineWk ChristineWk - test_item - 13 Oct 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 13 Oct 2020

I have tested this item successfully on 1ab1324


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

avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2020
Category Administration com_finder com_installer Front End com_ajax com_contact com_content com_tags com_users Modules Plugins Repository Administration com_associations com_contact com_content com_fields com_finder com_installer com_joomlaupdate com_login com_menus com_templates com_users Language & Strings Templates (admin) NPM Change
avatar PhilETaylor
PhilETaylor - comment - 15 Oct 2020

well I screwed this PR somehow :(

avatar PhilETaylor PhilETaylor - change - 15 Oct 2020
Labels Added: ? NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2020
Category Administration com_finder com_installer com_contact com_content com_users Repository com_associations com_fields com_joomlaupdate com_login com_menus com_templates Language & Strings Templates (admin) NPM Change Administration com_finder com_installer Front End com_ajax com_contact com_content com_tags com_users Modules Plugins
avatar PhilETaylor
PhilETaylor - comment - 15 Oct 2020

Force pushing to fix rebase issue.. one moment

avatar PhilETaylor PhilETaylor - change - 15 Oct 2020
Labels Removed: ? NPM Resource Changed
avatar PhilETaylor
PhilETaylor - comment - 15 Oct 2020

ok merge complete - no conflicts this time - ready for testing again

avatar rdeutz rdeutz - change - 16 Oct 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-10-16 11:04:00
Closed_By rdeutz
avatar rdeutz rdeutz - close - 16 Oct 2020
avatar rdeutz rdeutz - merge - 16 Oct 2020

Add a Comment

Login with GitHub to post a comment