RegistrationType enum cases not adhering to coding standards

Created on 4 March 2025, about 1 month ago

Problem/Motivation

The latest version of the Coder module adds a sniff to detect the proper formatting of PHP 8 enums. Turns out we are not following the standard:

FILE: ...ing_events/web/modules/custom/recurring_events/modules/recurring_events_registration/src/Enum/RegistrationType.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
 14 | ERROR | Case name must use UpperCamel naming and not contain multiple upper case letters in a row
    |       | (Drupal.NamingConventions.ValidEnumCase.NoUpperAcronyms)
 15 | ERROR | Case name must use UpperCamel naming and not contain multiple upper case letters in a row
    |       | (Drupal.NamingConventions.ValidEnumCase.NoUpperAcronyms)
------------------------------------------------------------------------------------------------------------------------
📌 Task
Status

Active

Version

3.0

Component

Recurring Events (Main module)

Created by

🇧🇬Bulgaria pfrenssen Sofia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024