Drupal Coding Standards Issues | phpcs

Created on 7 December 2022, over 2 years ago
Updated 27 January 2023, about 2 years ago

Problem/Motivation

Getting following error/warnings

FILE: /app/modules/contrib/config_split/config_split.module
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
124 | ERROR | The array declaration extends to column 130 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/src/Config/ConfigSorter.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
131 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/src/ConfigSplitCliService.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
238 | ERROR | The array declaration extends to column 135 (the limit is 80). The array content should be split up over multiple lines
243 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
271 | ERROR | The array declaration extends to column 117 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/src/Form/ConfigImportFormTrait.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
162 | ERROR | The array declaration extends to column 144 (the limit is 80). The array content should be split up over multiple lines
219 | ERROR | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
223 | ERROR | The array declaration extends to column 113 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/tests/src/Kernel/IndividualExportImportTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
233 | ERROR | The array declaration extends to column 149 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/tests/src/Kernel/SplitCollectionStorageTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
57 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/config_split/tests/src/Kernel/SplitMergeTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------
59 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
104 | ERROR | The array declaration extends to column 135 (the limit is 80). The array content should be split up over multiple lines
263 | ERROR | The array declaration extends to column 135 (the limit is 80). The array content should be split up over multiple lines
317 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

Time: 3.96 secs; Memory: 16MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/config_split/

Proposed resolution

Above error/warnings need to be fixed

💬 Support request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024