FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\pagedesigner_responsive_images\src\PathProcessor\ImageStylePathProcessor.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
28 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\pagedesigner_responsive_images\src\ResponsiveImageStylesTwigExtension.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
51 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
53 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
81 | WARNING | ImageStyle::load calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Drupal-calls-should-be-avoided-3304480-2.patch | 4.08 KB | Harsh panchal |
Issue fork pagedesigner_responsive_images-3304480
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #4
dipesh_goswamiHi Harsh panchal,
I am reviewing your patch.
Thanks
Comment #5
dipesh_goswamiHi Harsh panchal,
Your patch applied cleanly (shown below):
All the issues related to "\Drupal calls should be avoided in classes, use dependency injection instead" are fixed.
So moving it to RTBC.
And creating a MR.
Thanks.
Comment #9
pvbergen commentedComment #11
pvbergen commented