Problem/Motivation
Getting following error.
FILE: /var/www/html/modules/contrib/webform_mass_email/src/Plugin/QueueWorker/WebformMassEmailQueue.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
13 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
Time: 1.5 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/webform_mass_email/
Proposed resolution
Above error need to be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3339444-2.patch | 983 bytes | samitk |
Issue fork webform_mass_email-3339444
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
samitk commentedAbove error are fixed.
Comment #4
charchil khandelwal commentedI will review this.
Comment #6
charchil khandelwal commentedPatch #2 tested and applied successfully, all the errors and warnings are fixed.
Created MR for easy preview and commenting.
RTBC +1.
Thanks.
Comment #7
cleavinjosh commentedHi @Charchil Khandelwal,
I applied MR!1, it was applied smoothly and fixed all phpcs issues
Thank you.
Comment #9
kybermanThank you very much! This is now merged to dev, and the new release is on the way.