Fix the issues reported by phpcs

Created on 16 February 2024, 10 months ago

Problem/Motivation

FOUND 123 ERRORS AND 18 WARNINGS AFFECTING 92 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\DependencyInjection\ContainerInterface.
22 | ERROR | [x] Missing class doc comment
47 | ERROR | [x] Missing function doc comment
54 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
55 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
56 | ERROR | [x] Concat operator must be surrounded by a single space
61 | ERROR | [x] Expected 1 space after IF keyword; 0 found
63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
75 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
77 | ERROR | [x] Expected 1 space after "="; 2 found
77 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
80 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
82 | ERROR | [x] Expected 1 space after "="; 2 found
82 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
88 | ERROR | [x] The first index in a multi-value array must be on a new line
89 | ERROR | [x] Expected 1 space before "=>"; 0 found
89 | 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
91 | ERROR | [x] Expected 1 space before "=>"; 0 found
91 | ERROR | [x] Expected 1 space after "=>"; 0 found
94 | WARNING | [x] A comma should follow the last multiline array item. Found: $pagesTotal
104 | ERROR | [x] Missing function doc comment
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
110 | ERROR | [x] Expected 1 space after IF keyword; 0 found
120 | ERROR | [x] Expected 1 space after IF keyword; 0 found
126 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
127 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
128 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
130 | ERROR | [x] Expected 1 space after IF keyword; 0 found
132 | ERROR | [x] Expected 1 space after IF keyword; 0 found
138 | ERROR | [x] Expected 1 space after IF keyword; 0 found
139 | ERROR | [x] Concat operator must be surrounded by a single space
140 | ERROR | [x] Expected newline after closing brace
141 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
146 | ERROR | [x] Expected 1 space after IF keyword; 0 found
147 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
149 | ERROR | [x] Expected 1 space after "="; 2 found
149 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
155 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
156 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
158 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
159 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
165 | WARNING | [x] There must be no blank line following an inline comment
165 | WARNING | [ ] There must be no blank line following an inline comment
165 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
167 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
168 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
170 | ERROR | [x] Concat operator must be surrounded by a single space
172 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
178 | ERROR | [x] Missing function doc comment
183 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
185 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
190 | ERROR | [x] Expected 1 space after IF keyword; 0 found
191 | ERROR | [x] Expected one space after the comma, 0 found
194 | ERROR | [x] Expected 1 space after IF keyword; 0 found
198 | ERROR | [x] Expected 1 space after IF keyword; 0 found
202 | ERROR | [x] Expected 1 space after IF keyword; 0 found
206 | ERROR | [x] Expected 1 space after IF keyword; 0 found
210 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
212 | ERROR | [x] Expected 1 space after IF keyword; 0 found
216 | ERROR | [x] Expected one space after the comma, 0 found
219 | ERROR | [x] Expected 1 space between "'results'" and double arrow; 0 found
219 | ERROR | [x] Expected 1 space between double arrow and "$results"; 0 found
219 | ERROR | [x] Expected 1 space before "=>"; 0 found
219 | ERROR | [x] Expected 1 space after "=>"; 0 found
219 | ERROR | [x] Expected 1 space between "'total'" and double arrow; 0 found
219 | ERROR | [x] Expected 1 space between double arrow and "count"; 0 found
219 | ERROR | [x] Expected 1 space before "=>"; 0 found
219 | ERROR | [x] Expected 1 space after "=>"; 0 found
219 | ERROR | [x] Expected one space after the comma, 0 found
222 | ERROR | [x] Missing function doc comment
237 | ERROR | [x] Missing function doc comment
242 | ERROR | [x] Expected 1 space after IF keyword; 0 found
244 | ERROR | [x] Expected 1 space after IF keyword; 0 found
248 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
250 | ERROR | [x] Expected one space after the comma, 0 found
250 | ERROR | [ ] The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple lines
250 | ERROR | [x] Expected 1 space between "'action'" and double arrow; 0 found
250 | ERROR | [x] Expected 1 space between double arrow and "'save'"; 0 found
250 | ERROR | [x] Expected 1 space before "=>"; 0 found
250 | ERROR | [x] Expected 1 space after "=>"; 0 found
250 | ERROR | [x] Expected 1 space between comma and "'id'"; 0 found
250 | ERROR | [x] Expected one space after the comma, 0 found
250 | ERROR | [x] Expected 1 space between "'id'" and double arrow; 0 found
250 | ERROR | [x] Expected 1 space between double arrow and "$cacheId"; 0 found
250 | ERROR | [x] Expected 1 space before "=>"; 0 found
250 | ERROR | [x] Expected 1 space after "=>"; 0 found
251 | ERROR | [x] Expected one space after the comma, 0 found
251 | ERROR | [ ] The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
251 | ERROR | [x] Expected 1 space between "'action'" and double arrow; 0 found
251 | ERROR | [x] Expected 1 space between double arrow and "'delete'"; 0 found
251 | ERROR | [x] Expected 1 space before "=>"; 0 found
251 | ERROR | [x] Expected 1 space after "=>"; 0 found
251 | ERROR | [x] Expected 1 space between comma and "'id'"; 0 found
251 | ERROR | [x] Expected one space after the comma, 0 found
251 | ERROR | [x] Expected 1 space between "'id'" and double arrow; 0 found
251 | ERROR | [x] Expected 1 space between double arrow and "$cacheId"; 0 found
251 | ERROR | [x] Expected 1 space before "=>"; 0 found
251 | ERROR | [x] Expected 1 space after "=>"; 0 found
252 | ERROR | [ ] The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
252 | ERROR | [x] Expected 1 space between "'results'" and double arrow; 0 found
252 | ERROR | [x] Expected 1 space before "=>"; 0 found
252 | ERROR | [x] Expected 1 space between "'delete'" and double arrow; 0 found
252 | ERROR | [x] Expected 1 space between double arrow and "$delete"; 0 found
252 | ERROR | [x] Expected 1 space before "=>"; 0 found
252 | ERROR | [x] Expected 1 space after "=>"; 0 found
256 | ERROR | [x] Expected 1 space between "'results'" and double arrow; 0 found
256 | ERROR | [x] Expected 1 space before "=>"; 0 found
259 | ERROR | [x] Expected 1 space between "'results'" and double arrow; 0 found
259 | ERROR | [x] Expected 1 space between double arrow and "'Product id (s) not provided'"; 0 found
259 | ERROR | [x] Expected 1 space before "=>"; 0 found
259 | ERROR | [x] Expected 1 space after "=>"; 0 found
262 | ERROR | [x] Missing function doc comment
267 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
270 | ERROR | [x] Expected 1 space after IF keyword; 0 found
271 | ERROR | [x] Expected 1 space after IF keyword; 0 found
273 | ERROR | [x] Expected 1 space after IF keyword; 0 found
275 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
275 | ERROR | [x] Concat operator must be surrounded by a single space
285 | ERROR | [x] Expected 1 space after IF keyword; 0 found
287 | ERROR | [x] Expected 1 space after IF keyword; 0 found
295 | ERROR | [x] Expected 1 space after IF keyword; 0 found
297 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
299 | ERROR | [x] Expected 1 space after IF keyword; 0 found
300 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
301 | ERROR | [x] Expected 1 space after IF keyword; 0 found
302 | WARNING | [ ] File::load calls should be avoided in classes, use dependency injection instead
305 | ERROR | [x] Expected 1 space after IF keyword; 0 found
307 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
316 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
325 | ERROR | [x] Missing function doc comment
326 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
331 | ERROR | [x] Expected 1 space after IF keyword; 0 found
337 | ERROR | [x] Expected 1 space after "="; 0 found
338 | ERROR | [x] Expected 1 space after IF keyword; 0 found
340 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
344 | ERROR | [x] Language constructs must be followed by a single space; expected 1 space but found "··"
345 | ERROR | [x] Expected 1 blank line after function; 0 found
346 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 122 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Form/EbookContentTypeForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 40 ERRORS AND 4 WARNINGS AFFECTING 35 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Missing class doc comment
14 | ERROR | [ ] Parameter $messenger is not described in comment
17 | ERROR | [x] Data types in @param tags need to be fully namespaced
33 | ERROR | [x] Expected 1 blank line after function; 2 found
36 | ERROR | [x] Missing function doc comment
40 | ERROR | [x] Missing function doc comment
44 | ERROR | [x] Expected 1 space after "="; 0 found
49 | ERROR | [x] Short array syntax must be used to define arrays
51 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
52 | ERROR | [x] Expected 1 space after "=>"; 0 found
53 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
55 | ERROR | [x] Short array syntax must be used to define arrays
56 | ERROR | [x] Short array syntax must be used to define arrays
64 | ERROR | [x] Short array syntax must be used to define arrays
66 | ERROR | [x] Short array syntax must be used to define arrays
72 | ERROR | [x] Expected one space after the comma, 0 found
75 | ERROR | [x] Short array syntax must be used to define arrays
77 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
81 | ERROR | [x] Expected 1 blank line after function; 2 found
84 | ERROR | [x] Missing function doc comment
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
86 | ERROR | [x] Expected one space after the comma, 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
86 | ERROR | [x] Expected one space after the comma, 0 found
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
87 | ERROR | [x] Expected 1 space before "=>"; 0 found
87 | 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
88 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
88 | ERROR | [x] Expected 1 space after IF keyword; 0 found
89 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 7
90 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
93 | ERROR | [x] Expected 1 space after IF keyword; 0 found
108 | ERROR | [x] Missing function doc comment
112 | ERROR | [x] Expected 1 space after IF keyword; 0 found
118 | ERROR | [x] Expected 1 space after IF keyword; 0 found
123 | ERROR | [x] Expected 1 space after "=>"; 0 found
124 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
128 | ERROR | [x] Expected 1 blank line after function; 0 found
129 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 39 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Form/PacktForm.php
---------------------------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 12 LINES
---------------------------------------------------------------------------------------
11 | ERROR | [x] Missing class doc comment
16 | ERROR | [x] Data types in @var tags need to be fully namespaced
20 | ERROR | [ ] Missing short description in doc comment
21 | ERROR | [x] Data types in @var tags need to be fully namespaced
25 | ERROR | [ ] Parameter $messenger is not described in comment
28 | ERROR | [x] Data types in @param tags need to be fully namespaced
47 | ERROR | [ ] Doc comment short description must start with a capital letter
47 | ERROR | [ ] Doc comment short description must end with a full stop
54 | ERROR | [x] Expected 1 space after asterisk; 0 found
54 | ERROR | [x] Function comment short description must start with exactly one space
54 | ERROR | [ ] Doc comment short description must start with a capital letter
54 | ERROR | [ ] Doc comment short description must end with a full stop
71 | ERROR | [x] Expected 1 space after asterisk; 0 found
71 | ERROR | [x] Function comment short description must start with exactly one space
71 | ERROR | [ ] Doc comment short description must start with a capital letter
71 | ERROR | [ ] Doc comment short description must end with a full stop
76 | ERROR | [x] Expected 1 space after IF keyword; 0 found
82 | ERROR | [x] Expected 1 blank line after function; 0 found
83 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Plugin/Products.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 70 ERRORS AND 5 WARNINGS AFFECTING 64 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [x] Missing function doc comment
23 | ERROR | [ ] Missing short description in doc comment
25 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
25 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
26 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
28 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
28 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
29 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
31 | ERROR | [ ] Description for the @return value is missing
33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
35 | ERROR | [x] Expected 1 space after IF keyword; 0 found
37 | ERROR | [x] Expected 1 space after IF keyword; 0 found
45 | WARNING | [x] A comma should follow the last multiline array item. Found: 0
52 | ERROR | [x] Expected 1 space after IF keyword; 0 found
54 | ERROR | [x] Expected newline after closing brace
60 | WARNING | [x] A comma should follow the last multiline array item. Found: 0
67 | ERROR | [x] Missing function doc comment
69 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
73 | ERROR | [x] No space found before comment text; expected "// Add product id if exist." but found "//Add product id if exist."
74 | ERROR | [x] Expected 1 space after IF keyword; 0 found
78 | ERROR | [x] Concat operator must be surrounded by a single space
80 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
83 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
90 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
92 | ERROR | [x] Expected 1 space after IF keyword; 0 found
103 | ERROR | [x] Short array syntax must be used to define arrays
105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
109 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
114 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
119 | ERROR | [ ] Missing short description in doc comment
120 | ERROR | [ ] Parameter comment must start with a capital letter
120 | ERROR | [x] Parameter comment must be on the next line
122 | ERROR | [ ] Description for the @return value is missing
125 | ERROR | [x] There should be no white space after an opening "["
126 | ERROR | [x] Expected 1 space after IF keyword; 0 found
131 | ERROR | [ ] Missing short description in doc comment
132 | ERROR | [ ] Parameter comment must start with a capital letter
132 | ERROR | [x] Parameter comment must be on the next line
134 | ERROR | [ ] Description for the @return value is missing
140 | ERROR | [ ] Missing short description in doc comment
141 | ERROR | [x] Parameter comment must be on the next line
143 | ERROR | [ ] Description for the @return value is missing
149 | ERROR | [x] Missing function doc comment
150 | ERROR | [x] Expected 1 space after IF keyword; 0 found
155 | ERROR | [ ] Missing short description in doc comment
156 | ERROR | [x] Parameter comment must be on the next line
157 | ERROR | [x] Parameter comment must be on the next line
157 | ERROR | [x] Parameter comment must end with a full stop
158 | ERROR | [ ] Missing parameter comment
160 | ERROR | [ ] Description for the @return value is missing
164 | ERROR | [x] Expected 1 space after IF keyword; 0 found
165 | ERROR | [ ] The array declaration extends to column 123 (the limit is 80). The array content should be split up over multiple lines
165 | ERROR | [x] Expected one space after the comma, 0 found
165 | ERROR | [x] Expected one space after the comma, 0 found
166 | ERROR | [x] Expected 1 space after IF keyword; 0 found
168 | ERROR | [x] Expected 1 space before "=>"; 0 found
169 | ERROR | [x] Expected 1 space before "=>"; 0 found
170 | ERROR | [x] Expected 1 space before "=>"; 0 found
170 | WARNING | [x] A comma should follow the last multiline array item. Found: $value
176 | ERROR | [ ] Missing short description in doc comment
177 | ERROR | [x] Parameter comment must be on the next line
177 | ERROR | [x] Parameter comment must end with a full stop
179 | ERROR | [ ] Description for the @return value is missing
181 | ERROR | [ ] Public method name "Products::setProductID" is not in lowerCamel format
183 | ERROR | [x] Expected 1 blank line after function; 0 found
184 | ERROR | [x] Expected 1 newline at end of file; 2 found
184 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 50 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Plugin/ProductsAssets.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 26 LINES
----------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
6 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [ ] Class property $file_name should use lowerCamel naming without underscores
10 | ERROR | [x] Missing function doc comment
12 | ERROR | [x] Expected 1 blank line after function; 2 found
15 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Parameter comment must be on the next line
18 | ERROR | [ ] Description for the @return value is missing
24 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [x] Parameter comment must be on the next line
27 | ERROR | [ ] Description for the @return value is missing
33 | ERROR | [ ] Missing short description in doc comment
34 | ERROR | [x] Parameter comment must be on the next line
35 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
35 | ERROR | [ ] Parameter comment must start with a capital letter
37 | ERROR | [ ] Description for the @return value is missing
39 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
43 | ERROR | [x] Short array syntax must be used to define arrays
45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
49 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
56 | ERROR | [x] Expected 1 space after IF keyword; 0 found
57 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
65 | ERROR | [x] Expected 1 space between "'data'" and double arrow; 0 found
65 | ERROR | [x] Expected 1 space between double arrow and "$response"; 0 found
65 | ERROR | [x] Expected 1 space before "=>"; 0 found
65 | ERROR | [x] Expected 1 space after "=>"; 0 found
68 | ERROR | [x] Expected 1 blank line after function; 0 found
69 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Plugin/EbookDefinition.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AFFECTING 25 LINES
-----------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] There must be one blank line after the namespace declaration
11 | ERROR | [x] Missing class doc comment
13 | ERROR | [x] Missing function doc comment
15 | ERROR | [x] Missing function doc comment
20 | ERROR | [x] Expected 1 space after IF keyword; 0 found
20 | ERROR | [x] Expected 1 space after "instanceof"; 2 found
22 | ERROR | [x] Expected 1 space before "=>"; 0 found
22 | ERROR | [x] Expected 1 space after "=>"; 0 found
23 | ERROR | [x] Expected 1 space after "=>"; 0 found
31 | ERROR | [x] Missing function doc comment
33 | ERROR | [x] Expected one space after the comma, 0 found
37 | ERROR | [x] Expected 1 space after IF keyword; 0 found
44 | ERROR | [x] Expected 1 space after IF keyword; 0 found
44 | ERROR | [x] There should be no white space before a closing ")"
52 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
52 | ERROR | [x] Expected 1 space before opening brace; found 0
52 | ERROR | [x] Expected 1 space before opening brace; found 0
53 | ERROR | [x] Expected 1 space after IF keyword; 0 found
65 | ERROR | [x] Missing function doc comment
72 | ERROR | [x] Expected 1 space after IF keyword; 0 found
75 | ERROR | [x] Expected one space after the comma, 0 found
79 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
83 | ERROR | [x] Expected 1 space after IF keyword; 0 found
92 | ERROR | [x] Expected 1 space before "=>"; 0 found
92 | ERROR | [x] Expected 1 space after "=>"; 0 found
92 | ERROR | [x] Expected 1 space before "=>"; 0 found
92 | ERROR | [x] Expected 1 space after "=>"; 0 found
94 | ERROR | [x] Expected 1 space after IF keyword; 0 found
100 | ERROR | [x] Expected 1 space after IF keyword; 0 found
117 | ERROR | [x] Expected 1 space after IF keyword; 0 found
125 | ERROR | [x] Expected 1 space after IF keyword; 0 found
130 | ERROR | [x] Expected 1 space after IF keyword; 0 found
136 | ERROR | [x] Expected 1 space after IF keyword; 0 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 33 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/src/Plugin/EbookNodeProcessor.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 54 ERRORS AND 1 WARNING AFFECTING 38 LINES
-------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Missing class doc comment
12 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [x] Missing function doc comment
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [x] Missing function doc comment
24 | ERROR | [x] Missing function doc comment
29 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Expected 1 space after IF keyword; 0 found
42 | ERROR | [x] Expected 1 space before "=>"; 0 found
42 | ERROR | [x] Expected 1 space after "=>"; 0 found
42 | ERROR | [x] Expected 1 space before "=>"; 0 found
42 | ERROR | [x] Expected 1 space after "=>"; 0 found
44 | ERROR | [x] Expected 1 space after IF keyword; 0 found
47 | ERROR | [x] Expected 1 space after IF keyword; 0 found
49 | ERROR | [x] Expected 1 space before "=>"; 0 found
49 | ERROR | [x] Expected 1 space after "=>"; 0 found
49 | ERROR | [x] Expected 1 space before "=>"; 0 found
49 | ERROR | [x] Expected 1 space after "=>"; 0 found
51 | ERROR | [x] Expected 1 space after IF keyword; 0 found
52 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
59 | ERROR | [x] Expected 1 space after IF keyword; 0 found
62 | ERROR | [x] Expected 1 space after IF keyword; 0 found
63 | ERROR | [x] Line indented incorrectly; expected 20 spaces, found 19
64 | ERROR | [x] Expected newline after closing brace
70 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
75 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
87 | ERROR | [x] Expected 1 space after IF keyword; 0 found
88 | ERROR | [x] Expected 1 space before "=>"; 0 found
88 | ERROR | [x] Expected 1 space after "=>"; 0 found
88 | ERROR | [x] Expected 1 space before "=>"; 0 found
88 | ERROR | [x] Expected 1 space after "=>"; 0 found
100 | ERROR | [x] Missing function doc comment
104 | ERROR | [x] Expected 1 space before "=>"; 0 found
104 | ERROR | [x] Expected 1 space after "=>"; 0 found
104 | WARNING | [ ] Unused variable $key.
104 | ERROR | [x] Expected 1 space before "=>"; 0 found
104 | ERROR | [x] Expected 1 space after "=>"; 0 found
105 | ERROR | [x] Expected 1 space after IF keyword; 0 found
111 | ERROR | [x] Expected 1 space after IF keyword; 0 found
114 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
115 | ERROR | [x] Expected 1 space after IF keyword; 0 found
121 | ERROR | [x] Expected 1 space after IF keyword; 0 found
130 | ERROR | [x] Expected 1 space after IF keyword; 0 found
149 | ERROR | [x] Expected 1 space after IF keyword; 0 found
150 | ERROR | [x] Expected 1 space after IF keyword; 0 found
150 | ERROR | [x] Space found before comma in argument list
161 | ERROR | [x] Expected 1 space between "'target_id'" and double arrow; 0 found
161 | ERROR | [x] Expected 1 space between double arrow and "$file"; 0 found
161 | ERROR | [x] Expected 1 space before "=>"; 0 found
161 | ERROR | [x] Expected 1 space after "=>"; 0 found
166 | ERROR | [x] Language constructs must be followed by a single space; expected 1 space but found "··"
169 | ERROR | [x] Missing function doc comment
173 | ERROR | [x] Expected 1 space after IF keyword; 0 found
174 | ERROR | [x] Concat operator must be surrounded by a single space
180 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 52 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/config/schema/packt.schema.yml
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/js/packt_main.js
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/js/modal_js.js
----------------------------------------------------------------------------------------------
FOUND 34 ERRORS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 space before "=>"; 0 found
8 | ERROR | [x] Expected 1 space after "=>"; 0 found
20 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
23 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
26 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
51 | ERROR | [x] Expected 1 space before "=>"; 0 found
64 | ERROR | [x] Expected 1 space before "<"; 0 found
64 | ERROR | [x] Expected 1 space after "<"; 0 found
64 | ERROR | [x] Expected 1 space before "="; 0 found
64 | ERROR | [x] Expected 1 space after "="; 0 found
64 | ERROR | [x] Expected 1 space before "="; 0 found
64 | ERROR | [x] Expected 1 space after "="; 0 found
64 | ERROR | [x] Expected 1 space before ">"; 0 found
64 | ERROR | [x] Expected 1 space after ">"; 0 found
69 | ERROR | [x] Expected 1 space before "+"; 0 found
69 | ERROR | [x] Expected 1 space before "+"; 0 found
69 | ERROR | [x] Expected 1 space after "+"; 0 found
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
102 | ERROR | [x] Expected 1 space before "<"; 0 found
102 | ERROR | [x] Expected 1 space after "<"; 0 found
102 | ERROR | [x] Expected 1 space before ">"; 0 found
102 | ERROR | [x] Expected 1 space after ">"; 0 found
102 | ERROR | [x] Expected 1 space before "<"; 0 found
102 | ERROR | [x] Expected 1 space after "<"; 0 found
102 | ERROR | [x] Expected 1 space before "/"; 0 found
102 | ERROR | [x] Expected 1 space after "/"; 0 found
102 | ERROR | [x] Expected 1 space before ">"; 0 found
102 | ERROR | [x] Expected 1 space after ">"; 0 found
113 | ERROR | [x] Expected 1 space after "="; 2 found
121 | ERROR | [x] Expected 1 space before "+"; 0 found
121 | ERROR | [x] Expected 1 space after "+"; 0 found
121 | ERROR | [x] Expected 1 space before "+"; 0 found
121 | ERROR | [x] Expected 1 space after "+"; 0 found
121 | ERROR | [x] Expected 1 space before "+"; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/js/choices.js
----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/js/advance_search.js
----------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 13 LINES
----------------------------------------------------------------------------------------------
9 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
10 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
25 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
37 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] Expected 1 space after "=>"; 0 found
45 | ERROR | [x] Expected 1 space after "="; 2 found
65 | ERROR | [x] Expected 1 space before "=>"; 0 found
65 | ERROR | [x] Expected 1 space after "=>"; 0 found
74 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
105 | ERROR | [x] Expected 1 space before "=>"; 0 found
110 | ERROR | [x] Expected 1 space before "=>"; 0 found
110 | ERROR | [x] Expected 1 space after "=>"; 0 found
147 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
147 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
147 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
150 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
161 | ERROR | [x] Expected 1 newline at end of file; 3 found
163 | ERROR | [x] Additional whitespace found at end of file
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/css/advance_ss.css
---------------------------------------------------------------------------------------
FOUND 191 ERRORS AFFECTING 174 LINES
---------------------------------------------------------------------------------------
4 | ERROR | [ ] Style definitions must end with a semicolon
10 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
15 | ERROR | [ ] More than 2 empty lines are not allowed
17 | ERROR | [ ] Style definitions must end with a semicolon
20 | ERROR | [x] Multiple selectors should each be on a single line
20 | ERROR | [x] Multiple selectors should each be on a single line
20 | ERROR | [x] Multiple selectors should each be on a single line
20 | ERROR | [x] Multiple selectors should each be on a single line
20 | ERROR | [x] Multiple selectors should each be on a single line
21 | ERROR | [ ] Style definitions must end with a semicolon
26 | ERROR | [ ] Style definitions must end with a semicolon
29 | ERROR | [x] Multiple selectors should each be on a single line
29 | ERROR | [x] Multiple selectors should each be on a single line
30 | ERROR | [ ] Style definitions must end with a semicolon
34 | ERROR | [ ] Style definitions must end with a semicolon
40 | ERROR | [ ] Style definitions must end with a semicolon
45 | ERROR | [ ] Style definitions must end with a semicolon
50 | ERROR | [ ] Style definitions must end with a semicolon
56 | ERROR | [ ] Style definitions must end with a semicolon
59 | ERROR | [x] Multiple selectors should each be on a single line
60 | ERROR | [ ] Style definitions must end with a semicolon
63 | ERROR | [x] Multiple selectors should each be on a single line
64 | ERROR | [ ] Style definitions must end with a semicolon
67 | ERROR | [x] Multiple selectors should each be on a single line
67 | ERROR | [x] Multiple selectors should each be on a single line
69 | ERROR | [ ] Style definitions must end with a semicolon
73 | ERROR | [ ] Style definitions must end with a semicolon
78 | ERROR | [ ] Style definitions must end with a semicolon
82 | ERROR | [ ] Style definitions must end with a semicolon
85 | ERROR | [x] Multiple selectors should each be on a single line
89 | ERROR | [ ] Style definitions must end with a semicolon
93 | ERROR | [ ] Style definitions must end with a semicolon
97 | ERROR | [ ] Style definitions must end with a semicolon
100 | ERROR | [x] Multiple selectors should each be on a single line
101 | ERROR | [ ] Style definitions must end with a semicolon
106 | ERROR | [ ] Style definitions must end with a semicolon
110 | ERROR | [ ] Style definitions must end with a semicolon
114 | ERROR | [ ] Style definitions must end with a semicolon
117 | ERROR | [x] Multiple selectors should each be on a single line
117 | ERROR | [x] Multiple selectors should each be on a single line
117 | ERROR | [x] Multiple selectors should each be on a single line
117 | ERROR | [x] Multiple selectors should each be on a single line
121 | ERROR | [ ] Style definitions must end with a semicolon
124 | ERROR | [x] Multiple selectors should each be on a single line
125 | ERROR | [ ] Style definitions must end with a semicolon
128 | ERROR | [x] Multiple selectors should each be on a single line
129 | ERROR | [ ] Style definitions must end with a semicolon
132 | ERROR | [x] Multiple selectors should each be on a single line
132 | ERROR | [x] Multiple selectors should each be on a single line
132 | ERROR | [x] Multiple selectors should each be on a single line
133 | ERROR | [ ] Style definitions must end with a semicolon
136 | ERROR | [x] Multiple selectors should each be on a single line
136 | ERROR | [x] Multiple selectors should each be on a single line
136 | ERROR | [x] Multiple selectors should each be on a single line
138 | ERROR | [ ] Style definitions must end with a semicolon
141 | ERROR | [x] Multiple selectors should each be on a single line
141 | ERROR | [x] Multiple selectors should each be on a single line
141 | ERROR | [x] Multiple selectors should each be on a single line
142 | ERROR | [ ] Style definitions must end with a semicolon
146 | ERROR | [ ] Style definitions must end with a semicolon
155 | ERROR | [ ] Style definitions must end with a semicolon
160 | ERROR | [ ] Style definitions must end with a semicolon
164 | ERROR | [ ] Style definitions must end with a semicolon
167 | ERROR | [x] Multiple selectors should each be on a single line
169 | ERROR | [ ] Style definitions must end with a semicolon
172 | ERROR | [x] Multiple selectors should each be on a single line
173 | ERROR | [ ] Style definitions must end with a semicolon
178 | ERROR | [ ] Style definitions must end with a semicolon
181 | ERROR | [x] Multiple selectors should each be on a single line
182 | ERROR | [ ] Style definitions must end with a semicolon
187 | ERROR | [ ] Style definitions must end with a semicolon
190 | ERROR | [x] Multiple selectors should each be on a single line
191 | ERROR | [ ] Style definitions must end with a semicolon
195 | ERROR | [ ] Style definitions must end with a semicolon
199 | ERROR | [ ] Style definitions must end with a semicolon
203 | ERROR | [ ] Style definitions must end with a semicolon
207 | ERROR | [ ] Style definitions must end with a semicolon
211 | ERROR | [ ] Style definitions must end with a semicolon
223 | ERROR | [ ] Style definitions must end with a semicolon
231 | ERROR | [ ] Style definitions must end with a semicolon
237 | ERROR | [ ] Style definitions must end with a semicolon
241 | ERROR | [ ] Style definitions must end with a semicolon
245 | ERROR | [ ] Style definitions must end with a semicolon
248 | ERROR | [x] Multiple selectors should each be on a single line
254 | ERROR | [ ] Style definitions must end with a semicolon
258 | ERROR | [ ] Style definitions must end with a semicolon
262 | ERROR | [ ] Style definitions must end with a semicolon
266 | ERROR | [ ] Style definitions must end with a semicolon
275 | ERROR | [ ] Style definitions must end with a semicolon
291 | ERROR | [ ] Style definitions must end with a semicolon
294 | ERROR | [x] Multiple selectors should each be on a single line
295 | ERROR | [ ] Style definitions must end with a semicolon
299 | ERROR | [ ] Style definitions must end with a semicolon
313 | ERROR | [ ] Style definitions must end with a semicolon
318 | ERROR | [ ] Style definitions must end with a semicolon
323 | ERROR | [ ] Style definitions must end with a semicolon
330 | ERROR | [ ] Style definitions must end with a semicolon
333 | ERROR | [x] Multiple selectors should each be on a single line
334 | ERROR | [ ] Style definitions must end with a semicolon
337 | ERROR | [x] Multiple selectors should each be on a single line
350 | ERROR | [ ] Style definitions must end with a semicolon
353 | ERROR | [x] Multiple selectors should each be on a single line
353 | ERROR | [x] Multiple selectors should each be on a single line
353 | ERROR | [x] Multiple selectors should each be on a single line
354 | ERROR | [ ] Style definitions must end with a semicolon
367 | ERROR | [ ] Style definitions must end with a semicolon
370 | ERROR | [x] Multiple selectors should each be on a single line
371 | ERROR | [ ] Style definitions must end with a semicolon
375 | ERROR | [ ] Style definitions must end with a semicolon
379 | ERROR | [ ] Style definitions must end with a semicolon
385 | ERROR | [ ] Style definitions must end with a semicolon
391 | ERROR | [ ] Style definitions must end with a semicolon
396 | ERROR | [ ] Style definitions must end with a semicolon
400 | ERROR | [ ] Style definitions must end with a semicolon
404 | ERROR | [ ] Style definitions must end with a semicolon
419 | ERROR | [ ] Style definitions must end with a semicolon
423 | ERROR | [ ] Style definitions must end with a semicolon
428 | ERROR | [ ] Style definitions must end with a semicolon
433 | ERROR | [ ] Style definitions must end with a semicolon
438 | ERROR | [ ] Style definitions must end with a semicolon
453 | ERROR | [ ] Style definitions must end with a semicolon
457 | ERROR | [ ] Style definitions must end with a semicolon
461 | ERROR | [ ] Style definitions must end with a semicolon
469 | ERROR | [ ] Style definitions must end with a semicolon
477 | ERROR | [ ] Style definitions must end with a semicolon
483 | ERROR | [ ] Style definitions must end with a semicolon
487 | ERROR | [ ] Style definitions must end with a semicolon
492 | ERROR | [ ] Style definitions must end with a semicolon
502 | ERROR | [ ] Style definitions must end with a semicolon
508 | ERROR | [ ] Style definitions must end with a semicolon
513 | ERROR | [ ] Style definitions must end with a semicolon
518 | ERROR | [ ] Style definitions must end with a semicolon
522 | ERROR | [ ] Style definitions must end with a semicolon
526 | ERROR | [ ] Style definitions must end with a semicolon
530 | ERROR | [ ] Style definitions must end with a semicolon
539 | ERROR | [ ] Style definitions must end with a semicolon
547 | ERROR | [ ] Style definitions must end with a semicolon
559 | ERROR | [ ] Style definitions must end with a semicolon
563 | ERROR | [ ] Style definitions must end with a semicolon
575 | ERROR | [ ] Style definitions must end with a semicolon
579 | ERROR | [ ] Style definitions must end with a semicolon
584 | ERROR | [ ] Style definitions must end with a semicolon
588 | ERROR | [ ] Style definitions must end with a semicolon
592 | ERROR | [ ] Style definitions must end with a semicolon
598 | ERROR | [ ] Style definitions must end with a semicolon
604 | ERROR | [ ] Style definitions must end with a semicolon
608 | ERROR | [ ] Style definitions must end with a semicolon
612 | ERROR | [ ] Style definitions must end with a semicolon
626 | ERROR | [ ] Style definitions must end with a semicolon
631 | ERROR | [ ] Style definitions must end with a semicolon
636 | ERROR | [ ] Style definitions must end with a semicolon
641 | ERROR | [ ] Style definitions must end with a semicolon
644 | ERROR | [x] Multiple selectors should each be on a single line
646 | ERROR | [ ] Style definitions must end with a semicolon
661 | ERROR | [ ] Style definitions must end with a semicolon
665 | ERROR | [ ] Style definitions must end with a semicolon
680 | ERROR | [ ] Style definitions must end with a semicolon
684 | ERROR | [ ] Style definitions must end with a semicolon
689 | ERROR | [ ] Style definitions must end with a semicolon
693 | ERROR | [ ] Style definitions must end with a semicolon
697 | ERROR | [ ] Style definitions must end with a semicolon
711 | ERROR | [ ] Style definitions must end with a semicolon
717 | ERROR | [ ] Style definitions must end with a semicolon
734 | ERROR | [ ] Style definitions must end with a semicolon
739 | ERROR | [ ] Style definitions must end with a semicolon
746 | ERROR | [ ] Style definitions must end with a semicolon
753 | ERROR | [ ] Style definitions must end with a semicolon
763 | ERROR | [ ] Style definitions must end with a semicolon
767 | ERROR | [ ] Style definitions must end with a semicolon
771 | ERROR | [ ] Style definitions must end with a semicolon
775 | ERROR | [ ] Style definitions must end with a semicolon
779 | ERROR | [ ] Style definitions must end with a semicolon
795 | ERROR | [ ] Style definitions must end with a semicolon
805 | ERROR | [ ] Style definitions must end with a semicolon
815 | ERROR | [ ] Style definitions must end with a semicolon
824 | ERROR | [ ] Style definitions must end with a semicolon
833 | ERROR | [ ] Style definitions must end with a semicolon
837 | ERROR | [ ] Style definitions must end with a semicolon
842 | ERROR | [ ] Style definitions must end with a semicolon
847 | ERROR | [ ] Style definitions must end with a semicolon
862 | ERROR | [ ] Style definitions must end with a semicolon
876 | ERROR | [ ] Style definitions must end with a semicolon
880 | ERROR | [ ] Style definitions must end with a semicolon
884 | ERROR | [ ] Style definitions must end with a semicolon
888 | ERROR | [ ] Style definitions must end with a semicolon
892 | ERROR | [ ] Style definitions must end with a semicolon
897 | ERROR | [ ] Style definitions must end with a semicolon
903 | ERROR | [ ] Style definitions must end with a semicolon
908 | ERROR | [ ] Style definitions must end with a semicolon
912 | ERROR | [ ] Style definitions must end with a semicolon
917 | ERROR | [ ] Style definitions must end with a semicolon
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 42 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/css/modal_css.css
-----------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------
14 | ERROR | [x] CSS colours must be defined in lowercase; expected #f7dff5 but found #F7DFF5
15 | ERROR | [x] CSS colours must be defined in lowercase; expected #b22485 but found #B22485
31 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/assets/css/packt_main.css
-----------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------
2 | ERROR | [x] Selectors must be on a single line
42 | ERROR | [x] CSS colours must be defined in lowercase; expected #f7dff5 but found #F7DFF5
50 | ERROR | [x] CSS colours must be defined in lowercase; expected #f7dff5 but found #F7DFF5
51 | ERROR | [x] CSS colours must be defined in lowercase; expected #b22485 but found #B22485
83 | ERROR | [x] Expected 1 space before opening brace of class definition; 2 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/packt.module
--------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | ERROR | [x] Missing function doc comment
8 | ERROR | [x] Missing function doc comment
13 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /home/hp/projects/sahzad_org/packthub_ebook_integration/packt.info.yml
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------

Time: 437ms; Memory: 16MB

Steps to reproduce

Run following command

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India mohd sahzad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mohd sahzad
  • Status changed to Needs work 10 months ago
  • 🇮🇳India d-xpert Chandigarh
  • Merge request !1addressed some phpcs errors/warnings → (Closed) created by d-xpert
  • 🇮🇳India d-xpert Chandigarh

    Updated issue summary.

  • Assigned to shruu_rao
  • Issue was unassigned.
  • 🇮🇳India Raveen Kumar

    Raveen Thakur made their first commit to this issue’s fork.

  • 🇮🇳India Raveen Kumar

    I have fixed the issues for src/form/eBookContentTypeForm.php file

  • 🇮🇳India Jasjeet Kaur Brar

    Jasjeet Kaur Brar made their first commit to this issue’s fork.

  • Status changed to Needs review 9 months ago
  • Status changed to Needs work 5 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi,

    I applied MR!1, it was not applied smoothly and I still encountered some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    ➜  packthub_ebook_integration git:(main) ✗ curl https://git.drupalcode.org/project/packthub_ebook_integration/-/merge_requests/1.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 78832    0 78832    0     0   165k      0 --:--:-- --:--:-- --:--:--  165k
    patching file assets/css/advance_ss.css
    patching file assets/css/modal_css.css
    patching file assets/css/packt_main.css
    patching file assets/js/advance_search.js
    patching file assets/js/modal_js.js
    patching file assets/js/packt_main.js
    patching file config/schema/packt.schema.yml
    patching file packt.info.yml
    Hunk #1 FAILED at 4.
    1 out of 1 hunk FAILED -- saving rejects to file packt.info.yml.rej
    patching file packt.module
    patching file src/Controller/ProductsDashboard.php
    patching file src/Form/EbookContentTypeForm.php
    patching file src/Form/PacktForm.php
    patching file src/Plugin/EbookDefinition.php
    patching file src/Plugin/EbookNodeProcessor.php
    patching file src/Plugin/Products.php
    patching file src/Plugin/ProductsAssets.php
    ➜  packthub_ebook_integration git:(main) ✗ ..
    ➜  contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml packthub_ebook_integration
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/packthub_ebook_integration/packt.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: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/packthub_ebook_integration/src/Controller/ProductsDashboard.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 15 WARNINGS AFFECTING 16 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
      33 | ERROR   | [x] Multi-line function declarations must have a trailing comma after the last parameter
      61 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
      81 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
      83 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
      86 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
      88 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     158 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     160 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     178 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     267 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     289 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     297 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     324 | WARNING | [ ] File::load calls should be avoided in classes, use dependency injection instead
     329 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     338 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     351 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    ------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------
    
    Time: 461ms; Memory: 16MB
    
    ➜  contrib git:(main) ✗

    Thank you.

  • Merge request !12Fix phpcs issues → (Open) created by cleavinjosh
  • Status changed to Needs review 5 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi,

    Please review MR!12. Thank you.

  • Assigned to bhaveshdas
  • Issue was unassigned.
  • Status changed to Needs work 5 months ago
  • 🇮🇳India bhaveshdas

    I applied MR!12 and I still encountered some issues after I ran vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig modules/custom/packthub_ebook_integration-3421803/

    FILE: /var/www/html/drupal-contri-d10/modules/custom/packthub_ebook_integration-3421803/assets/js/choices.js
    ------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/packthub_ebook_integration-3421803/assets/js/packt_main.js
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     1 | ERROR | [x] Additional whitespace found at start of file
    ---------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------
    
    Time: 440ms; Memory: 16MB
    
    
  • Status changed to Needs review 5 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi @bhaveshdas,

    Thank you for reviewing.

    For the packt_main.js, I'm not sure why it is still appearing since the file itself is empty.

    For the minified js file, we can skip this. Please refer to comment#3 here 📌 File appears to be minified and cannot be processed Closed: works as designed .

    Thank you.

  • 🇲🇼Malawi chancenyasulu

    Thanks guys for working on these issues, appreciate your work

  • Status changed to RTBC 14 days ago
Production build 0.71.5 2024