-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CS] Fixing JImage constants #14402
[CS] Fixing JImage constants #14402
Conversation
From the looks of things, there isn't actually anything gained by calling |
What about scenario when I'd extend the Any code that would call |
The method calls are fine, it's the constants that I don't think this works on. |
Looks like you are right. |
I've kept |
That one's good, it's not private. Looks fine to me. |
Issue can be closed since the modified class is deprecated. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14402. |
Thanks, @jonasgonka |
Summary of Changes
static
instead ofself
in methodsThis is a coding style change and doesn't have any effects on functionality.
Only change would if one would extend the
JImage
class: developer doesn't have to define JImage constants again in extended class.Testing Instructions
The only place where JImage is used in J! core is template editing feature:
Expected result
Unit suites should pass
Manual tests pass
Actual result
same as expected result
Documentation Changes Required
No changes required