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.
Unused variable are as follows:
In src/Plugin/views/field/FieldPluginBase.php
. Unused variable $tokens
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-3105984-6-10.txt | 2.23 KB | Hardik_Patel_12 |
#10 | 3105984-10.patch | 588 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
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #5
snehalgaikwad CreditAttribution: snehalgaikwad at QED42 commentedPatch is working fine.
Comment #6
snehalgaikwad CreditAttribution: snehalgaikwad at QED42 commentedFound one extra space, here adding a new patch after removing it.
Comment #7
naresh_bavaskarComment #8
naresh_bavaskar#6 patch applied successfully and works fine.
Note: Some coding standards need to be fixed in the above files but as the main purpose of this issue is fixed.
Comment #9
catchI personally prefer specifying the keys in foreach loops, even if they're not used - it can help with readability and documentation. So not sure we should do this.
Same here.
Comment #10
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commented@catch , ok got your point . Kindly review a new patch.
Comment #11
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #12
bronk CreditAttribution: bronk at VMLY&R commentedAdditional patch in #10 also works. #9 is some subjectivity that we shouldn't inject into this issue as that is not a current coding standard. Whether it is preferred or not, I don't think it should hold up this fix.
Comment #15
catchCommitted 140b0a6 and pushed to 9.0.x. Thanks!
Might be worth a separate coding standards issue to discuss the foreach() stuff.