FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\file_rename\file_rename.info.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\file_rename\file_rename.module
-----------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
27 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\file_rename\README.md
------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------
64 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\file_rename\src\Access\FileRenameAccessCheck.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\file_rename\src\Form\FileRenameForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
38 | ERROR | [x] Space found before comma in argument list
112 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
129 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | coding_standards.png | 36.51 KB | Munavijayalakshmi |
| #2 | drupal-standard-coding-issue-3300655-2.patch | 2.53 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this and providing a patch.
Comment #3
Munavijayalakshmi commentedApplied following both patches then clear the coding standards.
https://www.drupal.org/project/file_rename/issues/3300662
https://www.drupal.org/project/file_rename/issues/3300655
Comment #4
Munavijayalakshmi commentedComment #6
granikThx for your catch. Fixed.