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 |
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 commentedKindly review a new patch
Comment #3
hardik_patel_12 commentedComment #4
hardik_patel_12 commentedComment #5
snehalgaikwad commentedPatch is working fine.
Comment #6
snehalgaikwad 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 commented@catch , ok got your point . Kindly review a new patch.
Comment #11
hardik_patel_12 commentedComment #12
bronk 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.