Problem/Motivation
FILE: C:\bhupendra\datas\slider\background_sliders\background_slider.info.yml
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\background_slider.install
----------------------------------------------------------------------------------
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:\bhupendra\datas\slider\background_sliders\background_slider.libraries.yml
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
10 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\background_slider.module
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 10 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] There must be exactly one blank line after the file comment
7 | WARNING | [x] Unused use statement
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
10 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
10 | 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."
11 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
18 | ERROR | [x] Expected 1 space after "=>"; 2 found
24 | ERROR | [x] Expected 1 blank line after function; 2 found
27 | ERROR | [x] Missing function doc comment
30 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\background_slider.routing.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\css\style.css
----------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
3 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\src\Form\SliderForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 50 ERRORS AND 3 WARNINGS AFFECTING 45 LINES
---------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
16 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
17 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
18 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
19 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
50 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
51 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
63 | ERROR | [x] Whitespace found at end of line
102 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
103 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
104 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
105 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
110 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
111 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
112 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
113 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
114 | WARNING | [x] A comma should follow the last multiline array item. Found: 'type-wrapper'
116 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
128 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
132 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
133 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
133 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
133 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
134 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
135 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
138 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
139 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
141 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
141 | ERROR | [x] Expected 1 space after "=>"; 2 found
142 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
144 | ERROR | [x] Expected newline after closing brace
145 | ERROR | [x] Whitespace found at end of line
149 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
149 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
157 | ERROR | [x] Expected 1 space after "=>"; 2 found
180 | ERROR | [x] Whitespace found at end of line
181 | ERROR | [ ] Missing short description in doc comment
182 | ERROR | [ ] Missing parameter comment
182 | ERROR | [ ] Missing parameter type
183 | ERROR | [ ] Missing parameter comment
183 | ERROR | [x] Data types in @param tags need to be fully namespaced
184 | ERROR | [ ] Description for the @return value is missing
198 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
208 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces, found 4
208 | ERROR | [x] Expected newline after closing brace
213 | ERROR | [x] Expected 1 space after "="; 0 found
219 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
220 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
223 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\bhupendra\datas\slider\background_sliders\src\Plugin\Block\SliderBlock.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 89 ERRORS AND 4 WARNINGS AFFECTING 46 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandlerInterface.
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
14 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
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
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Whitespace found at end of line
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
54 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Whitespace found at end of line
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
60 | ERROR | [x] Expected 1 space after IF keyword; 0 found
61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
61 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
62 | ERROR | [x] Expected newline after closing brace
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
63 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
70 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
70 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
71 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
72 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
72 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
72 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
73 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
74 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 3
74 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
75 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
76 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
78 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 6
79 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
80 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 3
81 | ERROR | [x] Expected 1 newline at end of file; 0 found
81 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 93 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run following command:
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml background_sliders
Proposed resolution
Above error/warnings need to be fixed
Remaining tasks
User interface changes
API changes
Data model changes