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/decoupled_preview-1.0.0-beta1
shows the following errors/warnings, which should be fixed.
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/decoupled_preview-1.0.0-beta1/decoupled_preview/src/Resource/PreviewResource.php
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheableMetadata.
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/decoupled_preview-1.0.0-beta1/decoupled_preview/src/Controller/DecoupledPreviewController.php
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Access\AccessResult.
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/decoupled_preview-1.0.0-beta1/decoupled_preview/decoupled_preview.module
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\Cache.
Comments
Comment #2
indrapatil commentedComment #4
indrapatil commentedComment #5
indrapatil commentedComment #6
indrapatil commentedComment #7
avpadernoComment #8
avpadernoComment #12
abhisekmazumdar@Indrapatil, as mentioned by @apaderno, your merge request has many unwanted changes. I have created a new MR from the latest development branch and closed the old MR.
The MR is up for review.
Comment #13
avpadernoComment #14
avpadernoComment #17
brianperry