Resolve PHPCS issues

Created on 18 June 2025, 15 days ago

Problem/Motivation

FILE: src/Plugin/Field/FieldFormatter/MathFieldFormatter.php
------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 10 LINES
------------------------------------------------------------------------------------------------------------------------
 71 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 72 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 73 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 74 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 75 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 76 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 77 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 78 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 79 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 6
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
 79 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
 80 | ERROR | [x] Multi-line function declaration not indented correctly; expected 2 spaces but found 4
    |       |     (Drupal.Functions.MultiLineFunctionDeclaration.Indent)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
Time: 147ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
---------------------------------------------------------------------------
FILE                                                       ERRORS  WARNINGS
---------------------------------------------------------------------------
src/Plugin/Field/FieldFormatter/MathFieldFormatter.php     11      0
---------------------------------------------------------------------------
A TOTAL OF 11 ERRORS AND 0 WARNINGS WERE FOUND IN 5 FILES

Steps to reproduce

Automatic GitLab CI pipeline

Proposed resolution

Resolve the PHPCS issues.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria vuil Bulgaria 🇧🇬 🇪🇺 🌍

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

Comments & Activities

Production build 0.71.5 2024