address phpcs issues

Created on 4 September 2025, 27 days ago

Problem/Motivation

Phpcs reports,

FILE: ...env/web/modules/custom/dotenv/tests/src/Unit/DotenvServiceProviderTest.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
28 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
| | (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
| | (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...roject/dotenv/web/modules/custom/dotenv/src/Commands/DotenvInitCommand.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
76 | ERROR | [x] The first parameter of a multi-line function declaration must
| | be on the line after the opening bracket
| | (Drupal.Functions.MultiLineFunctionDeclaration.FirstParamSpacing)
80 | ERROR | [x] Multi-line function declarations must have a trailing comma
| | after the last parameter
| | (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
80 | ERROR | [x] The closing parenthesis of a multi-line function declaration
| | must be on a new line
| | (Drupal.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 125ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
...eb/modules/custom/dotenv/src/Commands/DotenvInitCommand.php 3 0
.../custom/dotenv/tests/src/Unit/DotenvServiceProviderTest.php 2 0
--------------------------------------------------------------------------------
A TOTAL OF 5 ERRORS AND 0 WARNINGS WERE FOUND IN 4 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 5 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
-----------------------------------------------------------------------------
SOURCE COUNT
-----------------------------------------------------------------------------
[x] Drupal.WhiteSpace.ScopeIndent.IncorrectExact 2
[x] Drupal.Functions.MultiLineFunctionDeclaration.CloseBracketLine 1
[x] Drupal.Functions.MultiLineFunctionDeclaration.FirstParamSpacing 1
[x] Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma 1
-----------------------------------------------------------------------------

Steps to reproduce

see https://git.drupalcode.org/project/dotenv/-/jobs/2392325

Remaining tasks

make a MR

πŸ“Œ Task
Status

Active

Version

1.2

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

Production build 0.71.5 2024