Closed (works as designed)
Project:
Superfish Dropdown Menu
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 May 2011 at 01:45 UTC
Updated:
9 Nov 2011 at 15:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
pillarsdotnet commentedPatch
Comment #2
mehrpadin commentedHey Bob,
I'm not sure what this is for, do you mean that the
array_filterdoes not work?Comment #3
pillarsdotnet commented(looking...)
I missed the array_filter() call; sorry.
(looking some more...)
It's a style change, not a functional change. We may have very different ideas of what good code ought to look like.
I find the following construct ugly:
I like this construct better, even though it is slightly more verbose:
I find this construct especially offensive:
I'd much rather factor out the common condition, even though again, it adds a couple of code lines:
But again, this is a personal style issue that has nothing to do with Drupal coding standards. Your way results in fewer code lines, and may even be more efficient, given PHP's weird optimization behavior.
In the likely event that you disagree with my suggestions, feel free to mark this Closed (works as designed).
It's your project, after all.
Comment #4
mehrpadin commented