? Success

User tests: Successful: Unsuccessful:

avatar nonumber
nonumber
21 Jul 2015

Before

        // Find the item
        if ( $i === null) {
            // Default, return the last item
            $item = end($array);
        }
        else if (!array_key_exists($i, $array))
        {
            // If $i has been specified but does not exist, return false
            return false;
        }
        else
        {
            $item   = $array[$i];
        }

        return $item;

After

        if ($i === null)
        {
            // Default, return the last item
            return end($array);
        }

        if (!array_key_exists($i, $array))
        {
            // If $i has been specified but does not exist, return false
            return false;
        }

        // Return the specified item
        return $array[$i];
avatar nonumber nonumber - open - 21 Jul 2015
avatar nonumber nonumber - change - 21 Jul 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2015
Labels Added: ?
avatar nonumber
nonumber - comment - 21 Jul 2015

Closing, as this concerns AKeeba file

avatar nonumber nonumber - change - 21 Jul 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-07-21 21:35:02
Closed_By nonumber
avatar nonumber nonumber - close - 21 Jul 2015
avatar nonumber nonumber - close - 21 Jul 2015
avatar nonumber nonumber - head_ref_deleted - 21 Jul 2015
avatar nonumber nonumber - change - 22 Jul 2015
Title
[codestyle] Removed redundant elses
[codestyle] Removed redundant elses (com_joomlaupdate)

Add a Comment

Login with GitHub to post a comment