Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/src/Plugin/WebformHandler/FormProcessorWebformHandler.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 198 ERRORS AND 19 WARNINGS AFFECTING 105 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
17 | WARNING | [x] Unused use statement
19 | WARNING | [x] Unused use statement
20 | WARNING | [x] Unused use statement
20 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\cmrf_core\Core.
22 | WARNING | [x] Unused use statement
58 | ERROR | [x] Expected 1 blank line before function; 2 found
61 | ERROR | [x] Expected 1 space after "="; 3 found
62 | ERROR | [x] Expected 1 space after "="; 2 found
63 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
63 | ERROR | [x] Expected 1 space after "="; 2 found
72 | ERROR | [x] The first index in a multi-value array must be on a new line
73 | ERROR | [x] Array indentation error, expected 6 spaces but found 15
74 | ERROR | [x] Array indentation error, expected 6 spaces but found 15
74 | ERROR | [x] Expected 1 space after "=>"; 2 found
75 | ERROR | [x] Array indentation error, expected 6 spaces but found 15
75 | ERROR | [x] Expected 1 space after "=>"; 2 found
75 | ERROR | [x] Concat operator must be surrounded by a single space
75 | ERROR | [x] Expected one space after the comma, 0 found
75 | ERROR | [x] Concat operator must be surrounded by a single space
79 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
89 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
91 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
103 | WARNING | [x] There must be no blank line following an inline comment
103 | WARNING | [ ] There must be no blank line following an inline comment
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
105 | ERROR | [x] No space found before comment text; expected "// parent::submitConfigurationForm($form, $form_state);" but found
| | "//parent::submitConfigurationForm($form, $form_state);"
105 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
109 | ERROR | [x] Expected 1 space before "?"; 0 found
109 | ERROR | [x] Expected 1 space after "?"; 0 found
109 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
109 | ERROR | [x] Expected 1 space before ":"; 0 found
109 | ERROR | [x] Expected 1 space after ":"; 0 found
110 | ERROR | [x] Expected 1 space before "?"; 0 found
110 | ERROR | [x] Expected 1 space after "?"; 0 found
110 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
110 | ERROR | [x] Expected 1 space before ":"; 0 found
110 | ERROR | [x] Expected 1 space after ":"; 0 found
127 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
127 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
129 | ERROR | [x] Expected 1 space after IF keyword; 0 found
138 | ERROR | [x] There should be no white space after an opening "["
138 | ERROR | [x] The first index in a multi-value array must be on a new line
213 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
214 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
215 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
234 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
235 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
241 | ERROR | [x] Array indentation error, expected 16 spaces but found 18
255 | ERROR | [x] Concat operator must be surrounded by a single space
260 | WARNING | [ ] #options values usually have to run through t() for translation
264 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
266 | ERROR | [x] Concat operator must be surrounded by a single space
272 | ERROR | [x] Concat operator must be surrounded by a single space
272 | ERROR | [x] Concat operator must be surrounded by a single space
275 | ERROR | [x] Concat operator must be surrounded by a single space
275 | ERROR | [x] Concat operator must be surrounded by a single space
288 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
297 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
304 | WARNING | [x] A comma should follow the last multiline array item. Found: $fpFields
315 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
315 | ERROR | [x] Missing function doc comment
317 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces, found 2
329 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 35 spaces but found 1 space
330 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 12 spaces
331 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 22 spaces but found 16 spaces
332 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 8 spaces
333 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
335 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
336 | ERROR | [x] Expected 1 space before "==="; 0 found
336 | ERROR | [x] Expected 1 space after "==="; 0 found
338 | ERROR | [x] Expected newline after closing brace
338 | ERROR | [x] Expected 1 space before "==="; 0 found
338 | ERROR | [x] Expected 1 space after "==="; 0 found
356 | ERROR | [x] Missing function doc comment
357 | ERROR | [x] Expected 1 space after "="; 2 found
362 | ERROR | [x] Missing function doc comment
365 | ERROR | [x] Expected 1 space after IF keyword; 0 found
365 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
369 | ERROR | [x] Comments may not appear after statements
369 | ERROR | [x] Inline comments must start with a capital letter
369 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
372 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
372 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
373 | ERROR | [x] Expected 1 space after IF keyword; 0 found
373 | ERROR | [x] Expected 1 space before "=="; 0 found
373 | ERROR | [x] Expected 1 space after "=="; 0 found
373 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
376 | ERROR | [x] Expected 1 space after IF keyword; 0 found
376 | ERROR | [x] Expected 1 space before "=="; 0 found
376 | ERROR | [x] Expected 1 space after "=="; 0 found
376 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
379 | ERROR | [x] Expected 1 space before "=="; 0 found
379 | ERROR | [x] Expected 1 space after "=="; 0 found
386 | ERROR | [x] Expected 1 space after IF keyword; 0 found
386 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
394 | ERROR | [x] Expected 1 space after IF keyword; 0 found
394 | ERROR | [x] Expected 1 space before "=="; 0 found
394 | ERROR | [x] Expected 1 space after "=="; 0 found
394 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
402 | ERROR | [x] Expected newline after closing brace
403 | ERROR | [x] Inline comments must start with a capital letter
403 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
406 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
417 | ERROR | [x] Expected 1 blank line after function; 2 found
420 | ERROR | [ ] Missing short description in doc comment
421 | ERROR | [ ] Missing parameter comment
422 | ERROR | [ ] Missing parameter comment
423 | ERROR | [ ] Missing parameter comment
425 | ERROR | [ ] Description for the @return value is missing
452 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
452 | ERROR | [ ] Missing parameter comment
453 | ERROR | [ ] Missing parameter comment
453 | ERROR | [ ] Missing parameter type
454 | ERROR | [ ] Missing parameter type
454 | ERROR | [x] Parameter comment must be on the next line
456 | ERROR | [ ] Description for the @return value is missing
474 | ERROR | [x] Expected 1 blank line after function; 2 found
477 | ERROR | [ ] Missing short description in doc comment
478 | ERROR | [ ] Missing parameter comment
479 | ERROR | [ ] Missing parameter type
479 | ERROR | [x] Parameter comment must be on the next line
481 | ERROR | [ ] Description for the @return value is missing
483 | ERROR | [ ] Private method name "FormProcessorWebformHandler::sendToCiviCRM" is not in lowerCamel format
496 | ERROR | [x] Missing function doc comment
496 | ERROR | [x] Expected 1 space before opening brace; found 0
497 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
497 | ERROR | [x] Expected one space after the comma, 0 found
497 | ERROR | [x] Expected one space after the comma, 0 found
497 | ERROR | [x] Expected one space after the comma, 0 found
497 | ERROR | [x] Expected one space after the comma, 0 found
497 | ERROR | [x] Expected 1 space between "'limit'" and double arrow; 0 found
497 | ERROR | [x] Expected 1 space between double arrow and "0"; 0 found
497 | ERROR | [x] Expected 1 space before "=>"; 0 found
497 | ERROR | [x] Expected 1 space after "=>"; 0 found
498 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
499 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
499 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
499 | ERROR | [x] Opening brace must be the last content on the line
499 | ERROR | [x] There should be no white space after an opening "{"
499 | ERROR | [x] There should be no white space before a closing "}"
499 | ERROR | [x] Closing brace must be on a line by itself
499 | ERROR | [x] Space found before comma in argument list
499 | ERROR | [x] Expected one space after the comma, 0 found
499 | ERROR | [x] Each PHP statement must be on a line by itself
502 | ERROR | [x] Missing function doc comment
502 | ERROR | [x] Expected one space after the comma, 0 found
502 | ERROR | [x] Expected 1 space before opening brace; found 0
503 | ERROR | [x] Expected one space after the comma, 0 found
503 | ERROR | [x] Expected one space after the comma, 0 found
503 | ERROR | [x] Expected one space after the comma, 0 found
503 | ERROR | [x] Expected 1 space between "'api_action'" and double arrow; 0 found
503 | ERROR | [x] Expected 1 space between double arrow and "$formprocessor"; 0 found
503 | ERROR | [x] Expected 1 space before "=>"; 0 found
503 | ERROR | [x] Expected 1 space after "=>"; 0 found
503 | ERROR | [x] Expected one space after the comma, 0 found
503 | ERROR | [x] Expected 1 space between "'limit'" and double arrow; 0 found
503 | ERROR | [x] Expected 1 space between double arrow and "0"; 0 found
503 | ERROR | [x] Expected 1 space before "=>"; 0 found
503 | ERROR | [x] Expected 1 space after "=>"; 0 found
507 | ERROR | [x] Missing function doc comment
507 | ERROR | [x] Expected 1 space before opening brace; found 0
508 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
508 | ERROR | [x] Opening brace must be the last content on the line
508 | ERROR | [x] There should be no white space after an opening "{"
508 | ERROR | [x] There should be no white space before a closing "}"
508 | ERROR | [x] Closing brace must be on a line by itself
508 | ERROR | [x] Space found before comma in argument list
508 | ERROR | [x] Expected one space after the comma, 0 found
508 | ERROR | [x] Each PHP statement must be on a line by itself
511 | ERROR | [x] Missing function doc comment
511 | ERROR | [x] Expected 1 space before opening brace; found 0
512 | ERROR | [x] Expected one space after the comma, 0 found
512 | ERROR | [x] Expected one space after the comma, 0 found
512 | ERROR | [x] Expected one space after the comma, 0 found
512 | ERROR | [x] Expected 1 space between "'api_action'" and double arrow; 0 found
512 | ERROR | [x] Expected 1 space between double arrow and "$formprocessor"; 0 found
512 | ERROR | [x] Expected 1 space before "=>"; 0 found
512 | ERROR | [x] Expected 1 space after "=>"; 0 found
512 | ERROR | [x] Expected one space after the comma, 0 found
512 | ERROR | [x] Expected 1 space between "'limit'" and double arrow; 0 found
512 | ERROR | [x] Expected 1 space between double arrow and "0"; 0 found
512 | ERROR | [x] Expected 1 space before "=>"; 0 found
512 | ERROR | [x] Expected 1 space after "=>"; 0 found
512 | ERROR | [x] Expected one space after the comma, 0 found
514 | ERROR | [x] Expected 1 space after IF keyword; 0 found
514 | ERROR | [x] Expected 1 space before "=="; 0 found
514 | ERROR | [x] Expected 1 space after "=="; 0 found
514 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
516 | ERROR | [x] Expected newline after closing brace
517 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
517 | ERROR | [x] Opening brace must be the last content on the line
517 | ERROR | [x] There should be no white space after an opening "{"
517 | ERROR | [x] There should be no white space before a closing "}"
517 | ERROR | [x] Closing brace must be on a line by itself
517 | ERROR | [x] Space found before comma in argument list
517 | ERROR | [x] Expected one space after the comma, 0 found
517 | ERROR | [x] Each PHP statement must be on a line by itself
521 | ERROR | [x] Missing function doc comment
521 | ERROR | [x] Expected 1 space before opening brace; found 0
522 | ERROR | [x] Expected one space after the comma, 0 found
522 | ERROR | [x] Expected one space after the comma, 0 found
522 | ERROR | [x] Expected one space after the comma, 0 found
522 | ERROR | [x] Expected one space after the comma, 0 found
522 | ERROR | [x] Expected one space after the comma, 0 found
527 | ERROR | [x] Missing function doc comment
537 | ERROR | [ ] key_exists() is a function name alias, use array_key_exists() instead
539 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
540 | ERROR | [x] Array indentation error, expected 14 spaces but found 12
541 | ERROR | [x] Array indentation error, expected 14 spaces but found 12
542 | ERROR | [x] Array indentation error, expected 14 spaces but found 12
543 | ERROR | [x] Array closing indentation error, expected 12 spaces but found 10
565 | ERROR | [x] Expected newline after closing brace
584 | ERROR | [x] Expected 1 blank line after function; 0 found
585 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 198 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/src/Plugin/WebformHandler/FormProcessorWebformBuilder.php
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 53 ERRORS AND 1 WARNING AFFECTING 24 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
4 | ERROR | [x] There must be one blank line after the namespace declaration
10 | ERROR | [x] Missing class doc comment
12 | ERROR | [x] The var keyword must not be used to declare a property
12 | ERROR | [ ] Visibility must be declared on property "$webform"
12 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing parameter comment
17 | ERROR | [ ] Missing parameter type
23 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Expected one space after the comma, 0 found
23 | ERROR | [x] Expected 1 space before opening brace; found 0
26 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
26 | ERROR | [x] Expected 1 space before "=>"; 0 found
26 | ERROR | [x] Expected 1 space after "=>"; 0 found
26 | ERROR | [x] Expected 1 space before "=>"; 0 found
26 | ERROR | [x] Expected 1 space after "=>"; 0 found
26 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
27 | ERROR | [x] Expected 1 space after IF keyword; 0 found
27 | ERROR | [x] Expected 1 space before "=="; 0 found
27 | ERROR | [x] Expected 1 space after "=="; 0 found
27 | ERROR | [ ] key_exists() is a function name alias, use array_key_exists() instead
27 | ERROR | [x] Expected one space after the comma, 0 found
27 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
28 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 9
28 | ERROR | [x] Expected 1 space after IF keyword; 0 found
29 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 11
31 | WARNING | [x] A comma should follow the last multiline array item. Found: $key
33 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 9
33 | ERROR | [x] Expected newline after closing brace
34 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 11
39 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 9
42 | ERROR | [x] Expected one space after the comma, 0 found
49 | ERROR | [ ] Missing parameter comment
50 | ERROR | [x] Separate the @param and @return sections by a blank line.
50 | ERROR | [ ] Description for the @return value is missing
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
57 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
60 | ERROR | [x] Missing function doc comment
60 | ERROR | [x] Expected 1 space before opening brace; found 0
62 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
62 | ERROR | [x] Expected 1 space before "=>"; 0 found
62 | ERROR | [x] Expected 1 space after "=>"; 0 found
62 | ERROR | [x] Expected 1 space before "=>"; 0 found
62 | ERROR | [x] Expected 1 space after "=>"; 0 found
62 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
63 | ERROR | [x] Expected 1 space after IF keyword; 0 found
63 | ERROR | [x] Expected 1 space before "=="; 0 found
63 | ERROR | [x] Expected 1 space after "=="; 0 found
63 | ERROR | [ ] key_exists() is a function name alias, use array_key_exists() instead
63 | ERROR | [x] Expected one space after the comma, 0 found
63 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
64 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 9
69 | ERROR | [x] Missing function doc comment
69 | ERROR | [x] Expected 1 space before opening brace; found 0
------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: ...drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_mollie/src/EventSubscriber/MollieFormProcessorSubscriber.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Doc comment short description must start with a capital letter
31 | ERROR | [x] Missing function doc comment
53 | WARNING | [x] A comma should follow the last multiline array item. Found: )
56 | ERROR | [x] Expected newline after closing brace
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_mollie/cmrf_form_processor_mollie.info.yml
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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
8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_mollie/cmrf_form_processor_mollie.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 1 WARNING AFFECTING 13 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
19 | ERROR | [x] You must use "/**" style comments for a function comment
19 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
19 | ERROR | [x] Expected 1 space before opening brace; found 0
21 | WARNING | [ ] Unused variable $a.
21 | ERROR | [x] Expected 1 space before "="; 0 found
21 | ERROR | [x] Expected 1 space after "="; 0 found
24 | ERROR | [x] Expected 1 space after IF keyword; 0 found
24 | ERROR | [x] Expected 1 space before "!="; 0 found
24 | ERROR | [x] Expected 1 space after "!="; 0 found
29 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
32 | ERROR | [x] Expected 1 space after "="; 2 found
33 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
33 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
34 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Expected 1 space before "=="; 0 found
34 | ERROR | [x] Expected 1 space after "=="; 0 found
34 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
35 | ERROR | [x] Expected 1 space before "="; 0 found
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
41 | ERROR | [x] Expected 1 space after IF keyword; 0 found
41 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
45 | ERROR | [x] Expected 1 space after IF keyword; 0 found
45 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: ...ww/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_display/src/Plugin/WebformElement/CMRFDisplay.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 7 WARNINGS AFFECTING 19 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
2 | ERROR | [ ] Namespaced classes, interfaces and traits should not begin with a file doc comment
8 | ERROR | [x] There must be one blank line after the namespace declaration
10 | WARNING | [x] Unused use statement
13 | ERROR | [ ] Missing short description in doc comment
22 | ERROR | [x] Expected 1 space before opening brace; found 2
24 | ERROR | [x] Missing function doc comment
26 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
27 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
28 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
29 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
30 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
33 | ERROR | [x] Missing function doc comment
40 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
42 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
43 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
44 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
49 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
61 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_display/src/Element/CMRFDisplay.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 6 WARNINGS AFFECTING 24 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
2 | ERROR | [ ] Namespaced classes, interfaces and traits should not begin with a file doc comment
9 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Link.
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
16 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [ ] Missing short description in doc comment
35 | ERROR | [ ] Missing parameter comment
37 | ERROR | [ ] Description for the @return value is missing
39 | ERROR | [ ] Public method name "CMRFDisplay::preRenderCMRFDisplay" is not in lowerCamel format
41 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
42 | ERROR | [x] There must be no space before the colon in a CASE statement
43 | ERROR | [x] Expected one space after the comma, 0 found
44 | ERROR | [x] Expected 1 space after "=>"; 2 found
45 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
47 | ERROR | [x] Case breaking statements must be followed by a single blank line
48 | ERROR | [x] There must be no space before the colon in a CASE statement
49 | ERROR | [x] Expected one space after the comma, 0 found
50 | ERROR | [x] Expected 1 space after "=>"; 2 found
51 | ERROR | [x] Expected 1 space after "=>"; 2 found
52 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
54 | ERROR | [x] Case breaking statements must be followed by a single blank line
56 | ERROR | [x] Expected 1 space after "="; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9/cmrf_form_processor/modules/cmrf_form_processor_display/cmrf_form_processor_display.module
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 /var/www/html/VB/drupal-10.1.0/modules/contrib/cmrf_form_processor-2.0.9
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes