Fix the issues reported by PHP_CodeSniffer

Created on 28 September 2024, 3 months ago

Problem/Motivation

FILE: modules\ajax_link\ajax_link.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------

FILE: modules\ajax_link\Readme.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
----------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 91 characters
16 | WARNING | Line exceeds 80 characters; contains 177 characters
18 | WARNING | Line exceeds 80 characters; contains 167 characters
20 | WARNING | Line exceeds 80 characters; contains 121 characters
22 | WARNING | Line exceeds 80 characters; contains 95 characters
26 | WARNING | Line exceeds 80 characters; contains 94 characters
28 | WARNING | Line exceeds 80 characters; contains 120 characters
30 | WARNING | Line exceeds 80 characters; contains 105 characters
47 | WARNING | Line exceeds 80 characters; contains 187 characters
50 | WARNING | Line exceeds 80 characters; contains 96 characters
51 | WARNING | Line exceeds 80 characters; contains 92 characters
52 | WARNING | Line exceeds 80 characters; contains 121 characters
53 | WARNING | Line exceeds 80 characters; contains 125 characters
----------------------------------------------------------------------

FILE: modules\ajax_link\src\Controller\AjaxLink.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
63 | WARNING | [x] 'TODO: Ajax call are only available thanks to POST method
| | right now, so this' should match the format '@todo Fix
| | problem X here.'
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Steps to reproduce

Run phpcs command to get the drupal coding standard issues.

Proposed resolution

Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇺🇸United States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051

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