Sort use statements alphabetically - phpcs code-standard violation

Created on 19 December 2023, 6 months ago
Updated 17 April 2024, 2 months ago

Problem/Motivation

phpcs reports the following error

FILE: ...ilter/web/modules/custom/iframe_title_filter/tests/src/Unit/FilterTest.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 7 | ERROR | [x] Use statements should be sorted alphabetically. The first
   |       |     wrong one is Drupal\filter\Plugin\Filter\FilterHtml.
   |       |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
--------------------------------------------------------------------------------

Proposed resolution

Sort the use statements alphabetically.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States daddison

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024