Use statements should be sorted alphabetically.

Created on 21 July 2023, 12 months ago
Updated 31 July 2023, 11 months ago

Problem/Motivation

I'm getting the use statements sorting error for multiple files in the module.

Steps to reproduce


Run the command:

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/filter_external_link_icon/


Proposed resolution


FILE: ./filter_external_link_icon/src/Plugin/Filter/FilterExternalLinkIcon.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 11 | ERROR | [x] Use statements should be sorted alphabetically. The first
    |       |     wrong one is
    |       |     Symfony\Component\DependencyInjection\ContainerInterface.
-----------------------------------------------------------------------------


📌 Task
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇳India swatichouhan012

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