Module have some PHPCS issues

Created on 11 March 2024, 4 months ago
Updated 26 March 2024, 3 months ago

Referred source
when I run the command
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
for you module

I found this
FILE: /var/www/html/web/modules/contrib/turbodrop/src/Form/TurbodropConfigurationForm.php
-----------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------
38 | ERROR | [x] Use null coalesce operator instead of ternary operator.
57 | ERROR | [x] Short array syntax must be used to define arrays
60 | ERROR | [x] Expected 1 space before "?"; 2 found
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

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

I created Patch for this and created merge request too, whichever you find best.
Hope you value my time and efforts.
Thank You !!

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Harpreet_singh_saluja

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024