Fix the issues reported by PHP_CodeSniffer

Created on 21 September 2024, 9 months ago

Problem/Motivation

FILE: modules\stepbystep\src\SequenceManager.php
------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------
57 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: modules\stepbystep\tests\README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 83 characters
11 | WARNING | Line exceeds 80 characters; contains 137 characters
----------------------------------------------------------------------

FILE: modules\stepbystep\tests\src\Functional\StepByStepTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
48 | ERROR | The array declaration extends to column 127 (the limit is 120). The array content should be split up over multiple lines
48 | ERROR | The array declaration extends to column 126 (the limit is 120). The array content should be split up over multiple lines
52 | ERROR | The array declaration extends to column 127 (the limit is 120). The array content should be split up over multiple lines
52 | ERROR | The array declaration extends to column 126 (the limit is 120). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run phpcs command to get the drupal coding standard issues.

Proposed resolution

Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051

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