Problem/Motivation
Getting following error/warnings:
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\css\style.css
-------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 8 LINES
-------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
1 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
4 | ERROR | [x] Multiple selectors should each be on a single line
4 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
8 | ERROR | [x] Multiple selectors should each be on a single line
8 | ERROR | [x] Multiple selectors should each be on a single line
8 | ERROR | [x] Multiple selectors should each be on a single line
12 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
15 | ERROR | [x] Multiple selectors should each be on a single line
15 | ERROR | [x] Multiple selectors should each be on a single line
15 | ERROR | [x] Multiple selectors should each be on a single line
15 | ERROR | [x] Multiple selectors should each be on a single line
15 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
17 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Controller\ContentListController.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | ERROR | [ ] Doc comment is empty
43 | ERROR | [ ] Doc comment for parameter $container does not match actual variable name $request_stack
58 | ERROR | [ ] Doc comment is empty
70 | ERROR | [ ] Doc comment is empty
73 | ERROR | [ ] Public method name "ContentListController::content_list" is not in lowerCamel format
128 | ERROR | [ ] The array declaration extends to column 123 (the limit is 80). The array content should be split up over multiple lines
133 | ERROR | [ ] The array declaration extends to column 120 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Controller\TaxonomyListController.php
-----------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [ ] Doc comment is empty
12 | ERROR | [ ] Doc comment is empty
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Controller\UserListController.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 14 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
50 | ERROR | [ ] Doc comment for parameter $container does not match actual variable name $connection
68 | ERROR | [ ] Doc comment is empty
81 | ERROR | [ ] Doc comment is empty
84 | ERROR | [ ] Public method name "UserListController::user_list" is not in lowerCamel format
85 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
101 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
127 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
148 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
186 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
219 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
311 | ERROR | [ ] Doc comment is empty
314 | ERROR | [ ] Protected method name "UserListController::create_table_user" is not in lowerCamel format
324 | ERROR | [ ] The array declaration extends to column 124 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Form\content_filter_form.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 28 ERRORS AFFECTING 24 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [ ] Doc comment is empty
14 | ERROR | [ ] Class name doesn't match filename; expected "class content_filter_form"
14 | ERROR | [ ] Class name must use UpperCamel naming without underscores
30 | ERROR | [ ] Doc comment for parameter $container does not match actual variable name $entity_type_manager
39 | ERROR | [ ] Doc comment is empty
48 | ERROR | [ ] Doc comment is empty
123 | ERROR | [x] Short array syntax must be used to define arrays
126 | ERROR | [x] Short array syntax must be used to define arrays
135 | ERROR | [x] Expected 1 blank line after function; 0 found
139 | ERROR | [ ] Method name "Content_Filter_Form::my_form_validate" is not in lowerCamel format
139 | ERROR | [x] Visibility must be declared on method "my_form_validate"
142 | ERROR | [x] Expected 1 space after IF keyword; 0 found
142 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
145 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
146 | ERROR | [x] Expected 1 space after "<"; 3 found
147 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
149 | ERROR | [x] Expected 1 blank line after function; 0 found
156 | ERROR | [x] Expected 1 space after IF keyword; 0 found
156 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
162 | ERROR | [ ] The array declaration extends to column 166 (the limit is 80). The array content should be split up over multiple lines
164 | ERROR | [x] Expected 1 blank line after function; 0 found
169 | ERROR | [x] Whitespace found at end of line
170 | ERROR | [x] Expected 1 blank line after function; 0 found
171 | ERROR | [x] Missing function doc comment
172 | ERROR | [x] Whitespace found at end of line
173 | ERROR | [x] Expected 1 blank line after function; 0 found
174 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Form\TaxonomyDeleteForm.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 518 ERRORS AND 2 WARNINGS AFFECTING 222 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"
20 | ERROR | [x] Missing class doc comment
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
21 | ERROR | [x] Whitespace found at end of line
22 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
23 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
43 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
44 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
45 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
46 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
56 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
57 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
58 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
61 | ERROR | [x] Expected 4 space(s) before asterisk; 1 found
62 | ERROR | [x] Expected 4 space(s) before asterisk; 1 found
63 | ERROR | [x] Expected 4 space(s) before asterisk; 1 found
64 | ERROR | [x] Expected 4 space(s) before asterisk; 1 found
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
66 | ERROR | [ ] Parameter $module_handler is not described in comment
67 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
68 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
68 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
68 | ERROR | [ ] Doc comment for parameter $container does not match actual variable name $module_handler
69 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
70 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
71 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
72 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
73 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
74 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
75 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
76 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
76 | ERROR | [x] Expected 1 space after asterisk; 2 found
76 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
77 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
77 | ERROR | [x] Parameter comment must end with a full stop
78 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
78 | ERROR | [x] Expected 1 space after asterisk; 2 found
78 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
79 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
80 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
80 | ERROR | [x] Expected 1 space after asterisk; 2 found
80 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
81 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
82 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
82 | ERROR | [x] Expected 1 space after asterisk; 2 found
82 | ERROR | [ ] Doc comment for parameter $moduleHandler does not match actual variable name $module_handler
83 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
84 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
84 | ERROR | [x] There must be no blank lines after the function comment
85 | ERROR | [x] Whitespace found at end of line
86 | ERROR | [x] Expected 1 space between comma and type hint "RequestStack"; 2 found
86 | ERROR | [x] Expected one space after the comma, 2 found
86 | ERROR | [x] Expected 1 space between comma and type hint "MessengerInterface"; 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
86 | ERROR | [x] Expected 1 space between comma and type hint "DateFormatterInterface"; 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
86 | ERROR | [x] Expected 1 space between comma and type hint "EntityFieldManagerInterface"; 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
87 | ERROR | [x] Expected 0 spaces between argument "$entityFieldManage" and comma; 2 found
87 | ERROR | [x] Expected 1 space between comma and type hint "ModuleHandlerInterface"; 0 found
87 | ERROR | [x] Expected one space after the comma, 0 found
88 | ERROR | [x] Expected 1 space before opening brace; found 0
88 | ERROR | [x] There must not be a newline before the closing parenthesis of a single-line function declaration
96 | ERROR | [x] Expected 1 blank line after function; 0 found
97 | ERROR | [x] Missing function doc comment
97 | ERROR | [x] Expected 1 space before opening brace; found 0
109 | ERROR | [x] Expected 1 blank line after function; 0 found
110 | ERROR | [x] Missing function doc comment
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
114 | ERROR | [x] Missing function doc comment
114 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found
114 | ERROR | [x] There should be no white space after an opening "("
114 | ERROR | [x] There should be no white space before a closing ")"
114 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found
115 | ERROR | [x] Space found after square bracket; expected "['table'" but found "[ 'table'"
115 | ERROR | [x] Space found before square bracket; expected "'table']" but found "'table' ]"
116 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
117 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
118 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
119 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
119 | ERROR | [x] There should be no white space after an opening "("
119 | ERROR | [x] There should be no white space before a closing ")"
122 | ERROR | [x] Space found after square bracket; expected "['submit'" but found "[ 'submit'"
122 | ERROR | [x] Space found before square bracket; expected "'submit']" but found "'submit' ]"
123 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
124 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
124 | ERROR | [x] There should be no white space after an opening "("
124 | ERROR | [x] There should be no white space before a closing ")"
125 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
129 | ERROR | [x] Space found after square bracket; expected "['#attached'" but found "[ '#attached'"
129 | ERROR | [x] Space found before square bracket; expected "'#attached']" but found "'#attached' ]"
129 | ERROR | [x] Space found after square bracket; expected "['library'" but found "[ 'library'"
129 | ERROR | [x] Space found before square bracket; expected "'library']" but found "'library' ]"
130 | ERROR | [x] Expected 1 space before "="; 0 found
130 | ERROR | [x] Expected 1 space after "="; 0 found
137 | ERROR | [x] Missing function doc comment
139 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
139 | ERROR | [x] There should be no white space after an opening "("
139 | ERROR | [x] There should be no white space before a closing ")"
140 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
140 | ERROR | [x] There should be no white space after an opening "("
140 | ERROR | [x] There should be no white space before a closing ")"
141 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
142 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
143 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
143 | ERROR | [x] There should be no white space after an opening "("
143 | ERROR | [x] There should be no white space before a closing ")"
144 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
144 | ERROR | [x] There should be no white space after an opening "("
144 | ERROR | [x] There should be no white space before a closing ")"
148 | ERROR | [x] Missing function doc comment
150 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
152 | ERROR | [x] There should be no white space after an opening "("
152 | ERROR | [x] There should be no white space before a closing ")"
155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
158 | ERROR | [x] There should be no white space after an opening "("
158 | ERROR | [x] There should be no white space before a closing ")"
159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
159 | ERROR | [x] There should be no white space after an opening "("
159 | ERROR | [x] There should be no white space before a closing ")"
160 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
160 | ERROR | [x] There should be no white space after an opening "("
160 | ERROR | [x] There should be no white space before a closing ")"
161 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
161 | ERROR | [x] There should be no white space after an opening "("
161 | ERROR | [x] There should be no white space before a closing ")"
162 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 14
162 | ERROR | [x] There should be no white space after an opening "("
162 | ERROR | [x] There should be no white space after an opening "("
162 | ERROR | [x] There should be no white space before a closing ")"
162 | ERROR | [x] There should be no white space before a closing ")"
163 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
164 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
164 | ERROR | [x] There should be no white space after an opening "("
164 | ERROR | [x] There should be no white space after an opening "("
164 | ERROR | [x] There should be no white space before a closing ")"
164 | ERROR | [x] There should be no white space before a closing ")"
165 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
166 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
166 | ERROR | [x] There should be no white space after an opening "("
166 | ERROR | [x] There should be no white space before a closing ")"
167 | ERROR | [x] Object operator not indented correctly; expected 24 spaces but found 22
167 | ERROR | [x] There should be no white space after an opening "("
167 | ERROR | [x] There should be no white space after an opening "["
167 | ERROR | [x] There should be no white space before a closing "]"
167 | ERROR | [x] There should be no white space before a closing ")"
171 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
171 | ERROR | [x] There should be no white space after an opening "("
171 | ERROR | [x] There should be no white space before a closing ")"
172 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
172 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
173 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
174 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 14
175 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
183 | ERROR | [x] There should be no white space after an opening "("
183 | ERROR | [x] There should be no white space before a closing ")"
185 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
185 | ERROR | [x] There should be no white space after an opening "("
185 | ERROR | [x] There should be no white space after an opening "("
185 | ERROR | [x] There should be no white space before a closing ")"
185 | ERROR | [x] Space found after square bracket; expected "['display_options'" but found "[ 'display_options'"
185 | ERROR | [x] Space found before square bracket; expected "'display_options']" but found "'display_options' ]"
185 | ERROR | [x] Space found after square bracket; expected "['filters'" but found "[ 'filters'"
185 | ERROR | [x] Space found before square bracket; expected "'filters']" but found "'filters' ]"
185 | ERROR | [x] There should be no white space before a closing ")"
187 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 14
188 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 14
188 | ERROR | [x] There should be no white space after an opening "("
188 | ERROR | [x] There should be no white space after an opening "("
188 | ERROR | [x] Space found after square bracket; expected "['field'" but found "[ 'field'"
188 | ERROR | [x] Space found before square bracket; expected "'field']" but found "'field' ]"
188 | ERROR | [x] There should be no white space before a closing ")"
188 | ERROR | [x] Space found after square bracket; expected "['field'" but found "[ 'field'"
188 | ERROR | [x] Space found before square bracket; expected "'field']" but found "'field' ]"
188 | ERROR | [x] Space found after square bracket; expected "['plugin_id'" but found "[ 'plugin_id'"
188 | ERROR | [x] Space found before square bracket; expected "'plugin_id']" but found "'plugin_id' ]"
188 | ERROR | [x] There should be no white space before a closing ")"
190 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
191 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
191 | ERROR | [x] There should be no white space after an opening "("
191 | ERROR | [x] There should be no white space after an opening "("
191 | ERROR | [x] Space found after square bracket; expected "['value'" but found "[ 'value'"
191 | ERROR | [x] Space found before square bracket; expected "'value']" but found "'value' ]"
191 | ERROR | [x] There should be no white space before a closing ")"
191 | ERROR | [x] There should be no white space after an opening "("
191 | ERROR | [x] Space found after square bracket; expected "['value'" but found "[ 'value'"
191 | ERROR | [x] Space found before square bracket; expected "'value']" but found "'value' ]"
191 | ERROR | [x] There should be no white space before a closing ")"
191 | ERROR | [x] There should be no white space before a closing ")"
192 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
192 | ERROR | [x] There should be no white space after an opening "("
192 | ERROR | [x] Space found after square bracket; expected "['value'" but found "[ 'value'"
192 | ERROR | [x] Space found before square bracket; expected "'value']" but found "'value' ]"
192 | ERROR | [x] There should be no white space before a closing ")"
193 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 26
193 | ERROR | [x] Space found after square bracket; expected "[$term_id" but found "[ $term_id"
193 | ERROR | [x] Space found before square bracket; expected "$term_id]" but found "$term_id ]"
194 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 22
196 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 18
197 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 14
198 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
199 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
200 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
201 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
201 | ERROR | [x] There should be no white space after an opening "("
201 | ERROR | [x] There should be no white space before a closing ")"
201 | ERROR | [x] There should be no white space after an opening "("
201 | ERROR | [x] There should be no white space before a closing ")"
202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
202 | ERROR | [x] No space found before comment text; expected "// convert it to array keys" but found "//convert it to array keys"
202 | ERROR | [x] Inline comments must start with a capital letter
202 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
203 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
203 | ERROR | [x] There should be no white space after an opening "("
203 | ERROR | [x] There should be no white space before a closing ")"
206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
209 | ERROR | [x] There should be no white space after an opening "("
209 | ERROR | [x] There should be no white space before a closing ")"
210 | ERROR | [x] There should be no white space after an opening "("
210 | ERROR | [x] There should be no white space before a closing ")"
211 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
211 | ERROR | [x] There should be no white space after an opening "("
211 | ERROR | [x] There should be no white space before a closing ")"
212 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
212 | ERROR | [x] There should be no white space after an opening "("
212 | ERROR | [x] There should be no white space before a closing ")"
213 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 12
213 | ERROR | [x] There should be no white space after an opening "("
213 | ERROR | [x] There should be no white space after an opening "("
213 | ERROR | [x] There should be no white space before a closing ")"
213 | ERROR | [x] There should be no white space before a closing ")"
214 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 16
215 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 16
215 | ERROR | [x] There should be no white space after an opening "("
215 | ERROR | [x] There should be no white space after an opening "("
215 | ERROR | [x] There should be no white space before a closing ")"
215 | ERROR | [x] There should be no white space before a closing ")"
216 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 20
217 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 20
217 | ERROR | [x] There should be no white space after an opening "("
217 | ERROR | [x] There should be no white space before a closing ")"
218 | ERROR | [x] Object operator not indented correctly; expected 22 spaces but found 20
218 | ERROR | [x] There should be no white space after an opening "("
218 | ERROR | [x] There should be no white space after an opening "["
218 | ERROR | [x] There should be no white space before a closing "]"
218 | ERROR | [x] There should be no white space before a closing ")"
222 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 20
222 | ERROR | [x] There should be no white space after an opening "("
222 | ERROR | [x] There should be no white space before a closing ")"
223 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 16
225 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 12
226 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
228 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
230 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
235 | ERROR | [x] There should be no white space after an opening "("
235 | ERROR | [x] There should be no white space after an opening "("
235 | ERROR | [x] There should be no white space before a closing ")"
235 | ERROR | [x] There should be no white space before a closing ")"
237 | ERROR | [x] There should be no white space after an opening "("
237 | ERROR | [x] There should be no white space before a closing ")"
239 | ERROR | [x] There should be no white space after an opening "("
239 | ERROR | [x] There should be no white space before a closing ")"
240 | ERROR | [x] There should be no white space after an opening "("
240 | ERROR | [x] There should be no white space before a closing ")"
241 | ERROR | [x] There should be no white space after an opening "("
241 | ERROR | [x] There should be no white space before a closing ")"
242 | ERROR | [x] There should be no white space after an opening "("
242 | ERROR | [x] There should be no white space after an opening "("
242 | ERROR | [x] There should be no white space before a closing ")"
242 | ERROR | [x] There should be no white space before a closing ")"
243 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
245 | ERROR | [x] There should be no white space after an opening "("
245 | ERROR | [x] There should be no white space after an opening "("
245 | ERROR | [x] There should be no white space before a closing ")"
245 | ERROR | [x] There should be no white space before a closing ")"
247 | ERROR | [x] There should be no white space after an opening "("
247 | ERROR | [x] There should be no white space before a closing ")"
248 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 14
248 | ERROR | [x] Object operator not indented correctly; expected 16 spaces but found 14
248 | ERROR | [x] There should be no white space after an opening "("
248 | ERROR | [x] There should be no white space after an opening "["
248 | ERROR | [x] There should be no white space before a closing "]"
248 | ERROR | [x] There should be no white space before a closing ")"
249 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 14
250 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 14
251 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 14
253 | ERROR | [x] There should be no white space after an opening "("
253 | ERROR | [x] There should be no white space before a closing ")"
259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
261 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
265 | ERROR | [x] There should be no white space after an opening "("
265 | ERROR | [x] There should be no white space before a closing ")"
267 | ERROR | [x] There should be no white space after an opening "("
267 | ERROR | [x] There should be no white space before a closing ")"
269 | ERROR | [x] There should be no white space after an opening "("
269 | ERROR | [x] There should be no white space after an opening "("
269 | ERROR | [x] There should be no white space before a closing ")"
269 | ERROR | [x] There should be no white space before a closing ")"
271 | ERROR | [x] There should be no white space after an opening "("
271 | ERROR | [x] There should be no white space after an opening "("
271 | ERROR | [x] There should be no white space before a closing ")"
271 | ERROR | [x] There should be no white space before a closing ")"
272 | ERROR | [x] There should be no white space after an opening "("
272 | ERROR | [x] There should be no white space before a closing ")"
276 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
278 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
279 | ERROR | [x] There should be no white space after an opening "("
279 | ERROR | [x] There should be no white space before a closing ")"
280 | ERROR | [x] There should be no white space after an opening "("
280 | ERROR | [x] There should be no white space before a closing ")"
281 | ERROR | [x] There should be no white space after an opening "("
281 | ERROR | [x] There should be no white space after an opening "("
281 | ERROR | [x] There should be no white space before a closing ")"
281 | ERROR | [x] There should be no white space before a closing ")"
283 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
284 | ERROR | [x] There should be no white space after an opening "("
284 | ERROR | [x] There should be no white space before a closing ")"
285 | ERROR | [x] Expected 1 space after "="; 2 found
285 | ERROR | [x] There should be no white space after an opening "("
285 | ERROR | [x] There should be no white space before a closing ")"
288 | ERROR | [x] No space found before comment text; expected "// If Want to Filter on the basis of Vocabulary" but found "//If Want to Filter on the basis of Vocabulary"
288 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
289 | ERROR | [x] Expected 1 space after "!="; 0 found
290 | ERROR | [x] There should be no white space after an opening "("
290 | ERROR | [x] There should be no white space after an opening "("
290 | ERROR | [x] There should be no white space before a closing ")"
290 | ERROR | [x] There should be no white space before a closing ")"
292 | ERROR | [x] There should be no white space after an opening "("
292 | ERROR | [x] There should be no white space before a closing ")"
292 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
294 | ERROR | [x] There should be no white space after an opening "("
294 | ERROR | [x] There should be no white space before a closing ")"
295 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 12
298 | ERROR | [x] No space found before comment text; expected "// if want to filter on vocabulary with status" but found "//if want to filter on vocabulary with status"
298 | ERROR | [x] Inline comments must start with a capital letter
298 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
299 | ERROR | [x] Expected 1 space after IF keyword; 0 found
299 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
299 | ERROR | [x] Whitespace found at end of line
300 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
300 | ERROR | [x] Expected one space after the comma, 0 found
300 | ERROR | [x] Whitespace found at end of line
301 | ERROR | [x] Whitespace found at end of line
304 | ERROR | [x] There should be no white space after an opening "("
304 | ERROR | [x] There should be no white space before a closing ")"
305 | ERROR | [x] Whitespace found at end of line
307 | ERROR | [x] There should be no white space after an opening "("
307 | ERROR | [x] There should be no white space before a closing ")"
308 | ERROR | [x] There should be no white space after an opening "("
308 | ERROR | [x] There should be no white space after an opening "["
308 | ERROR | [x] There should be no white space before a closing "]"
308 | ERROR | [x] There should be no white space before a closing ")"
309 | ERROR | [x] There should be no white space after an opening "("
309 | ERROR | [x] There should be no white space after an opening "("
309 | ERROR | [x] There should be no white space before a closing ")"
309 | ERROR | [x] There should be no white space before a closing ")"
310 | ERROR | [x] There should be no white space after an opening "("
310 | ERROR | [x] There should be no white space after an opening "["
310 | ERROR | [x] There should be no white space before a closing "]"
310 | ERROR | [x] There should be no white space before a closing ")"
311 | ERROR | [x] There should be no white space after an opening "("
311 | ERROR | [x] There should be no white space after an opening "("
311 | ERROR | [x] There should be no white space before a closing ")"
311 | ERROR | [x] There should be no white space before a closing ")"
313 | ERROR | [x] There should be no white space after an opening "("
313 | ERROR | [ ] The array declaration extends to column 131 (the limit is 80). The array content should be split up over multiple lines
313 | ERROR | [x] There should be no white space after an opening "["
313 | ERROR | [x] There should be no white space before a closing "]"
313 | ERROR | [x] There should be no white space before a closing ")"
314 | ERROR | [x] There should be no white space after an opening "("
314 | ERROR | [x] There should be no white space before a closing ")"
315 | ERROR | [x] There should be no white space after an opening "("
315 | ERROR | [x] There should be no white space before a closing ")"
316 | ERROR | [x] Space found after square bracket; expected "[$term" but found "[ $term"
316 | ERROR | [x] Space found before square bracket; expected ")]" but found ") ]"
326 | ERROR | [x] Expected newline after closing brace
328 | ERROR | [x] There should be no white space after an opening "("
328 | ERROR | [x] There should be no white space before a closing ")"
328 | ERROR | [x] There should be no white space after an opening "("
328 | ERROR | [x] There should be no white space before a closing ")"
330 | ERROR | [x] There should be no white space after an opening "("
330 | ERROR | [x] There should be no white space after an opening "["
330 | ERROR | [x] There should be no white space before a closing "]"
330 | ERROR | [x] There should be no white space before a closing ")"
331 | ERROR | [x] There should be no white space after an opening "("
331 | ERROR | [x] There should be no white space after an opening "("
331 | ERROR | [x] There should be no white space before a closing ")"
331 | ERROR | [x] There should be no white space before a closing ")"
332 | ERROR | [x] There should be no white space after an opening "("
332 | ERROR | [x] There should be no white space after an opening "["
332 | ERROR | [x] There should be no white space before a closing "]"
332 | ERROR | [x] There should be no white space before a closing ")"
333 | ERROR | [x] There should be no white space after an opening "("
333 | ERROR | [x] There should be no white space after an opening "("
333 | ERROR | [x] There should be no white space before a closing ")"
333 | ERROR | [x] There should be no white space before a closing ")"
335 | ERROR | [x] There should be no white space after an opening "("
335 | ERROR | [ ] The array declaration extends to column 131 (the limit is 80). The array content should be split up over multiple lines
335 | ERROR | [x] There should be no white space after an opening "["
335 | ERROR | [x] There should be no white space before a closing "]"
335 | ERROR | [x] There should be no white space before a closing ")"
336 | ERROR | [x] There should be no white space after an opening "("
336 | ERROR | [x] There should be no white space before a closing ")"
337 | ERROR | [x] There should be no white space after an opening "("
337 | ERROR | [x] There should be no white space before a closing ")"
339 | ERROR | [x] Space found after square bracket; expected "[$term" but found "[ $term"
339 | ERROR | [x] Space found before square bracket; expected ")]" but found ") ]"
350 | ERROR | [x] No space found before comment text; expected "// By Default fetch all the unused terms" but found "//By Default fetch all the unused terms"
350 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
351 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
352 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
352 | ERROR | [x] Expected 1 space after IF keyword; 0 found
352 | ERROR | [x] There should be no white space after an opening "("
352 | ERROR | [x] There should be no white space after an opening "("
352 | ERROR | [x] There should be no white space before a closing ")"
352 | ERROR | [x] There should be no white space after an opening "("
352 | ERROR | [x] There should be no white space before a closing ")"
353 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
353 | ERROR | [x] There should be no white space after an opening "("
353 | ERROR | [x] There should be no white space after an opening "("
353 | ERROR | [x] There should be no white space before a closing ")"
353 | ERROR | [x] There should be no white space before a closing ")"
354 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
355 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
359 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
359 | ERROR | [x] Expected 1 space after IF keyword; 0 found
359 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
359 | ERROR | [x] Whitespace found at end of line
360 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
360 | ERROR | [x] Expected 1 space after IF keyword; 0 found
360 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
360 | ERROR | [x] Whitespace found at end of line
361 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
361 | ERROR | [x] Expected one space after the comma, 0 found
361 | ERROR | [x] Whitespace found at end of line
362 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
363 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
364 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
365 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
366 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
366 | ERROR | [x] No space found before comment text; expected "// Prepare a table for rendering." but found "//Prepare a table for rendering."
367 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
368 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
368 | ERROR | [x] There should be no white space after an opening "("
368 | ERROR | [x] There should be no white space before a closing ")"
369 | ERROR | [x] There should be no white space after an opening "("
369 | ERROR | [x] There should be no white space after an opening "["
369 | ERROR | [x] There should be no white space before a closing "]"
369 | ERROR | [x] There should be no white space before a closing ")"
370 | ERROR | [x] There should be no white space after an opening "("
370 | ERROR | [x] There should be no white space after an opening "("
370 | ERROR | [x] There should be no white space before a closing ")"
370 | ERROR | [x] There should be no white space before a closing ")"
371 | ERROR | [x] There should be no white space after an opening "("
371 | ERROR | [x] There should be no white space after an opening "["
371 | ERROR | [x] There should be no white space before a closing "]"
371 | ERROR | [x] There should be no white space before a closing ")"
372 | ERROR | [x] There should be no white space after an opening "("
372 | ERROR | [x] There should be no white space after an opening "("
372 | ERROR | [x] There should be no white space before a closing ")"
372 | ERROR | [x] There should be no white space before a closing ")"
374 | ERROR | [x] There should be no white space after an opening "("
374 | ERROR | [ ] The array declaration extends to column 131 (the limit is 80). The array content should be split up over multiple lines
374 | ERROR | [x] There should be no white space after an opening "["
374 | ERROR | [x] There should be no white space before a closing "]"
374 | ERROR | [x] There should be no white space before a closing ")"
375 | ERROR | [x] There should be no white space after an opening "("
375 | ERROR | [x] There should be no white space before a closing ")"
376 | ERROR | [x] There should be no white space after an opening "("
376 | ERROR | [x] There should be no white space before a closing ")"
378 | ERROR | [x] Space found after square bracket; expected "[$term" but found "[ $term"
378 | ERROR | [x] Space found before square bracket; expected ")]" but found ") ]"
378 | ERROR | [x] Whitespace found at end of line
386 | ERROR | [x] Closing brace indented incorrectly; expected 8 spaces, found 6
391 | ERROR | [x] Missing function doc comment
391 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found
391 | ERROR | [x] There should be no white space after an opening "("
391 | ERROR | [x] There should be no white space before a closing ")"
391 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found
392 | ERROR | [x] There should be no white space after an opening "("
392 | ERROR | [x] There should be no white space before a closing ")"
393 | ERROR | [x] There should be no white space after an opening "("
393 | ERROR | [x] There should be no white space after an opening "("
393 | ERROR | [x] There should be no white space before a closing ")"
393 | ERROR | [x] There should be no white space before a closing ")"
395 | ERROR | [x] There should be no white space after an opening "("
395 | ERROR | [x] There should be no white space before a closing ")"
396 | ERROR | [x] There should be no white space after an opening "("
396 | ERROR | [x] There should be no white space before a closing ")"
397 | ERROR | [x] There should be no white space after an opening "("
397 | ERROR | [x] There should be no white space before a closing ")"
398 | ERROR | [x] There should be no white space after an opening "("
398 | ERROR | [x] There should be no white space after an opening "("
398 | ERROR | [x] There should be no white space before a closing ")"
398 | ERROR | [x] There should be no white space before a closing ")"
399 | ERROR | [x] There should be no white space after an opening "("
399 | ERROR | [x] There should be no white space before a closing ")"
400 | ERROR | [x] There should be no white space after an opening "("
400 | ERROR | [x] There should be no white space after an opening "("
400 | ERROR | [x] There should be no white space before a closing ")"
400 | ERROR | [x] There should be no white space before a closing ")"
402 | ERROR | [x] Expected newline after closing brace
403 | ERROR | [x] There should be no white space after an opening "("
403 | ERROR | [x] There should be no white space after an opening "("
403 | ERROR | [x] There should be no white space before a closing ")"
403 | ERROR | [x] There should be no white space before a closing ")"
406 | ERROR | [x] Expected 1 newline at end of file; 0 found
406 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 512 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Form\TaxonomyFilterForm.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [ ] Doc comment is empty
42 | ERROR | [ ] Doc comment is empty
49 | ERROR | [ ] Doc comment is empty
120 | ERROR | [ ] Public method name "TaxonomyFilterForm::my_form_validate" is not in lowerCamel format
131 | ERROR | [ ] Doc comment is empty
138 | ERROR | [ ] The array declaration extends to column 147 (the limit is 80). The array content should be split up over multiple lines
142 | ERROR | [ ] Doc comment is empty
149 | ERROR | [ ] Doc comment is empty
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Form\unusedFilter.php
----------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [ ] Doc comment is empty
12 | ERROR | [ ] Class name must begin with a capital letter
53 | ERROR | [ ] Doc comment is empty
56 | ERROR | [ ] Public method name "unusedFilter::custom_forms_datetime_radio_callback" is not in lowerCamel format
74 | ERROR | [ ] Doc comment is empty
82 | ERROR | [ ] Doc comment is empty
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\src\Form\UserFilterForm.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | ERROR | [x] Doc comment short description must start with a capital letter
46 | ERROR | [ ] Doc comment for parameter $container does not match actual variable name $messenger
72 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
72 | ERROR | [ ] Tags must be grouped together in a doc comment
72 | ERROR | [ ] Doc comment for parameter $date_formatter does not match actual variable name
177 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
215 | ERROR | [ ] Doc comment is empty
246 | ERROR | [ ] The array declaration extends to column 220 (the limit is 80). The array content should be split up over multiple lines
251 | ERROR | [ ] Doc comment is empty
258 | ERROR | [ ] Doc comment is empty
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\unused_data_sweeper\unused_data_sweeper.module
--------------------------------------------------------------------------------------------------
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
Steps to reproduce
Run following command:
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml unused_data_sweeper/
Proposed resolution
Above error/warnings need to be fixed.