Problem/Motivation
There is a files need to fixed with coding standards.
Here is the command : -
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml web/modules/contrib/magnify/
Result :-
FILE: /home/chandansha/docker/testd10/web/modules/contrib/magnify/js/magnify_config.js
--------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 space before "+"; 0 found
7 | ERROR | [x] Expected 1 space after "+"; 0 found
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: /home/chandansha/docker/testd10/web/modules/contrib/magnify/magnify.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: /home/chandansha/docker/testd10/web/modules/contrib/magnify/src/Plugin/Field/FieldFormatter/MagnifyFieldFormatter.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 141 ERRORS AFFECTING 141 LINES
---------------------------------------------------------------------------------------------------------------------------
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
106 | ERROR | [x] Array indentation error, expected 10 spaces but found 16
107 | ERROR | [x] Array indentation error, expected 10 spaces but found 16
108 | ERROR | [x] Array indentation error, expected 10 spaces but found 16
110 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 12
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
116 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
124 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
125 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
126 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
127 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
128 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
129 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
130 | ERROR | [x] Array indentation error, expected 14 spaces but found 20
131 | ERROR | [x] Array closing indentation error, expected 12 spaces but found 16
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
135 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
136 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
137 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
138 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
139 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
143 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
144 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
145 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
146 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
150 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
151 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
152 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
153 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
154 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
158 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
159 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
160 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
161 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
164 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
166 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
172 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
175 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
178 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
179 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
183 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
184 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
189 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
190 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
191 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
193 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
195 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
198 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
201 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
204 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
205 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
206 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
207 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
209 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
210 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
213 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
214 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
218 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
219 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
220 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
221 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
222 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
223 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
224 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
225 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
226 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
227 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
228 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
229 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
230 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
231 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
234 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
236 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
237 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
239 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
240 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
241 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
242 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
243 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
244 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
245 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
246 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
247 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
249 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
252 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
253 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
254 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
255 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
256 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
260 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
262 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
263 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
269 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 141 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
Time: 220ms; Memory: 10MB
Steps to reproduce
Run PHPCS on Magnify Images module.
Proposed resolution
Fixed the coding standards.
Remaining tasks
Submit the patch either MR .