- Issue created by @priti197
- Merge request !2Issue #3494943: Use dependency injection to fix PHPCS warnings. → (Open) created by Unnamed author
Fix warnings reported by PHPCS to use dependency injection.
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /home/ide/project/docroot/modules/contrib/media_entity_file_redirect
FILE: /modules/contrib/media_entity_file_redirect/src/Controller/MediaEntityFileRedirectController.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
68 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
69 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------
Active
1.1
Code