FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\content_hub_tree\src\Form\MenuContentTreeForm.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
210 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------

| Comment | File | Size | Author |
|---|---|---|---|
| #12 | updated-drupal-call-avoided-using-DI-3294909-12.patch | 3.04 KB | jatingupta40 |
| #7 | Screenshot from 2022-07-12 16-11-46.png | 52.97 KB | jatingupta40 |
| #2 | drupal-call-should-be-avoid-3294909-2.patch | 2.73 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
jatingupta40 commentedI will review this patch.
Comment #4
jatingupta40 commentedThe space is remove which is fine but the cursy brace of line 125 should be shifted to line 124.
Comment #5
jatingupta40 commentedI will resolve it and will provide a final patch.
Comment #6
Harsh panchal commented@JatinGupta40 I will check its working fine plz give me an screenshot
Comment #7
jatingupta40 commentedI am having this error(image uploaded).
Also, Need to add a parameter comment for configFactory.
Comment #8
jatingupta40 commented@HarshPanchal Also, I have made the changes and created the patch for that, not many changes are there. Can I share the patch, so that you can have a look?
Comment #9
jatingupta40 commentedComment #10
jatingupta40 commentedComment #11
jatingupta40 commentedHi, @Harsh panchal
As it has been three days and there is no update on this issue. so, I am assigning it to myself and will provide an updated patch for it.
Thanks
Comment #12
jatingupta40 commentedProviding an updated patch solving the Dependency Injection related issue.
Please review it.
Thanks
Comment #13
jatingupta40 commentedComment #14
atul_ghate commentedHi,
i will review this patch.
Comment #15
jatingupta40 commentedComment #16
atul_ghate commented#12 Patch resloved the above mentioned issue , changing its status to RTBC
Comment #18
oleh.tarasiuk commentedComment #19
oleh.tarasiuk commented