- 🇮🇳India riddhi.addweb
I tried to apply the patch in 9.5x and it had applied cleanly, but after applying the patch the error is not resolved. Let me know if I can test this in any different version.
FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/src/Controller/ViewApiResponseController.php -------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES -------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json. 18 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 23 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead 28 | WARNING | [ ] Unused variable $enable_status. 45 | WARNING | [ ] Unused variable $username. -------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/src/ApiTypeListBuilder.php ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\Entity\ConfigEntityListBuilder. ------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/src/Form/ApiTypeDeleteForm.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/src/Form/ApiTypeForm.php --------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES --------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityForm. 83 | WARNING | [ ] #options values usually have to run through t() for translation 198 | WARNING | [ ] Vocabulary::loadMultiple calls should be avoided in classes, use dependency injection instead --------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/src/ApiCall.php ---------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 16 | WARNING | Unused variable $code. ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/README.txt ----------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------- 29 | WARNING | Line exceeds 80 characters; contains 87 characters 32 | WARNING | Line exceeds 80 characters; contains 104 characters ----------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/contrib/view_api_response/view_api_response.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically -------------------------------------------------------------------------------------------------------------