$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml field_zip_file/
FILE: C:\Users\SI-001\Downloads\field_zip_file\src\Plugin\Field\FieldFormatter\ZipFileBase.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
67 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-calls-should-be-avoided-3298740-2.patch | 1.89 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
sourabhjainI will review this patch.
Comment #4
sourabhjainI have reviewed the patch #2 and it is working fine and the error mentioned in description has been resolved.
There are some other errors but this has been covered in https://www.drupal.org/project/field_zip_file/issues/3298739
Moving to RTBC.
Comment #6
vhin0210 commentedComment #7
vhin0210 commentedComment #8
sourabhjainComment #9
sourabhjain