? Success

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
5 Jun 2018

Summary of Changes

Improve code style.

  1. Replace:
if (...)
{ 
    return false;
}
else 
{
    // ...
}

by

if (...) 
{
    return false;
}

// ...
  1. Remove lines below $asset->loadByName($name); because it does not set error if asset does not exist.
  2. A few simple changes to improve the legibility of the code.

Testing Instructions

Php units passes.
Code review.

I suggest you do a review by ignoring the white spaces https://github.com/joomla/joomla-cms/pull/20673/files?w=1

Expected result

Works as before.

avatar csthomas csthomas - open - 5 Jun 2018
avatar csthomas csthomas - change - 5 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jun 2018
Category Libraries
avatar csthomas csthomas - change - 5 Jun 2018
The description was changed
avatar csthomas csthomas - edited - 5 Jun 2018
avatar csthomas csthomas - change - 5 Jun 2018
The description was changed
avatar csthomas csthomas - edited - 5 Jun 2018
avatar csthomas csthomas - change - 5 Jun 2018
The description was changed
avatar csthomas csthomas - edited - 5 Jun 2018
avatar csthomas csthomas - change - 6 Jun 2018
Labels Added: ?
avatar atharva20-coder
atharva20-coder - comment - 10 Apr 2021

Screenshot 2021-04-10 143240
Done that please tell anything more ??

avatar laoneo laoneo - change - 25 Mar 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-03-25 16:13:04
Closed_By laoneo
Labels Added: ?
Removed: ? ?
avatar laoneo laoneo - close - 25 Mar 2022

Add a Comment

Login with GitHub to post a comment