Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/site-site/
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/EventSubscriber/SiteSubscriber.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 13 WARNINGS AFFECTING 16 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
30 | ERROR | [x] Data types in @param tags need to be fully namespaced
36 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
41 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
42 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
43 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
46 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
48 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
49 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
50 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
53 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
53 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
56 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
59 | ERROR | [x] Expected 1 blank line after function; 0 found
60 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteEntityInterface.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
13 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteListBuilder.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
89 | ERROR | [x] Expected 1 space after "="; 2 found
92 | ERROR | [x] Expected 1 space after "="; 2 found
95 | ERROR | [x] Expected 1 space after "="; 2 found
98 | ERROR | [x] Expected 1 space after "="; 2 found
103 | ERROR | [x] Expected 1 space after "="; 2 found
104 | ERROR | [x] Expected 1 space after "="; 2 found
111 | WARNING | [x] A comma should follow the last multiline array item. Found: 'timestamp_ago'
117 | ERROR | [x] Expected 1 space before "=>"; 0 found
123 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
141 | ERROR | [x] Space after closing parenthesis of function call prohibited
141 | ERROR | [x] Space found before semicolon; expected ");" but found ") ;"
142 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
144 | ERROR | [ ] More than 2 empty lines are not allowed
148 | WARNING | [x] A comma should follow the last multiline array item. Found: )
149 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Form/SiteDefinitionEntitySaveForm.php
--------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 space before ":"; 0 found
34 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
40 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
95 | ERROR | [x] Expected newline after closing brace
103 | ERROR | [x] Expected 1 blank line after function; 0 found
104 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Form/SiteDefinitionForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AND 28 WARNINGS AFFECTING 49 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
30 | ERROR | [x] Short array syntax must be used to define arrays
35 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Short array syntax must be used to define arrays
46 | ERROR | [x] Short array syntax must be used to define arrays
51 | ERROR | [x] Short array syntax must be used to define arrays
67 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
68 | ERROR | [x] Array indentation error, expected 10 spaces but found 14
68 | ERROR | [x] Object operator not indented correctly; expected 12 spaces but found 14
68 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
69 | ERROR | [x] Array indentation error, expected 10 spaces but found 14
105 | ERROR | [x] Expected one space after the comma, 2 found
105 | WARNING | [ ] Line exceeds 80 characters; contains 167 characters
105 | ERROR | [x] Comments may not appear after statements
139 | WARNING | [x] A comma should follow the last multiline array item. Found: )
144 | ERROR | [ ] The array declaration extends to column 128 (the limit is 80). The array content should be split up over multiple lines
145 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
146 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
151 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
152 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
153 | ERROR | [x] Expected 1 space before "??"; 2 found
154 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
158 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
159 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
162 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
166 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
167 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
168 | ERROR | [x] Expected 1 space before "??"; 2 found
170 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
174 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
175 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
176 | ERROR | [x] Expected 1 space before "??"; 2 found
177 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
182 | ERROR | [x] Expected 1 space before "??"; 2 found
186 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
187 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
189 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
194 | ERROR | [x] Missing function doc comment
197 | ERROR | [x] Expected 0 spaces before comma; 1 found
198 | ERROR | [x] Expected 0 spaces before comma; 1 found
201 | WARNING | [x] A comma should follow the last multiline array item. Found: 'states_allow_override'
213 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
213 | WARNING | [x] 'TODO: Change the autogenerated stub' should match the format '@todo Fix problem X here.'
213 | ERROR | [x] Comments may not appear after statements
213 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
214 | ERROR | [x] Expected 1 blank line after function; 2 found
217 | ERROR | [x] Missing function doc comment
218 | ERROR | [x] Opening brace should be on the same line as the declaration
221 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
239 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
240 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
241 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
244 | ERROR | [x] Expected newline after closing brace
247 | ERROR | [x] Expected newline after closing brace
254 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
254 | WARNING | [x] 'TODO: Change the autogenerated stub' should match the format '@todo Fix problem X here.'
254 | ERROR | [x] Comments may not appear after statements
254 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 43 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Form/UserLoginActionForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 16 WARNINGS AFFECTING 25 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
36 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
37 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
61 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
75 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
76 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
87 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
87 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
90 | WARNING | [x] A comma should follow the last multiline array item. Found: )
96 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
99 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
102 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
105 | ERROR | [x] Expected newline after closing brace
130 | ERROR | [x] Missing function doc comment
136 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
148 | WARNING | [x] A comma should follow the last multiline array item. Found: 'user-login'
150 | WARNING | [x] A comma should follow the last multiline array item. Found: $payload
154 | ERROR | [x] Expected newline after closing brace
155 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
156 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
158 | ERROR | [x] Expected 1 blank line after function; 0 found
159 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Form/SiteForm.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 11 WARNINGS AFFECTING 10 LINES
------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
18 | ERROR | [x] Missing function doc comment
19 | ERROR | [x] Opening brace should be on the same line as the declaration
21 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
25 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
25 | WARNING | [x] 'TODO: Change the autogenerated stub' should match the format '@todo Fix problem X here.'
25 | ERROR | [x] Comments may not appear after statements
25 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
29 | WARNING | [x] There must be no blank line following an inline comment
29 | WARNING | [x] '@TODO: Allow plugins to alter the form.' should match the format '@todo Fix problem X here.'
29 | WARNING | [ ] There must be no blank line following an inline comment
60 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Entity/SiteEntity.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 93 ERRORS AND 32 WARNINGS AFFECTING 92 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
18 | WARNING | [x] Unused use statement
21 | WARNING | [x] Unused use statement
22 | WARNING | [x] Unused use statement
24 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\site\SiteEntityInterface.
27 | WARNING | [x] Unused use statement
91 | ERROR | [ ] Class property $property_plugins should use lowerCamel naming without underscores
91 | ERROR | [ ] Missing member variable doc comment
92 | ERROR | [x] The static declaration must come after the visibility declaration
92 | ERROR | [x] Missing function doc comment
92 | ERROR | [x] Expected 1 blank line before function; 0 found
110 | ERROR | [x] Missing function doc comment
116 | WARNING | [ ] Unused variable $name.
126 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
126 | ERROR | [ ] Description for the @return value is missing
149 | ERROR | [x] Opening brace should be on the same line as the declaration
150 | WARNING | [x] '@TODO: Only send when site is self, or site_manager can POST back (if we have API key).' should match the format '@todo Fix problem X here.'
151 | ERROR | [x] Data types in @var tags need to be fully namespaced
154 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
163 | WARNING | [x] There must be no blank line following an inline comment
163 | WARNING | [x] '@TODO: Reload and save again so new config and states are included in the report.' should match the format '@todo Fix problem X here.'
163 | WARNING | [ ] There must be no blank line following an inline comment
180 | ERROR | [x] Expected 1 space between "'absolute'" and double arrow; 0 found
180 | ERROR | [x] Expected 1 space between double arrow and "true"; 0 found
180 | ERROR | [x] Expected 1 space before "=>"; 0 found
180 | ERROR | [x] Expected 1 space after "=>"; 0 found
180 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
202 | ERROR | [x] Space after closing parenthesis of function call prohibited
203 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
216 | ERROR | [x] Space after closing parenthesis of function call prohibited
217 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
229 | WARNING | [x] '@TODO: If the site title changed, update the entity.' should match the format '@todo Fix problem X here.'
232 | WARNING | [x] There must be no blank line following an inline comment
232 | WARNING | [x] '@TODO: Set State' should match the format '@todo Fix problem X here.'
232 | WARNING | [ ] There must be no blank line following an inline comment
248 | ERROR | [x] Expected 1 space between "'absolute'" and double arrow; 0 found
248 | ERROR | [x] Expected 1 space between double arrow and "true"; 0 found
248 | ERROR | [x] Expected 1 space before "=>"; 0 found
248 | ERROR | [x] Expected 1 space after "=>"; 0 found
248 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
274 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
277 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
277 | ERROR | [x] 6 spaces found before inline comment; expected "// ->setDisplayOptions('form', [" but found "// ->setDisplayOptions('form', ["
278 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
278 | ERROR | [ ] Comment indentation error, expected only 6 spaces
279 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
280 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
290 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
291 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
293 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
293 | ERROR | [x] 6 spaces found before inline comment; expected "// ->setDisplayOptions('form', [" but found "// ->setDisplayOptions('form', ["
294 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
294 | ERROR | [ ] Comment indentation error, expected only 6 spaces
295 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
296 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
310 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
310 | ERROR | [x] 6 spaces found before inline comment; expected "// ->setDisplayOptions('form', [" but found "// ->setDisplayOptions('form', ["
311 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
311 | ERROR | [ ] Comment indentation error, expected only 6 spaces
312 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
333 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
333 | ERROR | [x] 6 spaces found before inline comment; expected "// ->setDisplayOptions('form', [" but found "// ->setDisplayOptions('form', ["
334 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
334 | ERROR | [ ] Comment indentation error, expected only 6 spaces
335 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
336 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
345 | ERROR | [x] Space after closing parenthesis of function call prohibited
346 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
348 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
349 | ERROR | [x] Object operator not indented correctly; expected 7 spaces but found 8
352 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
353 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
354 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
440 | ERROR | [x] Space after closing parenthesis of function call prohibited
441 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
447 | ERROR | [x] Space after closing parenthesis of function call prohibited
448 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
453 | ERROR | [x] Space after closing parenthesis of function call prohibited
454 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
459 | ERROR | [x] Space after closing parenthesis of function call prohibited
460 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
465 | WARNING | [ ] Unused variable $name.
527 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
528 | ERROR | [x] Opening brace should be on the same line as the declaration
541 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
541 | ERROR | [ ] Description for the @return value is missing
554 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
583 | ERROR | [x] Expected newline after closing brace
596 | WARNING | [x] A comma should follow the last multiline array item. Found: $payload
601 | WARNING | [ ] Exceptions should not be translated
601 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
601 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
601 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
604 | WARNING | [ ] Exceptions should not be translated
604 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
621 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
623 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
626 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
631 | ERROR | [x] Expected newline after closing brace
633 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
638 | ERROR | [x] Expected newline after closing brace
639 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
642 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
644 | ERROR | [x] Expected newline after closing brace
645 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
646 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
646 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
649 | ERROR | [x] Expected 1 blank line after function; 2 found
652 | ERROR | [x] Missing function doc comment
657 | ERROR | [x] Doc comment short description must end with a full stop
658 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
658 | ERROR | [ ] Description for the @return value is missing
658 | ERROR | [x] Data types in @return tags need to be fully namespaced
665 | WARNING | [x] '@TODO: Find out how to get the SiteAPIResource URI.' should match the format '@todo Fix problem X here.'
670 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
670 | ERROR | [x] Space after closing parenthesis of function call prohibited
671 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
674 | ERROR | [x] Expected 1 blank line after function; 0 found
675 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 102 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Entity/SiteDefinition.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 56 ERRORS AND 15 WARNINGS AFFECTING 58 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
13 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\site\Event\SiteGetState.
14 | WARNING | [x] Unused use statement
77 | ERROR | [x] Doc comment short description must end with a full stop
83 | ERROR | [ ] Missing short description in doc comment
84 | ERROR | [x] Expected "array List of property plugins" but found "array List of property plugins." for @var tag in member variable comment
88 | ERROR | [ ] Missing short description in doc comment
89 | ERROR | [x] Expected "array An arbitrary array of settings Modules can alter the form and save more data" but found "array An arbitrary array of settings. Modules can
| | alter the form and save more data." for @var tag in member variable comment
95 | ERROR | [ ] Doc comment short description must end with a full stop
95 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
104 | ERROR | [x] The static declaration must come after the visibility declaration
104 | ERROR | [x] Missing function doc comment
107 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
120 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
141 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
142 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
142 | ERROR | [ ] Description for the @return value is missing
153 | WARNING | [ ] Line exceeds 80 characters; contains 106 characters
154 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
154 | ERROR | [ ] Description for the @return value is missing
161 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
163 | ERROR | [x] Concat operator must be surrounded by a single space
163 | ERROR | [x] Concat operator must be surrounded by a single space
179 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
179 | ERROR | [ ] Description for the @return value is missing
187 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
187 | ERROR | [ ] Description for the @return value is missing
192 | WARNING | [ ] Unused variable $label_inline.
206 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
207 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
218 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
220 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
221 | WARNING | [x] A comma should follow the last multiline array item. Found: )
223 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
224 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
225 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
226 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
227 | WARNING | [x] There must be no blank line following an inline comment
227 | WARNING | [ ] There must be no blank line following an inline comment
227 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
227 | ERROR | [x] No space found before comment text; expected "// // $build['data'] = $entity_object->data->view($label_inline);" but found "//// $build['data'] =
| | $entity_object->data->view($label_inline);"
232 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
246 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
267 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
278 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
278 | ERROR | [ ] Description for the @return value is missing
282 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
283 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
284 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
285 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
286 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
287 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
288 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
289 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
290 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
295 | ERROR | [x] Missing function doc comment
301 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
301 | ERROR | [ ] Description for the @return value is missing
302 | ERROR | [x] Separate the @return and @throws sections by a blank line.
311 | ERROR | [x] Data types in @var tags need to be fully namespaced
326 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
326 | ERROR | [ ] Description for the @return value is missing
327 | ERROR | [x] Separate the @return and @throws sections by a blank line.
329 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
333 | ERROR | [x] Data types in @var tags need to be fully namespaced
356 | ERROR | [x] Missing function doc comment
360 | ERROR | [x] Expected 1 blank line after function; 0 found
361 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 52 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteDefinitionListBuilder.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
28 | ERROR | [x] Data types in @var tags need to be fully namespaced
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SitePropertyPluginBase.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AND 3 WARNINGS AFFECTING 27 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
15 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Expected "mixed The name of this property" but found "mixed The name of this property." for @var tag in member variable comment
20 | ERROR | [ ] Missing short description in doc comment
21 | ERROR | [x] Expected "mixed The value of this property" but found "mixed The value of this property." for @var tag in member variable comment
25 | ERROR | [ ] Missing short description in doc comment
26 | ERROR | [x] Expected "mixed A description of the property" but found "mixed A description of the property." for @var tag in member variable comment
30 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Expected "bool Hide the property on view pages" but found "bool Hide the property on view pages." for @var tag in member variable comment
54 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
73 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
73 | ERROR | [ ] Description for the @return value is missing
87 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
87 | ERROR | [ ] Description for the @return value is missing
93 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
94 | ERROR | [x] Doc comment short description must end with a full stop
101 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
101 | ERROR | [x] 2 spaces found before inline comment; expected "// public function baseFieldDefinitions(EntityTypeInterface $entity_type, &$fields) {" but found "//
| | public function baseFieldDefinitions(EntityTypeInterface $entity_type, &$fields) {"
101 | ERROR | [x] Inline comments must start with a capital letter
102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
103 | ERROR | [ ] Comment indentation error, expected only 1 spaces
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
104 | ERROR | [ ] Comment indentation error, expected only 4 spaces
105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
106 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
107 | ERROR | [ ] Comment indentation error, expected only 6 spaces
108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
112 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteDefinitionInterface.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 83 characters
----------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Controller/SiteStatusController.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 19 WARNINGS AFFECTING 31 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
26 | WARNING | [ ] Unused variable $site_entity.
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
27 | ERROR | [x] 4 spaces found before inline comment; expected "// $build['status']['site'] = [" but found "// $build['status']['site'] = ["
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
28 | ERROR | [ ] Comment indentation error, expected only 4 spaces
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
33 | ERROR | [x] No space found before comment text; expected "// // ];" but found "//// ];"
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
35 | WARNING | [x] There must be no blank line following an inline comment
35 | WARNING | [ ] There must be no blank line following an inline comment
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
37 | ERROR | [x] 4 spaces found before inline comment; expected "// dsm($build);" but found "// dsm($build);"
43 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
43 | ERROR | [ ] Description for the @return value is missing
46 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
53 | WARNING | [x] '@TODO: Implement a pager.' should match the format '@todo Fix problem X here.'
64 | WARNING | [x] A comma should follow the last multiline array item. Found: 'timestamp_ago'
68 | WARNING | [x] A comma should follow the last multiline array item. Found: 'hidden'
76 | ERROR | [x] Expected 1 space before "=>"; 0 found
82 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
89 | WARNING | [ ] Unused variable $title.
101 | WARNING | [ ] Unused variable $title.
106 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
111 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
112 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
113 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
114 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
138 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Report #'
143 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
148 | ERROR | [x] Expected 1 blank line after function; 0 found
149 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Controller/SiteController.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 12 WARNINGS AFFECTING 16 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
17 | WARNING | [x] Unused use statement
19 | WARNING | [x] Unused use statement
35 | ERROR | [x] Missing function doc comment
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
77 | ERROR | [x] 4 spaces found before inline comment; expected "// unset($page['sites'][$site_revision->id()]['#cache']);" but found "//
| | unset($page['sites'][$site_revision->id()]['#cache']);"
81 | ERROR | [x] Missing function doc comment
82 | WARNING | [ ] Unused variable $site.
82 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
83 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
86 | ERROR | [x] Expected 1 blank line after function; 0 found
87 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/DrupalStatus.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 9 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
24 | ERROR | [x] Missing function doc comment
28 | WARNING | [x] There must be no blank line following an inline comment
28 | WARNING | [ ] There must be no blank line following an inline comment
56 | WARNING | [ ] Unused variable $requirement_id.
59 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
62 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
65 | WARNING | [x] '@TODO: Add option to add INFO status entries?' should match the format '@todo Fix problem X here.'
71 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
101 | ERROR | [x] Expected 1 blank line after function; 0 found
102 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/GitRemote.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
23 | ERROR | [ ] Description for the @return value is missing
41 | ERROR | [ ] @return doc comment specified, but function has no return statement
46 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
54 | ERROR | [x] Expected 1 blank line after function; 0 found
55 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/DrupalVersion.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Missing function doc comment
26 | ERROR | [x] Doc comment short description must end with a full stop
28 | ERROR | [ ] @return doc comment specified, but function has no return statement
33 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
41 | ERROR | [x] Expected 1 blank line after function; 0 found
42 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/HostProvider.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
24 | ERROR | [ ] Description for the @return value is missing
33 | ERROR | [ ] @return doc comment specified, but function has no return statement
38 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
46 | ERROR | [x] Expected 1 blank line after function; 0 found
47 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/GitReference.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
23 | ERROR | [ ] Description for the @return value is missing
40 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
44 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
55 | ERROR | [ ] @return doc comment specified, but function has no return statement
60 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
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 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/UserLogin.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AND 11 WARNINGS AFFECTING 27 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
28 | ERROR | [ ] Missing short description in doc comment
29 | ERROR | [ ] Description for the @return value is missing
31 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
33 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
34 | WARNING | [x] A comma should follow the last multiline array item. Found: 'details'
39 | ERROR | [x] Expected 1 blank line after function; 2 found
42 | ERROR | [ ] Missing short description in doc comment
43 | ERROR | [ ] Description for the @return value is missing
49 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
54 | ERROR | [ ] Missing short description in doc comment
55 | ERROR | [ ] Description for the @return value is missing
56 | WARNING | [x] '@TODO: This might get saved in the config! How can we make sure it doesn't?' should match the format '@todo Fix problem X here.'
58 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
59 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
60 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
61 | WARNING | [ ] Unused variable $content.
62 | WARNING | [ ] Unused variable $name.
62 | ERROR | [x] Comments may not appear after statements
62 | ERROR | [x] Inline comments must start with a capital letter
62 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | WARNING | [ ] Unused variable $hide_login.
63 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
64 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
67 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 0
67 | ERROR | [x] 6 spaces found before inline comment; expected "// && \Drupal::request()->get('action') == 'user-login'" but found "// &&
| | \Drupal::request()->get('action') == 'user-login'"
81 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
93 | ERROR | [x] Expected 1 blank line after function; 0 found
94 | 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: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/SiteProperty/PhpVersion.php
-----------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------
21 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Expected 1 blank line after function; 0 found
25 | ERROR | [x] Doc comment short description must end with a full stop
27 | ERROR | [ ] @return doc comment specified, but function has no return statement
40 | ERROR | [x] Expected 1 blank line after function; 0 found
41 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/Plugin/rest/resource/SiteApiResource.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 14 WARNINGS AFFECTING 21 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
17 | WARNING | [x] Unused use statement
79 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
80 | ERROR | [x] Expected one space after the comma, 0 found
83 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
84 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
85 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
86 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
86 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
96 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
96 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
96 | ERROR | [x] Concat operator must be surrounded by a single space
110 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
114 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
114 | WARNING | [x] There must be no blank line following an inline comment
114 | WARNING | [ ] There must be no blank line following an inline comment
114 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
123 | WARNING | [x] '@TODO: Do we need to save a local siteEntity for every GET request?' should match the format '@todo Fix problem X here.'
124 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
126 | ERROR | [x] Data types in @return tags need to be fully namespaced
131 | ERROR | [x] Expected 1 blank line after function; 0 found
132 | 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: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SitePropertyInterface.php
--------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
23 | ERROR | [ ] Description for the @return value is missing
25 | ERROR | [x] Expected 1 blank line after function; 3 found
28 | ERROR | [ ] More than 2 empty lines are not allowed
29 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteInterface.php
------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
------------------------------------------------------------------------------------
6 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
36 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
37 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
38 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
39 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
43 | ERROR | [x] Doc comment short description must end with a full stop
48 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
49 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
50 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
51 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/src/SiteEntityTrait.php
-------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AND 1 WARNING AFFECTING 29 LINES
-------------------------------------------------------------------------------------------------------------
17 | ERROR | [ ] Class property $site_title should use lowerCamel naming without underscores
24 | ERROR | [ ] Class property $site_uuid should use lowerCamel naming without underscores
31 | ERROR | [ ] Class property $site_uri should use lowerCamel naming without underscores
38 | ERROR | [ ] Class property $canonical_uri should use lowerCamel naming without underscores
43 | ERROR | [x] Doc comment long description must end with a full stop
47 | ERROR | [ ] Class property $fields_allow_override should use lowerCamel naming without underscores
54 | ERROR | [ ] Class property $configs_load should use lowerCamel naming without underscores
60 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
65 | ERROR | [ ] Class property $configs_allow_override should use lowerCamel naming without underscores
72 | ERROR | [ ] Class property $states_load should use lowerCamel naming without underscores
79 | ERROR | [ ] Class property $states_allow_override should use lowerCamel naming without underscores
89 | ERROR | [x] Doc comment short description must end with a full stop
100 | ERROR | [ ] Class property $state_factors should use lowerCamel naming without underscores
116 | ERROR | [ ] Missing short description in doc comment
117 | ERROR | [ ] Missing parameter comment
117 | ERROR | [ ] Missing parameter type
118 | ERROR | [ ] Description for the @return value is missing
120 | ERROR | [x] The static declaration must come after the visibility declaration
121 | ERROR | [x] Opening brace should be on the same line as the declaration
125 | ERROR | [ ] Missing short description in doc comment
126 | ERROR | [ ] Missing parameter comment
126 | ERROR | [ ] Missing parameter type
127 | ERROR | [ ] Description for the @return value is missing
129 | ERROR | [x] The static declaration must come after the visibility declaration
130 | ERROR | [x] Opening brace should be on the same line as the declaration
136 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
136 | ERROR | [ ] Description for the @return value is missing
139 | ERROR | [x] Opening brace should be on the same line as the declaration
141 | ERROR | [x] Expected 1 blank line after function; 0 found
144 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
144 | ERROR | [ ] Description for the @return value is missing
147 | ERROR | [x] Opening brace should be on the same line as the declaration
150 | ERROR | [x] Expected 1 newline at end of file; 0 found
150 | ERROR | [x] The closing brace for the trait must have an empty line before it
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/site.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 25 ERRORS AND 15 WARNINGS AFFECTING 33 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
13 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\site\Entity\SiteDefinition.
14 | WARNING | [x] Unused use statement
58 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
63 | ERROR | [ ] The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
145 | WARNING | [x] '@TODO We don't want to delete any of these when users are deleted.' should match the format '@todo Fix problem X here.'
146 | ERROR | [ ] Comment indentation error, expected only 1 spaces
148 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
149 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
150 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
151 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
152 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
153 | WARNING | [ ] Code after the RETURN statement on line 143 cannot be executed
157 | ERROR | [ ] Missing short description in doc comment
158 | ERROR | [ ] Description for the @return value is missing
174 | ERROR | [x] Expected 1 space before "?"; 0 found
174 | ERROR | [x] Expected 1 space before ":"; 0 found
178 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
181 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
190 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
191 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
191 | ERROR | [ ] Missing parameter comment
192 | ERROR | [ ] Missing parameter comment
193 | ERROR | [ ] Missing parameter comment
194 | ERROR | [ ] Missing parameter comment
194 | ERROR | [ ] Missing parameter type
195 | ERROR | [x] Separate the @param and @return sections by a blank line.
195 | ERROR | [ ] Description for the @return value is missing
197 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
197 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
218 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
221 | WARNING | [x] A comma should follow the last multiline array item. Found: 'hidden'
227 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
227 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
228 | WARNING | [x] A comma should follow the last multiline array item. Found: $date
233 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
264 | ERROR | [ ] Namespaced classes/interfaces/traits should be referenced with use statements
264 | ERROR | [x] Expected one space after the comma, 0 found
281 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/site.permissions.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
21 | 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/drupal-10.1.0/modules/contrib/site-site/css/site.css
-------------------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 13 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] Additional whitespace found at start of file
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Selectors must be on a single line
27 | ERROR | [x] Blank lines are not allowed between class names
27 | ERROR | [x] Expected 1 space before opening brace of class definition; newline found
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/site.install
------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
13 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
15 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
23 | ERROR | [ ] Empty installation hooks are not necessary
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/site-site/README.md
-------------------------------------------------------------------------
FOUND 1 ERROR AND 24 WARNINGS AFFECTING 25 LINES
-------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 198 characters
7 | WARNING | [ ] Line exceeds 80 characters; contains 164 characters
22 | WARNING | [ ] Line exceeds 80 characters; contains 167 characters
26 | WARNING | [ ] Line exceeds 80 characters; contains 141 characters
28 | WARNING | [ ] Line exceeds 80 characters; contains 126 characters
30 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
33 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
34 | WARNING | [ ] Line exceeds 80 characters; contains 135 characters
35 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
36 | WARNING | [ ] Line exceeds 80 characters; contains 179 characters
37 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
50 | WARNING | [ ] Line exceeds 80 characters; contains 174 characters
68 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
72 | WARNING | [ ] Line exceeds 80 characters; contains 119 characters
74 | WARNING | [ ] Line exceeds 80 characters; contains 106 characters
76 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
78 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
80 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
88 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
90 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
92 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
96 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
98 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
103 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
130 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/site-site/
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes