- Issue created by @Harpreet_singh_saluja
- Assigned to handkerchief
- Status changed to Fixed
10 months ago 8:26am 12 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.
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 !!
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.