Fix 'use' order (new phpcs rule)

Created on 16 November 2023, 7 months ago

Problem/Motivation

FILE: /Users/a./Documents/Internal/Projects/d10contrib/web/modules/contrib/module_filter/module_filter.module
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
----------------------------------------------------------------------------------------------------------------------

Time: 165ms; Memory: 12MB

Steps to reproduce

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml "module_path"

Proposed resolution

Resolve the PHPCS issues.

📌 Task
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

🇮🇳India Shyam_Bhatt Gujarat

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024