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.
Command icon 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

Indrapatil created an issue. See original summary.

indrapatil’s picture

Status: Active » Needs work

indrapatil’s picture

Assigned: indrapatil » Unassigned
Status: Needs work » Needs review
indrapatil’s picture

indrapatil’s picture

Title: Fix the coding standards » Fix the issues reported by phpcs
avpaderno’s picture

Title: Fix the issues reported by phpcs » Fix the warnings/errors reported by PHP_CodeSniffer
Version: 1.0.0-beta1 » 1.0.x-dev
avpaderno’s picture

Status: Needs review » Needs work

abhisekmazumdar made their first commit to this issue’s fork.

abhisekmazumdar’s picture

Status: Needs work » Needs review

@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.

avpaderno’s picture

Issue summary: View changes
avpaderno’s picture

Issue summary: View changes

brianperry made their first commit to this issue’s fork.

brianperry’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.