User tests: Successful: Unsuccessful:
Code review.
Diff makes this change look worse than it really is haha
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
you can just add ?w=1 on the end of the URL to ignore whitespace ;)
So the only thing that kinda concerns me is when Nic rewrote this code (#5499) he clearly seemed to think there was some specific use case here because he commented it all up. I mean it might well just be an oversight but is it possible to have an empty menu element tag that will be an empty XMLElement or something stupid and non-strict type checks will treat them differently...
Before my modified code is
// Just do not create the menu if $menuElement not exist
if (!$menuElement)
{
return true;
}
Therefore there is no way for the modified removed code to run... even phpStorm says so :)
Right. If there were typesafe comparisons used, then a null could make a difference, but as it is now, I think the PR here is right.
Before my modified code is
I understand - but that line was added in that linked PR. That's the only reason I'm hesitating a bit. You're probably right. Just trying to figure out any weird edge cases in my head
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-25 14:37:29 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
?
|
fiiine. i conceed :) thanks guys!
I have tested this item✅ successfully on 068d79d
With a good merge tool like e.g. Beyond Compare the diff looks much better than on GitHub.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34172.