Problem/Motivation
Getting following error/warnings
FILE: /var/www/html/modules/contrib/domain_301_redirect/src/Domain301RedirectManager.php
----------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
80 | ERROR | [x] Expected newline after closing brace
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/domain_301_redirect/src/EventSubscriber/DomainRedirectEventSubscriber.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
22 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
102 | ERROR | [x] Additional blank lines found at end of doc comment
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
Time: 2.4 secs; Memory: 6MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/domain_301_redirect/
Proposed resolution
Above error/warnings need to be fixed