? ? Success

User tests: Successful: Unsuccessful:

avatar regularlabs
regularlabs
3 Jul 2016

.

avatar regularlabs regularlabs - open - 3 Jul 2016
avatar regularlabs regularlabs - change - 3 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2016
Labels Added: ? ?
avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Jul 2016

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 sovainfo
sovainfo - comment - 3 Jul 2016

Suggest code below instead:

if (isset(self::$assetPermissionsById[$extensionName][$id]))
{
    $collected[] = self::$assetPermissionsById[$extensionName][$id]->rules
}

Consider this a nobrainer, it fixes a rookie mistake referencing data that is unknown to exist.
Should be accepted based on code review!

avatar regularlabs
regularlabs - comment - 3 Jul 2016

I prefer to use ifs for negative exceptions only (as much as possible).

So the returns/continues are inside ifs. And the code you want the thing (function/method/loop) to do is outside (under) the ifs/exceptions.

avatar brianteeman brianteeman - change - 3 Jul 2016
Category Libraries
avatar brianteeman brianteeman - change - 3 Jul 2016
The description was changed
avatar sovainfo
sovainfo - comment - 3 Jul 2016

Noticed that, don't mind it that much, but do consider my code better to read.
The important thing is that this is accepted based on code review.

avatar brianteeman
brianteeman - comment - 3 Sep 2016

Please add more information to your issue. Without test instructions and/or any description we will close this issue within 4 weeks. Thanks.

No reply so closed

avatar brianteeman brianteeman - change - 3 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-03 21:35:59
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Sep 2016

Add a Comment

Login with GitHub to post a comment