- Issue created by @chancenyasulu
- First commit to issue fork.
- Status changed to Needs review
11 months ago 9:32am 20 December 2023 - ๐ฎ๐ณIndia Neha-Verma
Fixed some PHPCS issues in MR !2, still there are \Drupal calls error that needs to be fixed.
FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Service/QRImage.php ---------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------- 420 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ---------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldEventWidget.php ------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------- 115 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 175 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 190 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldWifiWidget.php ------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------ 160 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------ FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldPhoneWidget.php ------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------- 142 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldEmailWidget.php ------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------- 167 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldvCardWidget.php ------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------- 211 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldSmsWidget.php ----------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------- 148 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ----------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldUrlWidget.php ----------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------- 142 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ----------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldMeCardWidget.php -------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------- 204 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead -------------------------------------------------------------------------------------------------------- FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Field/FieldWidget/QRFieldTextWidget.php ------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------ 141 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------ FILE: /opt/lampp/htdocs/camp/web/modules/contrib/QR/src/Plugin/Block/QREventBlock.php ---------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------- 100 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ----------------------------------------------------------------------------------------------
- Assigned to realsp
- Status changed to Needs work
10 months ago 10:59am 12 January 2024 - Issue was unassigned.
- Status changed to Needs review
10 months ago 3:33pm 12 January 2024 - ๐ฎ๐ณIndia realsp
I've fixed the remaining phpcs issues mentioned in #4, Please review the MR.
Thank you. - Status changed to RTBC
10 months ago 3:34am 15 January 2024 - ๐ต๐ญPhilippines paraderojether
Hi realsp,
I reviewed MR! 2, applied against QR Code Fields 1.1.0 with Drupal core version 10.1.7, and confirmed it fixes the issue reported by phpcs.
I added screenshots for reference.
Thank you. - ๐ณ๐ตNepal sujan shrestha Nepal๐ณ๐ต, Kathmandu
Thank you for reviewing MR! 2 and confirming the fix for the reported issue with phpcs. I'll review the fixes promptly.