PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
28 Mar 2023

Pull Request for Issue # .

Summary of Changes

This PR introduces local variables $app and $db to replace the repeating calls $this->getApplication() and $this->getDatabase(). phpstorm has a built-in function called Refactor -> Introduce Variable allows us to do this quickly. We do not have a clear rule for this, but I think doing that would make code more cleaner and a little faster.

Testing Instructions

  1. Use Joomla 4.4
  2. Apply patch
  3. Try to login, check on Remember Me checkbox, make sure it is working OK
  4. Code review would be great, too.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works with cleaner code and a little faster.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2023
Category Front End Plugins
avatar joomdonation joomdonation - open - 28 Mar 2023
avatar joomdonation joomdonation - change - 28 Mar 2023
Status New Pending
8b21040 28 Mar 2023 avatar joomdonation CS
avatar joomdonation joomdonation - change - 28 Mar 2023
Labels Added: PR-4.4-dev
avatar laoneo
laoneo - comment - 28 Mar 2023

I'm not sure if there should be a blank line before the if blocks. Beside that it looks good! Thanks.

avatar laoneo laoneo - change - 29 Mar 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-03-29 06:14:23
Closed_By laoneo
avatar laoneo laoneo - close - 29 Mar 2023
avatar laoneo laoneo - merge - 29 Mar 2023
avatar laoneo
laoneo - comment - 29 Mar 2023

Thanks!

Add a Comment

Login with GitHub to post a comment