Fix phpcs issues in v3

Created on 10 September 2025, 23 days ago

Problem/Motivation

phpcs currently says,

FILE: web/modules/custom/jsonapi_image_styles/jsonapi_image_styles.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is Drupal\Core\Entity\EntityTypeInterface.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...dules/custom/jsonapi_image_styles/src/Form/JsonApiImageStylesAdminForm.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
24 | ERROR | [ ] Parameter $configFactory is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
24 | ERROR | [ ] Parameter $typedConfigManager is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
27 | ERROR | [ ] Doc comment for parameter $config_factory does not match
| | actual variable name $entity_type_manager
| | (Drupal.Commenting.FunctionComment.ParamNameNoMatch)
35 | ERROR | [x] Multi-line function declarations must have a trailing comma
| | after the last parameter
| | (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
35 | ERROR | [x] The closing parenthesis of a multi-line function declaration
| | must be on a new line
| | (Drupal.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
--------------------------------------------------------------------------------

Steps to reproduce

see https://git.drupalcode.org/project/jsonapi_image_styles/-/jobs/2842934

Remaining tasks

make a MR

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Merge request !9resolve phpcs issues β†’ (Open) created by BenStallings
  • Pipeline finished with Success
    23 days ago
    Total: 139s
    #595433
  • Pipeline finished with Success
    23 days ago
    Total: 139s
    #595434
Production build 0.71.5 2024