Problem/Motivation
FILE: ..._formatter/src/Plugin/Field/FieldFormatter/CopyMediaEmbedCodeFormatter.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
46 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
55 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
63 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
71 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig copy_formatter/
Remaining tasks
Patch review
| Comment | File | Size | Author |
|---|---|---|---|
| dependency-injection-fixed.patch | 4.73 KB | urvashi_vora |
Comments
Comment #2
BalasaranyaV commentedComment #3
BalasaranyaV commentedComment #4
BalasaranyaV commentedComment #5
urvashi_vora commented@BalasaranyaV, May I please know why you removed the credit? As I deserved that, since I worked on it.
Thanks
Comment #6
BalasaranyaV commentedThanks for your contribution.
Comment #7
BalasaranyaV commentedComment #8
BalasaranyaV commentedThank you @urvashi_vora!