? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
4 Dec 2014

I stumbled over this one during a code review. If this introduces any change, then we have bigger problems...

We are first checking if $this->type equals false. If that is the case, we create a new JUcmType object and get the type by alias. Then we do the same again, except that we assign the typeAlias. If $this->type does not equal false, we again assign the typeAlias. Long story short, double the code, always assigning $typeAlias => we can remove that part.

avatar Hackwar Hackwar - open - 4 Dec 2014
avatar jissues-bot jissues-bot - change - 4 Dec 2014
Labels Added: ?
avatar Bakual Bakual - close - 4 Dec 2014
avatar Bakual Bakual - change - 4 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-04 09:59:26
avatar Bakual
Bakual - comment - 4 Dec 2014

Merged from review

avatar mbabker
mbabker - comment - 4 Dec 2014

It looks like $typeAlias isn't even used in the method.

avatar Bakual
Bakual - comment - 4 Dec 2014

Indeed. Even $this->type isn't used as it looks.

Add a Comment

Login with GitHub to post a comment