Fix the issues reported by PHP_CodeSniffer

Created on 19 September 2024, about 2 months ago

Problem/Motivation

FILE: modules\layout_blocks\layout_blocks.module
----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------
24 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
25 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: modules\layout_blocks\src\Plugin\Block\ImageBlock.php
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------
68 | WARNING | [x] '@todo: Make configurable.' should match the format '@todo Fix problem X here.'
129 | WARNING | [x] '@todo: Create with image style preset.' should match the format '@todo Fix problem X here.'
136 | WARNING | [x] '@todo: Support for this.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------

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

Fixed

Version

1.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