GitLab CI reports a PHP_CodeSniffer error which should be fixed.
FILE: ...r-3373142/src/Plugin/WebformHandler/SubmissionSimplenewsWebformHandler.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\webform\Utility\WebformOptionsHelper. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 203ms; Memory: 6MB
Issue fork webform_simplenews_handler-3373142
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 #3
indrapatil commentedComment #4
avpadernoComment #5
avpadernoComment #6
avpadernoComment #8
viren18febs commentedComment #9
rudrakumar188 commentedBy Running
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/webform_simplenews_handler-2.0.1
was able to reproduce error in D10.1 and MR request fixes the error.
Comment #10
a.aaronjake commentedHi @bharath_kondeti,
Applied the changes you committed on MR!3, it was applied not-so successfully, but miraculously, there are no errors reported.
Will not transition this yet so that others will review it too.
Thanks,
Jake
Comment #11
avpadernoThere are no PHP_CodeSniffer errors/warnings reported for MR !3.
Comment #13
avpadernoComment #16
vuil