Coding Standard issues

Created on 6 September 2024, 4 months ago
Updated 9 September 2024, 4 months ago

Problem/Motivation

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig .

FILE: .../web/modules/custom/focal_point/tests/src/Unit/FocalPointManagerTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
67 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over
| | multiple lines
68 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over
| | multiple lines
69 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over
| | multiple lines
-----------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/focal_point/tests/src/Unit/FieldWidgets/FocalPointFieldWidgetTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
123 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over
| | multiple lines
124 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over
| | multiple lines
125 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over
| | multiple lines
-----------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/focal_point/tests/src/Unit/Effects/FocalPointEffectsTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
105 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
153 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
159 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
-----------------------------------------------------------------------------------------------------------------------

Steps to reproduce

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig .

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Needs review

Version

2.0

Component

Other Code

Created by

๐Ÿ‡ต๐Ÿ‡ชPeru alyaj2a

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