Fix the issues reported by phpcs

Created on 4 July 2023, over 1 year ago
Updated 31 May 2024, 6 months ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/fb_social_plugins/fb_social_plugins.module
-------------------------------------------------------------------------------------------------------------------------------
FOUND 498 ERRORS AND 13 WARNINGS AFFECTING 210 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | WARNING | [x] Unused use statement
4 | ERROR | [x] When importing a class with "use", do not include a leading \
5 | ERROR | [x] When importing a class with "use", do not include a leading \
9 | WARNING | [x] Unused use statement
9 | ERROR | [x] When importing a class with "use", do not include a leading \
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] Spaces must be used to indent lines; tabs are not allowed
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
22 | 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
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
30 | ERROR | [x] Inline comments must start with a capital letter
30 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | 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] Line indented incorrectly; expected 4 spaces, found 2
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
39 | ERROR | [x] Expected 1 space after IF keyword; 0 found
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 5
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
41 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
42 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
42 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
43 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
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
47 | ERROR | [x] Expected 1 space after IF keyword; 0 found
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 5
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
49 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
50 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
51 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
54 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
54 | ERROR | [x] Expected 1 space after IF keyword; 0 found
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 5
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
56 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
57 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
58 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | 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 8 spaces, found 4
62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
63 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 5
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
64 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
65 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 6
66 | ERROR | [x] Array indentation error, expected 7 spaces but found 6
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
69 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
81 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
82 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
83 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
83 | ERROR | [x] Expected 1 space after "="; 2 found
83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
84 | ERROR | [x] Expected 1 space after "="; 2 found
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
85 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
85 | ERROR | [x] Expected 1 space after "="; 2 found
85 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
86 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
86 | ERROR | [x] Expected 1 space after "="; 2 found
86 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
89 | WARNING | [ ] Unused variable $bundle_keys.
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
93 | ERROR | [x] Expected 1 space after "="; 2 found
93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
96 | ERROR | [x] Expected 1 space after "="; 2 found
96 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
99 | ERROR | [x] Expected 1 space after "="; 2 found
99 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
101 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
102 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
102 | ERROR | [x] Expected 1 space after "="; 2 found
102 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
105 | ERROR | [x] Expected 1 space after IF keyword; 0 found
106 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
108 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
108 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
109 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
109 | ERROR | [x] Expected 1 space after IF keyword; 0 found
110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
110 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
110 | ERROR | [x] Short array syntax must be used to define arrays
111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
111 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
111 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
112 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
112 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
112 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
112 | ERROR | [x] Expected 1 space before "??"; 0 found
112 | ERROR | [x] Expected 1 space after "??"; 0 found
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
113 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
113 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
113 | ERROR | [x] Expected 1 space before "??"; 0 found
113 | ERROR | [x] Expected 1 space after "??"; 0 found
114 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
114 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
114 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
114 | ERROR | [x] Expected 1 space before "??"; 0 found
114 | ERROR | [x] Expected 1 space after "??"; 0 found
115 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
115 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
115 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
115 | ERROR | [x] Expected 1 space before "??"; 0 found
115 | ERROR | [x] Expected 1 space after "??"; 0 found
116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
116 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
116 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
116 | ERROR | [x] Expected 1 space before "?"; 0 found
116 | ERROR | [x] Expected 1 space after "?"; 0 found
116 | ERROR | [x] Expected 1 space before ":"; 0 found
116 | ERROR | [x] Expected 1 space after ":"; 0 found
118 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
119 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
120 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
121 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
121 | WARNING | [x] A comma should follow the last multiline array item. Found: $like_button_data
122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
124 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
126 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
126 | ERROR | [x] Expected 1 space after IF keyword; 0 found
127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
128 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
128 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
129 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
129 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
129 | ERROR | [x] Expected 1 space after IF keyword; 0 found
130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
130 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
130 | ERROR | [x] Concat operator must be surrounded by a single space
130 | ERROR | [x] Concat operator must be surrounded by a single space
131 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
131 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
133 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
133 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
133 | ERROR | [x] Short array syntax must be used to define arrays
134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
134 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
135 | ERROR | [x] Expected 1 space before "??"; 0 found
135 | ERROR | [x] Expected 1 space after "??"; 0 found
136 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
136 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
136 | ERROR | [x] Expected 1 space before "??"; 0 found
136 | ERROR | [x] Expected 1 space after "??"; 0 found
137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
137 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
137 | WARNING | [x] A comma should follow the last multiline array item. Found: $url_parsed
138 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
139 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
139 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
140 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
140 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
141 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
141 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
141 | WARNING | [x] A comma should follow the last multiline array item. Found: $share_button_data
142 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
143 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
144 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
146 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
146 | ERROR | [x] Expected 1 space after IF keyword; 0 found
147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
147 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
148 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
148 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
149 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
149 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
149 | ERROR | [x] Expected 1 space after IF keyword; 0 found
150 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
150 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
150 | ERROR | [x] Short array syntax must be used to define arrays
151 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
151 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
151 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
151 | ERROR | [x] Expected 1 space before "??"; 0 found
151 | ERROR | [x] Expected 1 space after "??"; 0 found
152 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
152 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
152 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
152 | ERROR | [x] Expected 1 space before "??"; 0 found
152 | ERROR | [x] Expected 1 space after "??"; 0 found
153 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
153 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
153 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
153 | ERROR | [x] Expected 1 space before "??"; 0 found
153 | ERROR | [x] Expected 1 space after "??"; 0 found
154 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
154 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
154 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
154 | ERROR | [x] Expected 1 space before "??"; 0 found
154 | ERROR | [x] Expected 1 space after "??"; 0 found
155 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
155 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
155 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
155 | ERROR | [x] Expected 1 space before "?"; 0 found
155 | ERROR | [x] Expected 1 space after "?"; 0 found
155 | ERROR | [x] Expected 1 space before ":"; 0 found
155 | ERROR | [x] Expected 1 space after ":"; 0 found
156 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
156 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
156 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
156 | ERROR | [x] Expected 1 space before "?"; 0 found
156 | ERROR | [x] Expected 1 space after "?"; 0 found
156 | ERROR | [x] Expected 1 space before ":"; 0 found
156 | ERROR | [x] Expected 1 space after ":"; 0 found
157 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
157 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
157 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
157 | ERROR | [x] Expected 1 space before "?"; 0 found
157 | ERROR | [x] Expected 1 space after "?"; 0 found
157 | ERROR | [x] Expected 1 space before ":"; 0 found
157 | ERROR | [x] Expected 1 space after ":"; 0 found
158 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
158 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
158 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
158 | ERROR | [x] Expected 1 space before "?"; 0 found
158 | ERROR | [x] Expected 1 space after "?"; 0 found
158 | ERROR | [x] Expected 1 space before ":"; 0 found
158 | ERROR | [x] Expected 1 space after ":"; 0 found
160 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
161 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
161 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
162 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
162 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
163 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
163 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
163 | WARNING | [x] A comma should follow the last multiline array item. Found: $page_plugin_data
164 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
165 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
165 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
166 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
168 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
168 | ERROR | [x] Expected 1 space after IF keyword; 0 found
169 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
169 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
170 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
170 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
171 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
171 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
171 | ERROR | [x] Expected 1 space after IF keyword; 0 found
172 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
172 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
172 | ERROR | [x] Short array syntax must be used to define arrays
173 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
173 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
174 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
174 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
174 | ERROR | [x] Expected 1 space before "??"; 0 found
174 | ERROR | [x] Expected 1 space after "??"; 0 found
175 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
175 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
175 | ERROR | [x] Expected 1 space before "??"; 0 found
175 | ERROR | [x] Expected 1 space after "??"; 0 found
175 | WARNING | [x] A comma should follow the last multiline array item. Found: '5'
176 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
177 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
177 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
178 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
178 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
179 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
179 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 5
179 | WARNING | [x] A comma should follow the last multiline array item. Found: $comments_plugin_data
180 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
181 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
181 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
182 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
184 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
184 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
184 | ERROR | [x] Expected 1 space after IF keyword; 0 found
185 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
185 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
186 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
187 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
187 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
195 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
196 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
196 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
197 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
197 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
198 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
199 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
199 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
200 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
200 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
201 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
202 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
202 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
203 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
203 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
204 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
205 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
205 | ERROR | [x] Array indentation error, expected 3 spaces but found 2
206 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
206 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
207 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
208 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
211 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
214 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
214 | ERROR | [ ] Invalid function name, expected get_all_content_entities but found getAllContentEntities
215 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
215 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
216 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
216 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
218 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
219 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
220 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
220 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
221 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
222 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
222 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
224 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
224 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
225 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
227 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
228 | ERROR | [x] Doc comment short description must end with a full stop
229 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
229 | ERROR | [ ] Return type missing for @return tag in function comment
229 | ERROR | [ ] Description for the @return value is missing
231 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
232 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
232 | ERROR | [x] Expected one space after the comma, 0 found
232 | ERROR | [x] Short array syntax must be used to define arrays
232 | ERROR | [x] Expected one space after the comma, 0 found
232 | ERROR | [x] Short array syntax must be used to define arrays
232 | ERROR | [x] Expected 1 space between "'absolute'" and double arrow; 0 found
232 | ERROR | [x] Expected 1 space between double arrow and "'true'"; 0 found
232 | ERROR | [x] Expected 1 space before "=>"; 0 found
232 | ERROR | [x] Expected 1 space after "=>"; 0 found
233 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
233 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
234 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
244 | ERROR | [x] Doc comment long description must end with a full stop
246 | ERROR | [ ] fb_social_plugins_uninstall() is an installation hook and must be declared in an install file
247 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
247 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
248 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
248 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
249 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
249 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
250 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
250 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
257 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
257 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
259 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
260 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
260 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
261 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
261 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
262 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
262 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
263 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
263 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 2
265 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
265 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
266 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
267 | ERROR | [x] Expected 1 blank line after function; 0 found
272 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
272 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
272 | ERROR | [x] Expected 1 space after IF keyword; 0 found
273 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
273 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
274 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
274 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
275 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
275 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
276 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
276 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
277 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
277 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
278 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
278 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
279 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
279 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
280 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
280 | ERROR | [x] Case breaking statement indented incorrectly; expected 5 spaces, found 3
281 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
281 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
282 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
282 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
283 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 506 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/templates/fbsp-like-button.html.twig
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/templates/fbsp-share-button.html.twig
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/templates/fbsp-comments-plugin.html.twig
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/fb_social_plugins.permissions.yml
---------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Form/FbShareSettingsForm.php
----------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 4 WARNINGS AFFECTING 16 LINES
----------------------------------------------------------------------------------------------
80 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
81 | WARNING | [x] A comma should follow the last multiline array item. Found: )
86 | ERROR | [x] Short array syntax must be used to define arrays
89 | WARNING | [x] A comma should follow the last multiline array item. Found: )
97 | ERROR | [x] Short array syntax must be used to define arrays
99 | WARNING | [x] A comma should follow the last multiline array item. Found: )
107 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
124 | WARNING | [x] A comma should follow the last multiline array item. Found: 'path_alias'
129 | ERROR | [x] Expected 1 space after IF keyword; 0 found
131 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
138 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
143 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
145 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
146 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
157 | ERROR | [x] Expected 1 space after IF keyword; 0 found
184 | ERROR | [x] Expected 1 space after IF keyword; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Form/FbCommentsPluginSettingsForm.php
----------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 4 WARNINGS AFFECTING 15 LINES
----------------------------------------------------------------------------------------------
80 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
81 | WARNING | [x] A comma should follow the last multiline array item. Found: )
88 | WARNING | [x] A comma should follow the last multiline array item. Found: )
96 | ERROR | [x] Expected 1 space before "??"; 0 found
96 | ERROR | [x] Expected 1 space after "??"; 0 found
97 | WARNING | [x] A comma should follow the last multiline array item. Found: )
105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
120 | WARNING | [x] A comma should follow the last multiline array item. Found: 'path_alias'
125 | ERROR | [x] Expected 1 space after IF keyword; 0 found
127 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
134 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
139 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
141 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
142 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
153 | ERROR | [x] Expected 1 space after IF keyword; 0 found
180 | ERROR | [x] Expected 1 space after IF keyword; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Form/FbLikeSettingsForm.php
----------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 6 WARNINGS AFFECTING 19 LINES
----------------------------------------------------------------------------------------------
80 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
81 | WARNING | [x] A comma should follow the last multiline array item. Found: )
86 | ERROR | [x] Short array syntax must be used to define arrays
90 | WARNING | [x] A comma should follow the last multiline array item. Found: )
98 | WARNING | [x] A comma should follow the last multiline array item. Found: )
103 | ERROR | [x] Short array syntax must be used to define arrays
105 | WARNING | [x] A comma should follow the last multiline array item. Found: )
113 | ERROR | [x] Short array syntax must be used to define arrays
115 | WARNING | [x] A comma should follow the last multiline array item. Found: )
129 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
146 | WARNING | [x] A comma should follow the last multiline array item. Found: 'path_alias'
151 | ERROR | [x] Expected 1 space after IF keyword; 0 found
153 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
160 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
165 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
167 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
168 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
180 | ERROR | [x] Expected 1 space after IF keyword; 0 found
208 | ERROR | [x] Expected 1 space after IF keyword; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Form/FbPagePluginSettingsForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 11 WARNINGS AFFECTING 23 LINES
-----------------------------------------------------------------------------------------------------------
80 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
81 | WARNING | [x] A comma should follow the last multiline array item. Found: )
89 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
90 | WARNING | [x] A comma should follow the last multiline array item. Found: )
97 | WARNING | [x] A comma should follow the last multiline array item. Found: )
103 | ERROR | [x] Expected 1 space before "??"; 0 found
103 | ERROR | [x] Expected 1 space after "??"; 0 found
104 | WARNING | [x] A comma should follow the last multiline array item. Found: )
110 | WARNING | [x] A comma should follow the last multiline array item. Found: )
116 | WARNING | [x] A comma should follow the last multiline array item. Found: )
121 | WARNING | [x] A comma should follow the last multiline array item. Found: )
126 | ERROR | [x] Expected 1 space before "??"; 0 found
126 | ERROR | [x] Expected 1 space after "??"; 0 found
126 | WARNING | [x] A comma should follow the last multiline array item. Found: true
126 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
130 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
131 | ERROR | [x] Expected 1 space before "??"; 0 found
131 | ERROR | [x] Expected 1 space after "??"; 0 found
131 | WARNING | [x] A comma should follow the last multiline array item. Found: true
131 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
139 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
154 | WARNING | [x] A comma should follow the last multiline array item. Found: 'path_alias'
159 | ERROR | [x] Expected 1 space after IF keyword; 0 found
161 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
168 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
173 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
175 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
176 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 10
187 | ERROR | [x] Expected 1 space after IF keyword; 0 found
214 | ERROR | [x] Expected 1 space after IF keyword; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 29 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Plugin/Block/FbShareBlock.php
----------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 7 WARNINGS AFFECTING 19 LINES
----------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
54 | ERROR | [x] Short array syntax must be used to define arrays
57 | WARNING | [x] A comma should follow the last multiline array item. Found: )
59 | ERROR | [x] Expected 1 space before "??"; 0 found
59 | ERROR | [x] Expected 1 space after "??"; 0 found
65 | ERROR | [x] Short array syntax must be used to define arrays
67 | WARNING | [x] A comma should follow the last multiline array item. Found: )
69 | ERROR | [x] Expected 1 space before "??"; 0 found
69 | ERROR | [x] Expected 1 space after "??"; 0 found
80 | ERROR | [x] Expected 1 space after IF keyword; 0 found
92 | ERROR | [x] Concat operator must be surrounded by a single space
92 | ERROR | [x] Concat operator must be surrounded by a single space
94 | ERROR | [x] Expected 1 space before "??"; 0 found
94 | ERROR | [x] Expected 1 space after "??"; 0 found
95 | WARNING | [ ] Unused variable $width.
95 | ERROR | [x] Expected 1 space before "??"; 0 found
95 | ERROR | [x] Expected 1 space after "??"; 0 found
96 | ERROR | [x] Expected 1 space before "??"; 0 found
96 | ERROR | [x] Expected 1 space after "??"; 0 found
98 | ERROR | [x] Short array syntax must be used to define arrays
102 | WARNING | [x] A comma should follow the last multiline array item. Found: $url_parsed
114 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Plugin/Block/FbLikeBlock.php
----------------------------------------------------------------------------------------------
FOUND 25 ERRORS AND 7 WARNINGS AFFECTING 23 LINES
----------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
48 | ERROR | [x] Short array syntax must be used to define arrays
52 | WARNING | [x] A comma should follow the last multiline array item. Found: )
54 | ERROR | [x] Expected 1 space before "??"; 0 found
54 | ERROR | [x] Expected 1 space after "??"; 0 found
60 | ERROR | [x] Expected 1 space before "??"; 0 found
60 | ERROR | [x] Expected 1 space after "??"; 0 found
61 | WARNING | [x] A comma should follow the last multiline array item. Found: )
67 | ERROR | [x] Short array syntax must be used to define arrays
69 | WARNING | [x] A comma should follow the last multiline array item. Found: )
71 | ERROR | [x] Expected 1 space before "??"; 0 found
71 | ERROR | [x] Expected 1 space after "??"; 0 found
77 | ERROR | [x] Short array syntax must be used to define arrays
79 | WARNING | [x] A comma should follow the last multiline array item. Found: )
81 | ERROR | [x] Expected 1 space before "??"; 0 found
81 | ERROR | [x] Expected 1 space after "??"; 0 found
87 | ERROR | [x] Expected 1 space before "??"; 0 found
87 | ERROR | [x] Expected 1 space after "??"; 0 found
98 | ERROR | [x] Expected 1 space after IF keyword; 0 found
112 | ERROR | [x] Expected 1 space before "??"; 0 found
112 | ERROR | [x] Expected 1 space after "??"; 0 found
113 | ERROR | [x] Expected 1 space before "??"; 0 found
113 | ERROR | [x] Expected 1 space after "??"; 0 found
114 | ERROR | [x] Expected 1 space before "??"; 0 found
114 | ERROR | [x] Expected 1 space after "??"; 0 found
115 | ERROR | [x] Expected 1 space before "??"; 0 found
115 | ERROR | [x] Expected 1 space after "??"; 0 found
119 | ERROR | [x] Short array syntax must be used to define arrays
136 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 32 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Plugin/Block/FbCommentsPluginBlock.php
---------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AND 5 WARNINGS AFFECTING 25 LINES
---------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
48 | ERROR | [x] Expected 1 space before "??"; 0 found
48 | ERROR | [x] Expected 1 space after "??"; 0 found
49 | WARNING | [x] A comma should follow the last multiline array item. Found: )
57 | ERROR | [x] Expected 1 space before "??"; 0 found
57 | ERROR | [x] Expected 1 space after "??"; 0 found
58 | WARNING | [x] A comma should follow the last multiline array item. Found: )
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
80 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
80 | ERROR | [x] Short array syntax must be used to define arrays
80 | ERROR | [x] Short array syntax must be used to define arrays
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
82 | ERROR | [x] Expected 1 space before "??"; 0 found
82 | ERROR | [x] Expected 1 space after "??"; 0 found
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
83 | ERROR | [x] Expected 1 space before "??"; 0 found
83 | ERROR | [x] Expected 1 space after "??"; 0 found
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
85 | ERROR | [x] Short array syntax must be used to define arrays
86 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
87 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
88 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
89 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 2
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
93 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
94 | ERROR | [x] Array indentation error, expected 5 spaces but found 4
95 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 2
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
98 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
100 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 36 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/fb_social_plugins/src/Plugin/Block/FbPagePluginBlock.php
-----------------------------------------------------------------------------------------------------------
FOUND 36 ERRORS AND 11 WARNINGS AFFECTING 27 LINES
-----------------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
48 | ERROR | [x] Expected 1 space before "??"; 0 found
48 | ERROR | [x] Expected 1 space after "??"; 0 found
51 | WARNING | [x] A comma should follow the last multiline array item. Found: true
51 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
57 | ERROR | [x] Expected 1 space before "??"; 0 found
57 | ERROR | [x] Expected 1 space after "??"; 0 found
58 | WARNING | [x] A comma should follow the last multiline array item. Found: )
64 | ERROR | [x] Expected 1 space before "??"; 0 found
64 | ERROR | [x] Expected 1 space after "??"; 0 found
65 | WARNING | [x] A comma should follow the last multiline array item. Found: )
71 | ERROR | [x] Expected 1 space before "??"; 0 found
71 | ERROR | [x] Expected 1 space after "??"; 0 found
72 | WARNING | [x] A comma should follow the last multiline array item. Found: )
78 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
84 | ERROR | [x] Expected 1 space before "??"; 0 found
84 | ERROR | [x] Expected 1 space after "??"; 0 found
90 | ERROR | [x] Expected 1 space before "??"; 0 found
90 | ERROR | [x] Expected 1 space after "??"; 0 found
90 | WARNING | [x] A comma should follow the last multiline array item. Found: true
90 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
95 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
96 | ERROR | [x] Expected 1 space before "??"; 0 found
96 | ERROR | [x] Expected 1 space after "??"; 0 found
96 | WARNING | [x] A comma should follow the last multiline array item. Found: true
96 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
122 | ERROR | [x] Expected 1 space before "??"; 0 found
122 | ERROR | [x] Expected 1 space after "??"; 0 found
123 | ERROR | [x] Expected 1 space before "??"; 0 found
123 | ERROR | [x] Expected 1 space after "??"; 0 found
124 | ERROR | [x] Expected 1 space before "??"; 0 found
124 | ERROR | [x] Expected 1 space after "??"; 0 found
125 | ERROR | [x] Expected 1 space before "??"; 0 found
125 | ERROR | [x] Expected 1 space after "??"; 0 found
126 | ERROR | [x] Expected 1 space before "??"; 0 found
126 | ERROR | [x] Expected 1 space after "??"; 0 found
127 | ERROR | [x] Expected 1 space before "??"; 0 found
127 | ERROR | [x] Expected 1 space after "??"; 0 found
128 | ERROR | [x] Expected 1 space before "??"; 0 found
128 | ERROR | [x] Expected 1 space after "??"; 0 found
129 | ERROR | [x] Expected 1 space before "??"; 0 found
129 | ERROR | [x] Expected 1 space after "??"; 0 found
131 | ERROR | [x] Short array syntax must be used to define arrays
151 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

Time: 276ms; Memory: 12MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig fb_social_plugins/

Remaining tasks

Patch review

šŸ“Œ Task
Status

RTBC

Version

1.2

Component

Code

Created by

šŸ‡®šŸ‡³India urvashi_vora Madhya Pradesh, India

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @urvashi_vora
  • Status changed to Needs work over 1 year ago
  • Hii, @urvashi_vora
    I have Review your patch.

    These are the steps I followed:

    1. Took clone from git version 1.2.1 in drupal 10.1.x

    2. Applied patch and ran this command:

    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/fb_social_plugins/

    3. Applied your patch and again ran phpcs command

    found errors.

    Needs work.

  • Assigned to nitin_lama
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • šŸ‡®šŸ‡³India nitin_lama India

    Updated patch.

  • Status changed to Needs work 6 months ago
  • Hi @nitin_lama,

    I applied patch #4, it applied successfully however it still threw multiple errors.

    fb_social_plugins git:(master) curl https://www.drupal.org/files/issues/2023-08-28/coding_standard_fixes_4.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 60421  100 60421    0     0   247k      0 --:--:-- --:--:-- --:--:--  256k
    patching file fb_social_plugins.module
    patching file fb_social_plugins.permissions.yml
    patching file src/Form/FbCommentsPluginSettingsForm.php
    patching file src/Form/FbLikeSettingsForm.php
    patching file src/Form/FbPagePluginSettingsForm.php
    patching file src/Form/FbShareSettingsForm.php
    patching file src/Plugin/Block/FbCommentsPluginBlock.php
    patching file src/Plugin/Block/FbLikeBlock.php
    patching file src/Plugin/Block/FbPagePluginBlock.php
    patching file src/Plugin/Block/FbShareBlock.php
    patching file templates/fbsp-comments-plugin.html.twig
    patching file templates/fbsp-like-button.html.twig
    patching file templates/fbsp-share-button.html.twig
    fb_social_plugins git:(master) āœ— cd ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig fb_social_plugins
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/fb_social_plugins.module
    -----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------
     9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\Display\EntityViewDisplayInterface.
    -----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/src/Form/FbLikeSettingsForm.php
    -----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandler.
    -----------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/src/Form/FbCommentsPluginSettingsForm.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandler.
    ------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/src/Form/FbPagePluginSettingsForm.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandler.
    --------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/src/Form/FbShareSettingsForm.php
    -----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandler.
    -----------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue/web/modules/contrib/fb_social_plugins/src/Plugin/Block/FbCommentsPluginBlock.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------
     6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Block\BlockBase.
    -------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------
    
    Time: 553ms; Memory: 12MB

    Kindly check

    Thanks,
    Jake

  • First commit to issue fork.
  • Status changed to Needs review 6 months ago
  • šŸ‡®šŸ‡³India atul_ghate

    Added MR to fixed all phpcs issue please review and merge.

  • Status changed to RTBC 6 months ago
  • Hi @everyone,

    Applied #8's adjustments successfully and all errors fixed.

    fb_social_plugins git:(master) āœ— curl https://git.drupalcode.org/project/fb_social_plugins/-/merge_requests/2.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 63261    0 63261    0     0   138k      0 --:--:-- --:--:-- --:--:--  140k
    patching file fb_social_plugins.module
    patching file fb_social_plugins.permissions.yml
    patching file src/Form/FbCommentsPluginSettingsForm.php
    patching file src/Form/FbLikeSettingsForm.php
    patching file src/Form/FbPagePluginSettingsForm.php
    patching file src/Form/FbShareSettingsForm.php
    patching file src/Plugin/Block/FbCommentsPluginBlock.php
    patching file src/Plugin/Block/FbLikeBlock.php
    patching file src/Plugin/Block/FbPagePluginBlock.php
    patching file src/Plugin/Block/FbShareBlock.php
    patching file templates/fbsp-comments-plugin.html.twig
    patching file templates/fbsp-like-button.html.twig
    patching file templates/fbsp-share-button.html.twig
    āžœ  fb_social_plugins git:(master) āœ— cd ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig fb_social_plugins
    āžœ  contrib git:(main) āœ—

    Will move this to RTBC.

    Thank you.

Production build 0.71.5 2024