? Error

User tests: Successful: Unsuccessful:

avatar photodude
photodude
25 May 2015

Best Practices fix: It is generally recommended to explicitly declare the visibility for methods.
Assuming public for method _getUserDisplayedGroups

avatar photodude photodude - open - 25 May 2015
avatar wilsonge
wilsonge - comment - 25 May 2015

This should be protected (the reason I know is because the method starts with an _ which used to indicate it was protected/private before the days of modern code in the CMS)

avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2015
Labels Added: ?
avatar photodude
photodude - comment - 25 May 2015

@wilsonge Thank you. Using protected now. On a related note, should we drop the _ from the method now that it's declared?

avatar wilsonge
wilsonge - comment - 25 May 2015

Just leave it for 4.x - there's a handful of places with the same kind of thing which we should just change en-masse. I'll merge this "as is" - thankyou!

avatar wilsonge wilsonge - close - 25 May 2015
avatar wilsonge wilsonge - reference | ef9d8bd - 25 May 15
avatar wilsonge wilsonge - merge - 25 May 2015
avatar wilsonge wilsonge - change - 25 May 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-05-25 01:12:31
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 May 2015
avatar wilsonge wilsonge - change - 25 May 2015
Milestone Added:
avatar photodude photodude - head_ref_deleted - 25 May 2015

Add a Comment

Login with GitHub to post a comment