Fix PHPCS issues

Created on 19 October 2024, 6 months ago

Problem/Motivation

PHPCS reports the following issues:

FILE: ...m/navigation_extra_tools/src/Controller/NavigationExtraToolsController.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 117 | ERROR | [x] Expected 1 space after cast statement; 0 found
     |       |     (Generic.Formatting.SpaceAfterCast.NoSpace)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ls/web/modules/custom/navigation_extra_tools/navigation_extra_tools.module
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 6 | ERROR | [x] There must be exactly one blank line after the file comment
   |       |     (Drupal.Commenting.FileComment.SpacingAfterComment)
 7 | ERROR | [x] Missing function doc comment
   |       |     (Drupal.Commenting.FunctionComment.Missing)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Steps to reproduce

View PHPCS report in pipeline.

Proposed resolution

Fix reported issues.

Remaining tasks

Do it!

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Active

Component

Code

Created by

🇮🇪Ireland lostcarpark

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