Fix the array multiline definition on element_validate to follow the standards at ebt_core

Created on 8 March 2023, over 1 year ago

Problem/Motivation

Inside of EbtCoreSettingsForm we're using element_validate which is working fine but the array exceeds 80 chars so drupal coding standards is asking to use multiline instead

FILE: src/Form/EbtCoreSettingsForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------
 104 | ERROR   | [ ] The array declaration extends to column 125 (the limit is 80). The array content should be split up over
     |         |     multiple lines
 104 | ERROR   | [ ] The array declaration extends to column 124 (the limit is 80). The array content should be split up over
     |         |     multiple lines
 228 | WARNING | [x] A comma should follow the last multiline array item. Found: $ebt_core_xxlarge_width
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

Time: 564ms; Memory: 12MB

Steps to reproduce

Proposed resolution

We can just fix that using multilines approach and it'll works fine

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024