Problem/Motivation
FILE: ...c\drupal\modules\cron_time\config\install\cron_time.settings.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...\abc\drupal\modules\cron_time\config\schema\cron_time.schema.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\abc\drupal\modules\cron_time\cron_time.module
----------------------------------------------------------------------
FOUND 66 ERRORS AND 1 WARNING AFFECTING 31 LINES
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
23 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz_bar().",, "* Implements hook_foo_BAR_ID_bar()
| | for xyz-bar.html.twig.", "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
| | "* Implements hook_foo_BAR_ID_bar() for block
| | templates."
24 | ERROR | [x] There must be no blank lines after the function
| | comment
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces,
| | found 1
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
33 | ERROR | [x] Short array syntax must be used to define arrays
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
34 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
34 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
35 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
35 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
36 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
36 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
37 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
37 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
38 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
38 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
39 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 3
39 | ERROR | [x] Array indentation error, expected 4 spaces but
| | found 3
39 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
40 | ERROR | [x] Array indentation error, expected 5 spaces but
| | found 4
40 | ERROR | [x] Short array syntax must be used to define arrays
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
41 | ERROR | [x] Array indentation error, expected 6 spaces but
| | found 5
41 | ERROR | [x] Short array syntax must be used to define arrays
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
43 | ERROR | [x] Array indentation error, expected 5 spaces but
| | found 4
43 | ERROR | [x] Short array syntax must be used to define arrays
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
44 | ERROR | [x] Array indentation error, expected 6 spaces but
| | found 5
44 | ERROR | [x] Short array syntax must be used to define arrays
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces,
| | found 1
54 | ERROR | [x] Missing function doc comment
54 | ERROR | [ ] All functions defined in a module file must be
| | prefixed with the module's name, found
| | "custom_cron_time_callback" but expected
| | "cron_time_custom_cron_time_callback"
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces,
| | found 1
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
57 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
57 | ERROR | [x] Object operator not indented correctly; expected
| | 3 spaces but found 2
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 2
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
62 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 65 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Steps to reproduce
Run following command -
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/cron_time/
Proposed resolution
Above error/warnings need to be fixed.