Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff.txt | 452 bytes | pratik_kamble |
#17 | 3105977-17.patch | 775 bytes | pratik_kamble |
#14 | interdiff.txt | 637 bytes | pratik_kamble |
#14 | 3105977-14.patch | 1.44 KB | pratik_kamble |
#8 | interdiff-3105977-5-8.txt | 140 bytes | Hardik_Patel_12 |
Comments
Comment #2
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedKindly review a new patch
Comment #3
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #4
longwaveExtra space after "as"
I realise this is unused but the code is easier to read with it in place.
Comment #5
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedKindly reveiw a new patch.
@longwave
, yes you are right but i thought it's good idea
to remove variable if it is not used.
Comment #6
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #8
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedKindly review new patch , bymistakly added space near php tag.
Comment #9
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #10
pandaski CreditAttribution: pandaski commentedLooks good here since $block2 never being used
Comment #11
catchPer other issues specifying the key helps with readability and people often do this intentionally even if the key isn't actually used. If we're going to make this a coding-style rule we should open a proper coding standards issue to do so.
Comment #12
Rangaswini CreditAttribution: Rangaswini at QED42 for Drupal India Association commentedComment #13
pratik_kambleComment #14
pratik_kambleRerolled patch to keep the key in foreach.
Comment #15
pratik_kambleComment #16
longwave$id adds context here, I think it is more readable with it in place.
edit: I already said that in #4 :)
Comment #17
pratik_kamble@longwave updated the Patch to keep $id.
Comment #18
pratik_kambleComment #19
longwaveThanks, the one remaining one is fine.
Comment #21
catchCommitted 228df49 and pushed to 9.0.x. Thanks!