Fix the issues reported by phpcs

Created on 13 June 2023, about 1 year ago
Updated 9 May 2024, about 2 months ago

Problem/Motivation

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\linkit.module
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | The array declaration extends to column 368 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\src\Form\Matcher\DeleteForm.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | The array declaration extends to column 194 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\src\Form\Profile\FormBase.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
71 | ERROR | The array declaration extends to column 131 (the limit is 80). The array content should be split up over multiple lines
79 | ERROR | The array declaration extends to column 127 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\src\Plugin\CKEditor4To5Upgrade\Linkit.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
27 | ERROR | Public method name "Linkit::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem" is not in lowerCamel format
34 | ERROR | Public method name "Linkit::mapCKEditor4SettingsToCKEditor5Configuration" is not in lowerCamel format
59 | ERROR | Public method name "Linkit::computeCKEditor5PluginSubsetConfiguration" is not in lowerCamel format
-----------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\src\Plugin\Filter\LinkitFilter.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
136 | WARNING | Line exceeds 80 characters; contains 82 characters
---------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\src\Plugin\Linkit\Matcher\FileMatcher.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
106 | ERROR | The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
106 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\tests\src\FunctionalJavascript\LinkitDialogCKEditor5Test.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
158 | WARNING | Line exceeds 80 characters; contains 89 characters
-----------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\tests\src\Kernel\CKEditor4To5Upgrade\UpgradePathCompletenessTest.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | Doc comment is empty
15 | ERROR | Class name doesn't match filename; expected "class UpgradePathCompletenessTest"
19 | ERROR | Doc comment is empty
24 | ERROR | Doc comment is empty
-------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\tests\src\Kernel\LinkitFilterEntityTest.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------
102 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
103 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
104 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\linkit\tests\src\Kernel\Matchers\NodeMatcherTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
147 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
157 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig

Proposed resolution

Fix the issues for Drupal and DrupalPractice coding standards

๐Ÿ“Œ Task
Status

Needs work

Version

7.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia arti_parmar

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024