Fix the issue reported by PHPCS.

Created on 21 June 2023, about 1 year ago

Problem/Motivation

Getting following error/warnings:

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\config_filter\README.md
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------
15 | WARNING | Line exceeds 80 characters; contains 90 characters
16 | WARNING | Line exceeds 80 characters; contains 105 characters
17 | WARNING | Line exceeds 80 characters; contains 85 characters
18 | WARNING | Line exceeds 80 characters; contains 102 characters
---------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\config_filter\src\Plugin\ConfigFilterPluginManager.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
73 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\config_filter\src\Tests\FilteredStorageTest.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------------
147 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
233 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
272 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
310 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
354 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run following command:

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

Proposed resolution

Above error/warnings need to be fixed

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇳India arti_parmar

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

Comments & Activities

Production build 0.69.0 2024