Problem/Motivation
FILE: watchdog_delete_filter\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
68 | WARNING | Line exceeds 80 characters; contains 82 characters
----------------------------------------------------------------------
FILE: watchdog_delete_filter\src\Form\WatchdogDeleteForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 2 WARNINGS AFFECTING 17 LINES
-----------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Connection.
74 | WARNING | [ ] Only string literals should be passed to t() where possible
82 | ERROR | [x] There should be no white space after an opening "["
82 | ERROR | [x] There should be no white space after an opening "["
82 | ERROR | [x] There should be no white space before a closing "]"
82 | ERROR | [x] There should be no white space before a closing "]"
93 | ERROR | [x] There should be no white space after an opening "["
93 | ERROR | [x] There should be no white space before a closing "]"
94 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
104 | ERROR | [x] There should be no white space after an opening "["
105 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
116 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
120 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 10
121 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
122 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
132 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
133 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
141 | WARNING | [ ] Possible useless method overriding detected
186 | ERROR | [x] There should be no white space after an opening "["
193 | ERROR | [x] Expected 1 blank line after function; 0 found
194 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: watchdog_delete_filter\watchdog_delete_filter.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: watchdog_delete_filter\watchdog_delete_filter.libraries.yml
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: watchdog_delete_filter\watchdog_delete_filter.module
----------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
4 | WARNING | [x] Unused use statement
5 | WARNING | [x] Unused use statement
15 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: watchdog_delete_filter\watchdog_delete_filter.services.yml
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
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.