- 🇮🇳India riddhi.addweb
I have applied the "phpcs-3324347-#3.patch " patch but still some errors are there.
Please check the screenshot for the same. - Status changed to Needs work
9 months ago 6:58am 13 July 2024
ILE: ...html/drupal_cms/drupal9/web/modules/contrib/fancybox_ui/fancybox_ui.module
--------------------------------------------------------------------------------
FOUND 34 ERRORS AFFECTING 19 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
11 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
12 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
12 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
13 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
14 | ERROR | [x] Case breaking statement indented incorrectly; expected 4
| | spaces, found 2
15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
16 | ERROR | [x] Expected 1 blank line after function; 2 found
23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
29 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | ERROR | [x] Array indentation error, expected 4 spaces but found 3
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...w/html/drupal_cms/drupal9/web/modules/contrib/fancybox_ui/css/fancybox.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------
FILE: ...rib/fancybox_ui/src/Plugin/Field/FieldFormatter/FancyboxImageFormatter.php
--------------------------------------------------------------------------------
FOUND 61 ERRORS AND 9 WARNINGS AFFECTING 56 LINES
--------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
30 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
54 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
61 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
68 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
96 | ERROR | [x] Expected 1 space after IF keyword; 0 found
97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
98 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces,
| | found 3
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
101 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces,
| | found 1
101 | ERROR | [x] Expected 1 blank line after function; 2 found
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
116 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
| | injection instead
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
117 | ERROR | [x] Expected 1 space after IF keyword; 0 found
118 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
118 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
| | injection instead
119 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
121 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
121 | ERROR | [x] Concat operator must be surrounded by a single space
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
125 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
130 | WARNING | [ ] Unused variable $url.
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
134 | ERROR | [x] Expected 1 space after IF keyword; 0 found
135 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
136 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
136 | ERROR | [x] Concat operator must be surrounded by a single space
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
141 | ERROR | [x] Whitespace found at end of line
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
143 | WARNING | [ ] Unused variable $url.
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
151 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
151 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
| | injection instead
152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
153 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
154 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
155 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
157 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
160 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
161 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
163 | ERROR | [x] Closing brace indented incorrectly; expected 7 spaces,
| | found 6
170 | ERROR | [x] Expected 1 space after IF keyword; 0 found
172 | ERROR | [x] Expected 1 space before "??"; 0 found
172 | ERROR | [x] Expected 1 space after "??"; 0 found
189 | ERROR | [x] Closing brace indented incorrectly; expected 6 spaces,
| | found 4
191 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces,
| | found 2
191 | ERROR | [x] Expected 1 blank line after function; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 65 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ww/html/drupal_cms/drupal9/web/modules/contrib/fancybox_ui/image.field.inc
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
22 | ERROR | [ ] Type hint "array" missing for $variables
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...upal_cms/drupal9/web/modules/contrib/fancybox_ui/fancybox_ui.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
--------------------------------------------------------------------------------
Time: 136ms; Memory: 14MB
Needs work
1.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I have applied the "phpcs-3324347-#3.patch " patch but still some errors are there.
Please check the screenshot for the same.