Inconsistent switch case syntax

Created on 10 November 2024, 11 days ago

Problem/Motivation

Nearly every switch statement in Drupal core uses the standard syntax of case followed by a colon. However, there are 14 instances where a case statement uses the alternate syntax of a semicolon instead of a colon. It seems that these were unintentional typos, since they are randomly mixed in with case statements using the standard syntax.

Proposed resolution

Consistently use the standard switch case syntax.

πŸ“Œ Task
Status

Downport

Version

11.1 πŸ”₯

Component

base system

Created by

πŸ‡ΊπŸ‡ΈUnited States theodorejb

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