- Issue created by @swatichouhan012
- Status changed to Closed: duplicate
10 months ago 1:31pm 29 January 2024 - 🇮🇳India ighosh
Just checked that this is already fixed. Duplicate Issue 📌 Fix the issues reported by phpcs Fixed
Fix the following coding standards issues and upload the patch or create an MR with fixes.
FILE: /modules/contrib/profitroom/src/Plugin/Field/FieldFormatter/ProfitroomFormatter.php
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------
36 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------
FILE: /modules/contrib/profitroom/src/Plugin/Block/ProfitroomBlock.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
22 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------
FILE: /modules/contrib/profitroom/src/Form/ProfitroomSettingsForm.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
49 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------
Closed: duplicate
Documentation
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Just checked that this is already fixed. Duplicate Issue 📌 Fix the issues reported by phpcs Fixed