- 🇮🇳India riddhi.addweb
I applied the patch and it has been applied cleanly, but errors are still not resolved.
FILE: /var/www/html/web/Drupal_9.5/web/modules/custom/content_type_dependency-3222510/content_type_dependency.module ----------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. 44 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. 59 | ERROR | [ ] Missing parameter type 80 | ERROR | [ ] Missing parameter type ----------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/custom/content_type_dependency-3222510/src/Controller/ContentTypeDependencyController.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 8 WARNINGS AFFECTING 10 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 30 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 35 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 52 | 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 104 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 105 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('token') instead 107 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 122 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 123 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('token') instead 125 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/Drupal_9.5/web/modules/custom/content_type_dependency-3222510/src/Form/ContentTypeDependencyDeleteConfirm.php ------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------- 7 | 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/custom/content_type_dependency-3222510/src/Form/ContentTypeDependencyModify.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 19 ERRORS AND 6 WARNINGS AFFECTING 18 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 29 | WARNING | Role::loadMultiple calls should be avoided in classes, use dependency injection instead 40 | WARNING | NodeType::loadMultiple calls should be avoided in classes, use dependency injection instead 49 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 50 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 53 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 64 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 64 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 78 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 78 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 84 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 84 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 96 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 96 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 96 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. 102 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 102 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 108 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 108 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 138 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 140 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 145 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 231 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 232 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 240 | ERROR | The $_GET super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->query->get('cd_id') instead 246 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead -------------------------------------------------------------------------------------------------------------------------------------------------------------------------