Drupal PHPCS fixes

Created on 8 March 2024, 4 months ago
Updated 2 April 2024, 3 months ago

Hi @fago
Referred source
when I run the command
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
for your module and found this

FILE: /var/www/html/web/modules/contrib/ohdear_integration/src/Controller/OhDearIntegrationController.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
58 | ERROR | Parameter $ohdear_sdk is not described in comment
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/ohdear_integration/src/OhDearInfo.php
----------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------
137 | ERROR | [ ] Missing parameter type
137 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
140 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/ohdear_integration/ohdear_integration.services.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

I created Patch to fix this
Hope you value my time and efforts.
Thank You !!

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Harpreet_singh_saluja

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

Comments & Activities

Production build 0.69.0 2024