WARNING: The DrupalTheme standard uses 1 deprecated sniff ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - SlevomatCodingStandard.TypeHints.UnionTypeHintFormat This sniff has been deprecated since Slevomat Coding Standard 8.16.0 and will be removed in Slevomat Coding Standard 9.0.0. Use SlevomatCodingStandard.TypeHints.DNFTypeHintFormat instead. Deprecated sniffs are still run, but will stop working at some point in the future. FILE: ./dsfr.theme ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 195 ERRORS AND 9 WARNINGS AFFECTING 77 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 3 | ERROR | [ ] Type Drupal\Core\Render\Element should not be used, but referenced via a fully qualified name. 4 | WARNING | [x] Unused use statement 4 | ERROR | [x] Type Drupal\Core\Render\Element\StatusMessages is not used in this file. 4 | ERROR | [ ] Type Drupal\Core\Render\Element\StatusMessages should not be used, but referenced via a fully qualified name. 5 | ERROR | [ ] Type Drupal\dsfr\settings\Modules should not be used, but referenced via a fully qualified name. 6 | ERROR | [ ] Type Drupal\dsfr\settings\Theme should not be used, but referenced via a fully qualified name. 7 | ERROR | [ ] Type Drupal\dsfr\settings\Tools should not be used, but referenced via a fully qualified name. 12 | ERROR | [ ] Function dsfr_preprocess() does not have parameter type hint nor @param annotation for its parameter $variables. 12 | ERROR | [ ] Function dsfr_preprocess() does not have parameter type hint nor @param annotation for its parameter $hook. 12 | ERROR | [x] Function dsfr_preprocess() does not have void return type hint. 12 | ERROR | [ ] Passing by reference is disallowed. 12 | ERROR | [ ] Unused parameter $hook. 14 | ERROR | [x] Duplicate spaces at position 21. 14 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces 19 | ERROR | [x] The open comment tag must be the only content on the line 19 | ERROR | [x] Doc comment short description must be on the first line 19 | ERROR | [ ] Doc comment short description must start with a capital letter 19 | ERROR | [ ] Doc comment short description must end with a full stop 23 | ERROR | [x] Expected 1 blank line before function; 0 found 23 | ERROR | [ ] Your function is too long. Currently using 45 lines. Can be up to 20 lines. 23 | ERROR | [ ] Function dsfr_preprocess_html() does not have parameter type hint nor @param annotation for its parameter $variables. 23 | ERROR | [x] Function dsfr_preprocess_html() does not have void return type hint. 23 | ERROR | [ ] Passing by reference is disallowed. 30 | ERROR | [x] Useless parentheses. 30 | ERROR | [x] Operator == is disallowed, use === instead. 30 | ERROR | [x] Yoda comparison is required. 30 | ERROR | [x] Ternary operator should be reformatted to more lines. 33 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 36 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 38 | WARNING | [x] A comma should follow the last multiline array item. Found: 'width=device-width, initial-scale=1, shrink-to-fit=no' 38 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 43 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 46 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 48 | WARNING | [x] A comma should follow the last multiline array item. Found: '#000091' 48 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 54 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 60 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 63 | WARNING | [x] A comma should follow the last multiline array item. Found: 'image/svg+xml' 63 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 67 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 70 | WARNING | [x] A comma should follow the last multiline array item. Found: 'image/x-icon' 70 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 74 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 77 | WARNING | [x] A comma should follow the last multiline array item. Found: 'use-credentials' 77 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 82 | ERROR | [x] The open comment tag must be the only content on the line 82 | ERROR | [x] Doc comment short description must be on the first line 82 | ERROR | [ ] Doc comment short description must start with a capital letter 82 | ERROR | [ ] Doc comment short description must end with a full stop 86 | ERROR | [x] Expected 1 blank line before function; 0 found 86 | ERROR | [ ] Function dsfr_page_attachments_alter() does not have @param annotation for its traversable parameter $attachments. 86 | ERROR | [x] Function dsfr_page_attachments_alter() does not have void return type hint. 86 | ERROR | [ ] Passing by reference is disallowed. 89 | ERROR | [x] Use early exit to reduce code nesting. 89 | ERROR | [x] Expected 1 line before "if", found 0. 89 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via an unqualified name without the leading \, because the file does not have a namespace and the type cannot be put in a use | | statement. 90 | ERROR | [x] Whitespace found at end of line 95 | ERROR | [x] The open comment tag must be the only content on the line 95 | ERROR | [x] Doc comment short description must be on the first line 95 | ERROR | [ ] Doc comment short description must start with a capital letter 95 | ERROR | [ ] Doc comment short description must end with a full stop 96 | ERROR | [x] The open comment tag must be the only content on the line 96 | ERROR | [x] Doc comment short description must be on the first line 96 | ERROR | [x] Doc comment short description must end with a full stop 97 | ERROR | [x] The open comment tag must be the only content on the line 97 | ERROR | [x] Doc comment short description must be on the first line 97 | ERROR | [ ] Doc comment short description must start with a capital letter 97 | ERROR | [ ] Doc comment short description must end with a full stop 101 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph 103 | ERROR | [ ] @param annotation of function dsfr_theme_suggestions_alter() does not specify type hint for items of its traversable parameter $suggestions. 104 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 6 spaces 104 | ERROR | [x] Parameter comment must end with a full stop 105 | ERROR | [ ] @param annotation of function dsfr_theme_suggestions_alter() does not specify type hint for items of its traversable parameter $variables. 106 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 6 spaces 106 | ERROR | [x] Parameter comment must end with a full stop 108 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 6 spaces 108 | ERROR | [x] Parameter comment must end with a full stop 110 | ERROR | [x] Function dsfr_theme_suggestions_alter() does not have native type hint for its parameter $hook but it should be possible to add it based on @param annotation "string". 110 | ERROR | [x] Function dsfr_theme_suggestions_alter() does not have void return type hint. 110 | ERROR | [ ] Passing by reference is disallowed. 112 | ERROR | [x] Use early exit to reduce code nesting. 112 | ERROR | [x] Expected 0 lines before "if", found 1. 130 | ERROR | [ ] Function dsfr_theme_suggestions_page_alter() does not have @param annotation for its traversable parameter $suggestions. 130 | ERROR | [ ] Function dsfr_theme_suggestions_page_alter() does not have @param annotation for its traversable parameter $variables. 130 | ERROR | [x] Function dsfr_theme_suggestions_page_alter() does not have void return type hint. 130 | ERROR | [ ] Passing by reference is disallowed. 130 | ERROR | [ ] Unused parameter $variables. 132 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via an unqualified name without the leading \, because the file does not have a namespace and the type cannot be put in a use | | statement. 133 | ERROR | [x] Expected 1 space after SWITCH keyword; 0 found 133 | ERROR | [x] Expected 1 line before "switch", found 0. 133 | ERROR | [x] There should be no white space after an opening "(" 133 | ERROR | [x] There should be no white space before a closing ")" 134 | ERROR | [x] Expected 1 line after "case", found 0. 135 | ERROR | [x] Inline control structures are not allowed 135 | ERROR | [ ] Assignment in if condition is not allowed. 135 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via an unqualified name without the leading \, because the file does not have a namespace and the type cannot be put in a use | | statement. 136 | ERROR | [x] Case breaking statements must be followed by a single blank line 136 | ERROR | [x] Expected 1 line before "break", found 0. 137 | ERROR | [x] Expected 1 line before "case", found 0. 137 | ERROR | [x] Expected 1 line after "case", found 0. 137 | ERROR | [x] Case breaking statements must be followed by a single blank line 137 | ERROR | [x] Closing brace must be on a line by itself 137 | ERROR | [x] Expected 1 line before "break", found -1. 137 | ERROR | [x] Each PHP statement must be on a line by itself 138 | ERROR | [x] Expected 1 line before "case", found 0. 138 | ERROR | [x] Expected 1 line after "case", found 0. 138 | ERROR | [x] Case breaking statements must be followed by a single blank line 138 | ERROR | [x] Closing brace must be on a line by itself 138 | ERROR | [x] Expected 1 line before "break", found -1. 138 | ERROR | [x] Each PHP statement must be on a line by itself 139 | ERROR | [x] Expected 1 line before "case", found 0. 139 | ERROR | [x] Expected 1 line after "case", found 0. 139 | ERROR | [x] Case breaking statements must be followed by a single blank line 139 | ERROR | [x] Closing brace must be on a line by itself 139 | ERROR | [x] Expected 1 line before "break", found -1. 139 | ERROR | [x] Each PHP statement must be on a line by itself 140 | ERROR | [x] Expected 1 line before "case", found 0. 140 | ERROR | [x] Expected 0 lines after "case", found 1. 140 | ERROR | [x] Closing brace must be on a line by itself 140 | ERROR | [x] Expected 1 line before "break", found -1. 140 | ERROR | [x] Expected 0 lines after "break", found 1. 140 | ERROR | [x] Each PHP statement must be on a line by itself 148 | ERROR | [ ] Function dsfr_theme_suggestions_block_alter() does not have @param annotation for its traversable parameter $suggestions. 148 | ERROR | [ ] Function dsfr_theme_suggestions_block_alter() does not have @param annotation for its traversable parameter $variables. 148 | ERROR | [x] Function dsfr_theme_suggestions_block_alter() does not have void return type hint. 148 | ERROR | [ ] Passing by reference is disallowed. 150 | ERROR | [x] Use early exit to reduce code nesting. 150 | ERROR | [x] Expected 0 lines before "if", found 1. 155 | ERROR | [x] The open comment tag must be the only content on the line 155 | ERROR | [x] Doc comment short description must be on the first line 155 | ERROR | [ ] Doc comment short description must start with a capital letter 155 | ERROR | [ ] Doc comment short description must end with a full stop 156 | ERROR | [x] The open comment tag must be the only content on the line 156 | ERROR | [x] Doc comment short description must be on the first line 156 | ERROR | [x] Doc comment short description must end with a full stop 157 | ERROR | [x] The open comment tag must be the only content on the line 157 | ERROR | [x] Doc comment short description must be on the first line 157 | ERROR | [ ] Doc comment short description must start with a capital letter 157 | ERROR | [ ] Doc comment short description must end with a full stop 160 | 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." 160 | ERROR | [x] Doc comment short description must end with a full stop 162 | ERROR | [ ] Function dsfr_form_alter() does not have parameter type hint nor @param annotation for its parameter $form. 162 | ERROR | [ ] Function dsfr_form_alter() does not have parameter type hint nor @param annotation for its parameter $form_id. 162 | ERROR | [x] Function dsfr_form_alter() does not have void return type hint. 162 | ERROR | [ ] Passing by reference is disallowed. 162 | ERROR | [x] Class \Drupal\Core\Form\FormStateInterface should not be referenced via a fully qualified name, but via a use statement. 162 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 162 | ERROR | [ ] Unused parameter $form_state. 168 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters 168 | ERROR | [x] Doc comment short description must end with a full stop 169 | ERROR | [x] There must be no blank lines after the function comment 171 | ERROR | [ ] Function add_placeholders() does not have parameter type hint nor @param annotation for its parameter $element. 171 | ERROR | [x] Function add_placeholders() does not have void return type hint. 171 | ERROR | [ ] Passing by reference is disallowed. 173 | WARNING | [ ] Unused variable $types. 173 | ERROR | [ ] Unused variable $types. 173 | ERROR | [x] Duplicate spaces at position 9. 176 | ERROR | [x] Expected 1 space after IF keyword; 0 found 176 | ERROR | [ ] Strict parameter missing in in_array() call. 181 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found 181 | ERROR | [x] Class \Drupal\Core\Render\Element should not be referenced via a fully qualified name, but via a use statement. 181 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 187 | ERROR | [x] Doc comment short description must end with a full stop 189 | ERROR | [ ] Function dsfr_form_search_block_form_alter() does not have parameter type hint nor @param annotation for its parameter $form. 189 | ERROR | [ ] Function dsfr_form_search_block_form_alter() does not have parameter type hint nor @param annotation for its parameter $form_id. 189 | ERROR | [x] Function dsfr_form_search_block_form_alter() does not have void return type hint. 189 | ERROR | [ ] Passing by reference is disallowed. 189 | ERROR | [x] Class \Drupal\Core\Form\FormStateInterface should not be referenced via a fully qualified name, but via a use statement. 189 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements 189 | ERROR | [ ] Unused parameter $form_state. 189 | ERROR | [ ] Unused parameter $form_id. 197 | ERROR | [ ] Missing parameter type 199 | ERROR | [ ] Missing parameter type 202 | ERROR | [x] Expected 0 lines between different annotations types, found 1. 202 | ERROR | [ ] Function return type is not void, but function has no return statement 202 | ERROR | [ ] Description for the @return value is missing 202 | ERROR | [ ] @return annotation of function dsfr_attach_form_id() does not specify type hint for items of its traversable return value. 204 | ERROR | [ ] Function dsfr_attach_form_id() does not have parameter type hint nor @param annotation for its parameter $form. 204 | ERROR | [ ] Function dsfr_attach_form_id() does not have parameter type hint nor @param annotation for its parameter $form_id. 204 | ERROR | [x] Function dsfr_attach_form_id() does not have native return type hint for its return value but it should be possible to add it based on @return annotation "array". 204 | ERROR | [ ] Passing by reference is disallowed. 206 | ERROR | [x] Expected 1 line after "if", found 0. 209 | ERROR | [x] Comments may not appear after statements 209 | ERROR | [x] Inline comments must start with a capital letter 209 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 209 | ERROR | [x] Comment after code is disallowed. 216 | ERROR | [ ] Function dsfr_preprocess_input() does not have parameter type hint nor @param annotation for its parameter $variables. 216 | ERROR | [x] Function dsfr_preprocess_input() does not have void return type hint. 216 | ERROR | [ ] Passing by reference is disallowed. 219 | ERROR | [x] Use early exit to reduce code nesting. 219 | ERROR | [x] Expected 0 lines before "if", found 1. 219 | ERROR | [x] Operator == is disallowed, use === instead. 219 | ERROR | [x] Yoda comparison is required. 221 | ERROR | [x] Expected 1 space after IF keyword; 0 found 221 | ERROR | [x] Expected 0 lines before "if", found 1. 221 | ERROR | [x] Yoda comparison is required. 221 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 225 | ERROR | [x] Concat operator must be surrounded by a single space 229 | ERROR | [x] Expected newline after closing brace 230 | ERROR | [x] Whitespace found at end of line 230 | ERROR | [x] Duplicate spaces at position 81. 233 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 140 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: ./mkdocs.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 51 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./dsfr.breakpoints.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 30 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./dsfr.libraries.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 732 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./src/style/_breakpoints.css ---------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 3 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/dsfr_drupal.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/_form.css ------------------------------------------------------------------------------------ FOUND 7 ERRORS AFFECTING 7 LINES ------------------------------------------------------------------------------------ 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 23 | ERROR | [x] Whitespace found at end of line 78 | ERROR | [x] Whitespace found at end of line 89 | ERROR | [x] Whitespace found at end of line 98 | ERROR | [x] Whitespace found at end of line 103 | ERROR | [x] Whitespace found at end of line 109 | ERROR | [x] Whitespace found at end of line ------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------ FILE: ./src/style/dsfr_settings.css ---------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | ERROR | [x] Whitespace found at end of line 9 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/_ui-dialog.css ----------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 22 | ERROR | [x] Whitespace found at end of line ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: ./src/style/admin/_edition.css ----------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 6 LINES ----------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 10 | ERROR | [x] Whitespace found at end of line 11 | ERROR | [x] Whitespace found at end of line 13 | ERROR | [x] Whitespace found at end of line 36 | ERROR | [x] Whitespace found at end of line 38 | ERROR | [x] Whitespace found at end of line ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: ./src/style/admin/jquery-ui-components.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/admin/_media-library-override.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/admin/_button.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/admin/_toolbar.css ----------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ----------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 8 | ERROR | [x] Whitespace found at end of line 11 | ERROR | [x] Whitespace found at end of line 17 | ERROR | [x] Whitespace found at end of line ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: ./src/style/dsfr_drupal_user.css ----------------------------------------------------------------------------------- FOUND 8 ERRORS AFFECTING 8 LINES ----------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 11 | ERROR | [x] Whitespace found at end of line 21 | ERROR | [x] Whitespace found at end of line 30 | ERROR | [x] Whitespace found at end of line 36 | ERROR | [x] Whitespace found at end of line 37 | ERROR | [x] Whitespace found at end of line 38 | ERROR | [x] Whitespace found at end of line 42 | ERROR | [x] Whitespace found at end of line ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: ./src/style/modules/_tacjs-mixin.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/modules/_tacjs-init.css ----------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ----------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 36 | ERROR | [x] Whitespace found at end of line 45 | ERROR | [x] Whitespace found at end of line ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: ./src/style/modules/_tacjs-panel.css ---------------------------------------------------------------------- FOUND 16 ERRORS AFFECTING 16 LINES ---------------------------------------------------------------------- 23 | ERROR | [x] Whitespace found at end of line 24 | ERROR | [x] Whitespace found at end of line 25 | ERROR | [x] Whitespace found at end of line 78 | ERROR | [x] Whitespace found at end of line 86 | ERROR | [x] Whitespace found at end of line 88 | ERROR | [x] Whitespace found at end of line 90 | ERROR | [x] Whitespace found at end of line 120 | ERROR | [x] Whitespace found at end of line 121 | ERROR | [x] Whitespace found at end of line 122 | ERROR | [x] Whitespace found at end of line 179 | ERROR | [x] Whitespace found at end of line 189 | ERROR | [x] Whitespace found at end of line 192 | ERROR | [x] Whitespace found at end of line 195 | ERROR | [x] Whitespace found at end of line 216 | ERROR | [x] Whitespace found at end of line 237 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./src/style/modules/_tacjs-banner-button.css ---------------------------------------------------------------------------- FOUND 72 ERRORS AFFECTING 72 LINES ---------------------------------------------------------------------------- 4 | ERROR | [x] Whitespace found at end of line 5 | ERROR | [x] Whitespace found at end of line 6 | ERROR | [x] Whitespace found at end of line 7 | ERROR | [x] Whitespace found at end of line 9 | ERROR | [x] Whitespace found at end of line 12 | ERROR | [x] Whitespace found at end of line 13 | ERROR | [x] Whitespace found at end of line 14 | ERROR | [x] Whitespace found at end of line 15 | ERROR | [x] Whitespace found at end of line 16 | ERROR | [x] Whitespace found at end of line 30 | ERROR | [x] Whitespace found at end of line 35 | ERROR | [x] Whitespace found at end of line 36 | ERROR | [x] Whitespace found at end of line 41 | ERROR | [x] Whitespace found at end of line 43 | ERROR | [x] Whitespace found at end of line 51 | ERROR | [x] Whitespace found at end of line 57 | ERROR | [x] Whitespace found at end of line 66 | ERROR | [x] Whitespace found at end of line 73 | ERROR | [x] Whitespace found at end of line 82 | ERROR | [x] Whitespace found at end of line 89 | ERROR | [x] Whitespace found at end of line 115 | ERROR | [x] Whitespace found at end of line 120 | ERROR | [x] Whitespace found at end of line 122 | ERROR | [x] Whitespace found at end of line 130 | ERROR | [x] Whitespace found at end of line 131 | ERROR | [x] Whitespace found at end of line 132 | ERROR | [x] Whitespace found at end of line 133 | ERROR | [x] Whitespace found at end of line 134 | ERROR | [x] Whitespace found at end of line 137 | ERROR | [x] Whitespace found at end of line 138 | ERROR | [x] Whitespace found at end of line 139 | ERROR | [x] Whitespace found at end of line 140 | ERROR | [x] Whitespace found at end of line 143 | ERROR | [x] Whitespace found at end of line 146 | ERROR | [x] Whitespace found at end of line 149 | ERROR | [x] Whitespace found at end of line 155 | ERROR | [x] Whitespace found at end of line 157 | ERROR | [x] Whitespace found at end of line 161 | ERROR | [x] Whitespace found at end of line 177 | ERROR | [x] Whitespace found at end of line 180 | ERROR | [x] Whitespace found at end of line 191 | ERROR | [x] Whitespace found at end of line 193 | ERROR | [x] Whitespace found at end of line 199 | ERROR | [x] Whitespace found at end of line 213 | ERROR | [x] Whitespace found at end of line 219 | ERROR | [x] Whitespace found at end of line 221 | ERROR | [x] Whitespace found at end of line 228 | ERROR | [x] Whitespace found at end of line 230 | ERROR | [x] Whitespace found at end of line 232 | ERROR | [x] Whitespace found at end of line 236 | ERROR | [x] Whitespace found at end of line 238 | ERROR | [x] Whitespace found at end of line 240 | ERROR | [x] Whitespace found at end of line 242 | ERROR | [x] Whitespace found at end of line 248 | ERROR | [x] Whitespace found at end of line 252 | ERROR | [x] Whitespace found at end of line 254 | ERROR | [x] Whitespace found at end of line 256 | ERROR | [x] Whitespace found at end of line 260 | ERROR | [x] Whitespace found at end of line 267 | ERROR | [x] Whitespace found at end of line 271 | ERROR | [x] Whitespace found at end of line 274 | ERROR | [x] Whitespace found at end of line 280 | ERROR | [x] Whitespace found at end of line 285 | ERROR | [x] Whitespace found at end of line 292 | ERROR | [x] Whitespace found at end of line 296 | ERROR | [x] Whitespace found at end of line 300 | ERROR | [x] Whitespace found at end of line 312 | ERROR | [x] Whitespace found at end of line 318 | ERROR | [x] Whitespace found at end of line 336 | ERROR | [x] Whitespace found at end of line 338 | ERROR | [x] Whitespace found at end of line 345 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------------- PHPCBF CAN FIX THE 72 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------- FILE: ./src/style/modules/_simplenews.css ---------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ---------------------------------------------------------------------- 3 | ERROR | [x] Whitespace found at end of line 4 | ERROR | [x] Whitespace found at end of line 6 | ERROR | [x] Whitespace found at end of line 7 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./src/style/_comments.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/dsfr_drupal_maintenance.css ---------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 1 | ERROR | [x] Whitespace found at end of line ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/_fix.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/style/dsfr_drupal_admin.css ---------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" ---------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------- FILE: ./src/settings/Tools.php ------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 66 ERRORS AND 6 WARNINGS AFFECTING 45 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | WARNING | [x] Unused use statement 5 | ERROR | [x] Type Drupal\Core\Config\ImmutableConfig is not used in this file. 5 | ERROR | [ ] Type Drupal\Core\Config\ImmutableConfig should not be used, but referenced via a fully qualified name. 6 | WARNING | [x] Unused use statement 6 | ERROR | [x] Type Drupal\Core\Path\CurrentPathStack is not used in this file. 6 | ERROR | [ ] Type Drupal\Core\Path\CurrentPathStack should not be used, but referenced via a fully qualified name. 7 | WARNING | [x] Unused use statement 7 | ERROR | [x] Type Drupal\Core\Path\PathMatcherInterface is not used in this file. 7 | ERROR | [ ] Type Drupal\Core\Path\PathMatcherInterface should not be used, but referenced via a fully qualified name. 8 | ERROR | [ ] Type Drupal\Core\StringTranslation\TranslatableMarkup should not be used, but referenced via a fully qualified name. 13 | ERROR | [x] All classes should be declared using either the "abstract" or "final" keyword. 13 | ERROR | [ ] Class name Drupal\dsfr\settings\Tools does not match filepath ./src/settings/Tools.php. 18 | ERROR | [ ] Description for the @return value must be on the next line 22 | ERROR | [x] Use assertion instead of inline documentation comment. 22 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @var should be referenced via a fully qualified name. 22 | ERROR | [x] Data types in @var tags need to be fully namespaced 23 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 25 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 26 | ERROR | [x] Duplicate spaces at position 13. 27 | ERROR | [x] Duplicate spaces at position 15. 28 | ERROR | [x] Duplicate spaces at position 17. 28 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 29 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 30 | ERROR | [x] Duplicate spaces at position 14. 31 | ERROR | [x] Duplicate spaces at position 17. 31 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 32 | ERROR | [x] Duplicate spaces at position 19. 32 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 32 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 32 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 33 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 33 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 40 | ERROR | [ ] Description for the @return value must be on the next line 44 | ERROR | [ ] Missing variable $pathCurrent before or after the documentation comment. 44 | ERROR | [x] Class name \Drupal\Core\Path\CurrentPathStack in @var should be referenced via a fully qualified name. 44 | ERROR | [x] Data types in @var tags need to be fully namespaced 45 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 47 | ERROR | [ ] Missing variable $pathMatcher before or after the documentation comment. 47 | ERROR | [x] Class name \Drupal\Core\Path\PathMatcherInterface in @var should be referenced via a fully qualified name. 47 | ERROR | [x] Data types in @var tags need to be fully namespaced 48 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 49 | ERROR | [x] Whitespace found at end of line 51 | ERROR | [x] Function str_replace() should be referenced via a fully qualified name. 52 | ERROR | [x] Function substr() should be referenced via a fully qualified name. 54 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 55 | ERROR | [x] Duplicate spaces at position 14. 57 | WARNING | [x] A comma should follow the last multiline array item. Found: $current_clean 57 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 64 | ERROR | [x] Parameter comment must be on the next line 65 | ERROR | [x] Separate the @param and @return sections by a blank line. 65 | ERROR | [ ] Description for the @return value must be on the next line 69 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 71 | ERROR | [x] Whitespace found at end of line 72 | ERROR | [x] Function file_exists() should be referenced via a fully qualified name. 74 | ERROR | [x] Function file_get_contents() should be referenced via a fully qualified name. 75 | ERROR | [x] Function json_decode() should be referenced via a fully qualified name. 76 | ERROR | [x] Whitespace found at end of line 80 | ERROR | [x] Whitespace found at end of line 81 | ERROR | [x] Whitespace found at end of line 88 | ERROR | [x] Parameter comment must be on the next line 89 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Tools::t() does not specify type hint for items of its traversable parameter $args. 89 | ERROR | [x] Parameter comment must be on the next line 90 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Tools::t() does not specify type hint for items of its traversable parameter $options. 90 | ERROR | [x] Parameter comment must be on the next line 91 | ERROR | [x] Separate the @param and @return sections by a blank line. 91 | ERROR | [ ] Description for the @return value is missing 91 | ERROR | [x] Method \Drupal\dsfr\settings\Tools::t() has useless @return annotation. 94 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 96 | ERROR | [x] Expected 1 newline at end of file; 0 found 96 | ERROR | [x] The closing brace for the class must have an empty line before it 96 | ERROR | [x] There must be one empty line before class closing brace. ------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 59 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: ./src/settings/Components.php ------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 46 ERRORS AND 1 WARNING AFFECTING 26 LINES ------------------------------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | ERROR | [ ] Type Drupal\Core\Config\ImmutableConfig should not be used, but referenced via a fully qualified name. 10 | ERROR | [x] All classes should be declared using either the "abstract" or "final" keyword. 10 | ERROR | [ ] Class name Drupal\dsfr\settings\Components does not match filepath ./src/settings/Components.php. 15 | ERROR | [x] Usage of array type hint syntax in "string[]" is disallowed, use generic type hint syntax instead. 15 | ERROR | [ ] Description for the @return value must be on the next line 17 | ERROR | [ ] Your function is too long. Currently using 48 lines. Can be up to 20 lines. 19 | ERROR | [x] Expected 0 lines before "return", found 1. 24 | ERROR | [x] Expected 0 spaces before comma; 1 found 65 | ERROR | [x] Whitespace found at end of line 66 | ERROR | [x] Whitespace found at end of line 66 | ERROR | [x] Duplicate spaces at position 7. 70 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 72 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @param should be referenced via a fully qualified name. 72 | ERROR | [x] Data types in @param tags need to be fully namespaced 72 | ERROR | [x] Parameter comment must be on the next line 73 | ERROR | [x] Parameter comment must be on the next line 74 | ERROR | [x] Whitespace found at end of line 75 | ERROR | [ ] Usage of "mixed" type hint is disallowed. 75 | ERROR | [x] Expected 0 lines between different annotations types, found 1. 84 | ERROR | [ ] Cognitive complexity for "initDsfrComponents" is 6 but has to be less than or equal to 5. 84 | ERROR | [x] Signature of method "initDsfrComponents" should be placed on a single line. 85 | ERROR | [x] Whitespace found at end of line 86 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 86 | ERROR | [x] Multi-line function declaration must have a trailing comma after the last parameter. 89 | ERROR | [ ] Implicit array creation is disallowed. 92 | ERROR | [x] There should be no white space after an opening "(" 92 | ERROR | [x] Operator != is disallowed, use !== instead. 92 | ERROR | [x] Yoda comparison is required. 92 | ERROR | [x] There should be no white space before a closing ")" 94 | ERROR | [x] Whitespace found at end of line 94 | ERROR | [x] Duplicate spaces at position 25. 95 | ERROR | [x] Expected 1 line before "foreach", found 0. 98 | ERROR | [x] Use early exit to reduce code nesting. 98 | ERROR | [x] Expected 1 line before "if", found 0. 98 | ERROR | [x] There should be no white space after an opening "(" 98 | ERROR | [x] There should be no white space after an opening "(" 98 | ERROR | [x] There should be no white space before a closing ")" 98 | ERROR | [x] Operator == is disallowed, use === instead. 98 | ERROR | [x] Yoda comparison is required. 98 | ERROR | [x] There should be no white space before a closing ")" 100 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 101 | ERROR | [ ] Use of post-increment operator is disallowed. 106 | ERROR | [x] Whitespace found at end of line 110 | ERROR | [x] Expected 1 newline at end of file; 0 found 110 | ERROR | [x] The closing brace for the class must have an empty line before it 110 | ERROR | [x] There must be one empty line before class closing brace. ------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------- FILE: ./src/settings/Modules.php ------------------------------------------------------------------------------------------------------------------------------------------ FOUND 38 ERRORS AND 2 WARNINGS AFFECTING 20 LINES ------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | WARNING | [x] Unused use statement 5 | ERROR | [x] Type Drupal\Core\Extension\ModuleHandlerInterface is not used in this file. 5 | ERROR | [ ] Type Drupal\Core\Extension\ModuleHandlerInterface should not be used, but referenced via a fully qualified name. 10 | ERROR | [x] All classes should be declared using either the "abstract" or "final" keyword. 10 | ERROR | [ ] Class name Drupal\dsfr\settings\Modules does not match filepath ./src/settings/Modules.php. 15 | ERROR | [x] Whitespace found at end of line 16 | ERROR | [x] Whitespace found at end of line 16 | ERROR | [x] Return comment indentation must be 3 spaces, found 1 spaces 17 | ERROR | [x] Return comment indentation must be 3 spaces, found 1 spaces 21 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 29 | WARNING | [x] A comma should follow the last multiline array item. Found: 'simple_styleguide' 29 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 31 | ERROR | [x] Whitespace found at end of line 32 | ERROR | [x] There should be no white space after an opening "(" 32 | ERROR | [x] There should be no white space before a closing ")" 38 | ERROR | [x] Parameter comment must be on the next line 39 | ERROR | [x] Separate the @param and @return sections by a blank line. 39 | ERROR | [x] Whitespace found at end of line 40 | ERROR | [x] Whitespace found at end of line 40 | ERROR | [x] Return comment indentation must be 3 spaces, found 1 spaces 41 | ERROR | [x] Return comment indentation must be 3 spaces, found 1 spaces 45 | ERROR | [x] Use assertion instead of inline documentation comment. 45 | ERROR | [x] Class name \Drupal\Core\Extension\ModuleHandlerInterface in @var should be referenced via a fully qualified name. 45 | ERROR | [x] Data types in @var tags need to be fully namespaced 46 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 49 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found 49 | ERROR | [x] Expected 1 line after "foreach", found 0. 49 | ERROR | [x] There should be no white space after an opening "(" 49 | ERROR | [x] There should be no white space before a closing ")" 49 | ERROR | [x] Whitespace found at end of line 50 | ERROR | [x] Useless parentheses. 50 | ERROR | [x] There should be no white space after an opening "(" 50 | ERROR | [x] There should be no white space before a closing ")" 50 | ERROR | [x] Ternary operator should be reformatted to more lines. 50 | ERROR | [x] Whitespace found at end of line 52 | ERROR | [x] Expected 1 line before "return", found 0. 54 | ERROR | [x] Expected 1 newline at end of file; 0 found 54 | ERROR | [x] The closing brace for the class must have an empty line before it 54 | ERROR | [x] There must be one empty line before class closing brace. ------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------ FILE: ./src/settings/Form.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 141 ERRORS AND 5 WARNINGS AFFECTING 59 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | ERROR | [ ] Type Drupal\Core\Config\ImmutableConfig should not be used, but referenced via a fully qualified name. 6 | WARNING | [x] Unused use statement 6 | ERROR | [ ] Type Drupal\dsfr\settings\Tools should not be used, but referenced via a fully qualified name. 6 | ERROR | [x] Use Drupal\dsfr\settings\Tools is from the same namespace – that is prohibited. 9 | ERROR | [x] Doc comment short description must end with a full stop 11 | ERROR | [x] All classes should be declared using either the "abstract" or "final" keyword. 11 | ERROR | [ ] Class name Drupal\dsfr\settings\Form does not match filepath ./src/settings/Form.php. 16 | ERROR | [x] Parameter comment must be on the next line 17 | ERROR | [x] Parameter comment must be on the next line 18 | ERROR | [x] Separate the @param and @return sections by a blank line. 18 | ERROR | [ ] Description for the @return value must be on the next line 18 | ERROR | [ ] @return annotation of method \Drupal\dsfr\settings\Form::detailsType() does not specify type hint for items of its traversable return value. 20 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 20 | ERROR | [x] There should be no white space after an opening "(" 20 | ERROR | [x] There should be no white space before a closing ")" 20 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 22 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 24 | ERROR | [x] There should be no white space after an opening "(" 24 | WARNING | [ ] Only string literals should be passed to t() where possible 24 | ERROR | [x] There should be no white space before a closing ")" 26 | WARNING | [x] A comma should follow the last multiline array item. Found: TRUE 26 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 29 | ERROR | [x] Expected 1 space after IF keyword; 0 found 29 | ERROR | [x] Inline control structures are not allowed 29 | ERROR | [x] There should be no white space after an opening "(" 29 | ERROR | [x] Operator != is disallowed, use !== instead. 29 | ERROR | [x] Yoda comparison is required. 29 | ERROR | [ ] Implicit array creation is disallowed. 37 | ERROR | [x] Parameter comment must be on the next line 38 | ERROR | [x] Parameter comment must be on the next line 39 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @param should be referenced via a fully qualified name. 39 | ERROR | [x] Data types in @param tags need to be fully namespaced 39 | ERROR | [x] Parameter comment must be on the next line 40 | ERROR | [x] Parameter comment must be on the next line 41 | ERROR | [x] Parameter comment must be on the next line 42 | ERROR | [x] Separate the @param and @return sections by a blank line. 42 | ERROR | [ ] Description for the @return value must be on the next line 42 | ERROR | [ ] @return annotation of method \Drupal\dsfr\settings\Form::checkboxType() does not specify type hint for items of its traversable return value. 47 | ERROR | [x] Whitespace found at end of line 49 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 49 | ERROR | [x] Multi-line function declaration must have a trailing comma after the last parameter. 52 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 54 | ERROR | [x] There should be no white space after an opening "(" 54 | WARNING | [ ] Only string literals should be passed to t() where possible 54 | ERROR | [x] There should be no white space before a closing ")" 55 | ERROR | [x] There should be no white space after an opening "(" 55 | ERROR | [x] There should be no white space before a closing ")" 58 | ERROR | [x] Expected 1 space after IF keyword; 0 found 58 | ERROR | [x] Inline control structures are not allowed 58 | ERROR | [x] There should be no white space after an opening "(" 58 | ERROR | [x] Yoda comparison is required. 58 | ERROR | [x] There should be no white space before a closing ")" 59 | ERROR | [x] Expected 1 space after IF keyword; 0 found 59 | ERROR | [x] Inline control structures are not allowed 59 | ERROR | [x] Expected 1 line before "if", found 0. 59 | ERROR | [x] There should be no white space after an opening "(" 59 | ERROR | [x] Yoda comparison is required. 59 | ERROR | [x] There should be no white space before a closing ")" 67 | ERROR | [x] Parameter comment must be on the next line 68 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @param should be referenced via a fully qualified name. 68 | ERROR | [x] Data types in @param tags need to be fully namespaced 68 | ERROR | [x] Parameter comment must be on the next line 69 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Form::marginPattern() does not specify type hint for items of its traversable parameter $top. 69 | ERROR | [x] Parameter comment must be on the next line 70 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Form::marginPattern() does not specify type hint for items of its traversable parameter $bottom. 70 | ERROR | [x] Parameter comment must be on the next line 71 | ERROR | [x] Separate the @param and @return sections by a blank line. 71 | ERROR | [ ] Description for the @return value must be on the next line 71 | ERROR | [ ] @return annotation of method \Drupal\dsfr\settings\Form::marginPattern() does not specify type hint for items of its traversable return value. 75 | ERROR | [x] Whitespace found at end of line 77 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 77 | ERROR | [x] Multi-line function declaration must have a trailing comma after the last parameter. 79 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 80 | ERROR | [x] Concat operator must be surrounded by a single space 81 | ERROR | [x] Concat operator must be surrounded by a single space 88 | ERROR | [x] Parameter comment must be on the next line 89 | ERROR | [x] Parameter comment must be on the next line 90 | ERROR | [x] Parameter comment must be on the next line 91 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @param should be referenced via a fully qualified name. 91 | ERROR | [x] Data types in @param tags need to be fully namespaced 91 | ERROR | [x] Parameter comment must be on the next line 92 | ERROR | [x] Parameter comment must be on the next line 93 | ERROR | [x] Separate the @param and @return sections by a blank line. 93 | ERROR | [ ] Description for the @return value must be on the next line 93 | ERROR | [ ] @return annotation of method \Drupal\dsfr\settings\Form::selectMargin() does not specify type hint for items of its traversable return value. 95 | ERROR | [x] Whitespace found at end of line 99 | ERROR | [x] Whitespace found at end of line 100 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 100 | ERROR | [x] Multi-line function declaration must have a trailing comma after the last parameter. 103 | ERROR | [x] Expected 0 lines before "return", found 1. 103 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 107 | ERROR | [x] There should be no white space after an opening "(" 107 | ERROR | [x] There should be no white space before a closing ")" 108 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 108 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 113 | ERROR | [x] Doc comment short description must end with a full stop 115 | ERROR | [ ] Missing parameter comment 115 | ERROR | [x] Method \Drupal\dsfr\settings\Form::margin() has useless @param annotation for parameter $default. 116 | ERROR | [x] Separate the @param and @return sections by a blank line. 116 | ERROR | [x] Class name \Drupal\dsfr\settings\TranslatableMarkup in @return should be referenced via a fully qualified name. 116 | ERROR | [ ] Description for the @return value must be on the next line 118 | ERROR | [ ] Cognitive complexity for "margin" is 7 but has to be less than or equal to 5. 118 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 118 | ERROR | [x] There should be no white space after an opening "(" 118 | ERROR | [x] There should be no white space before a closing ")" 118 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 120 | ERROR | [x] Expected 1 space after FOR keyword; 0 found 120 | ERROR | [x] Expected 0 lines before "for", found 1. 120 | ERROR | [x] Expected 1 line after "for", found 0. 120 | ERROR | [x] There should be no white space after an opening "(" 120 | ERROR | [ ] Use of post-increment operator is disallowed. 122 | ERROR | [x] Expected 0 lines before "if", found 1. 122 | ERROR | [x] There should be no white space after an opening "(" 122 | ERROR | [x] Operator == is disallowed, use === instead. 122 | ERROR | [x] Yoda comparison is required. 122 | ERROR | [x] There should be no white space before a closing ")" 122 | ERROR | [x] Newline required after opening brace 122 | ERROR | [x] There should be no white space after an opening "{" 122 | ERROR | [ ] Implicit array creation is disallowed. 122 | ERROR | [x] There should be no white space before a closing "}" 122 | ERROR | [x] Closing brace must be on a line by itself 123 | ERROR | [x] There should be no white space after an opening "(" 123 | ERROR | [x] Operator == is disallowed, use === instead. 123 | ERROR | [x] Yoda comparison is required. 123 | ERROR | [x] There should be no white space before a closing ")" 123 | ERROR | [x] Newline required after opening brace 123 | ERROR | [x] There should be no white space after an opening "{" 123 | ERROR | [ ] Implicit array creation is disallowed. 123 | ERROR | [x] There should be no white space before a closing "}" 123 | ERROR | [x] Closing brace must be on a line by itself 123 | ERROR | [x] Whitespace found at end of line 124 | ERROR | [x] Newline required after opening brace 124 | ERROR | [x] There should be no white space after an opening "{" 124 | ERROR | [ ] Implicit array creation is disallowed. 124 | ERROR | [x] There should be no white space before a closing "}" 124 | ERROR | [x] Closing brace must be on a line by itself 126 | ERROR | [x] Expected 1 space after IF keyword; 0 found 126 | ERROR | [x] Inline control structures are not allowed 126 | ERROR | [x] There should be no white space after an opening "(" 126 | ERROR | [x] Operator == is disallowed, use === instead. 126 | ERROR | [x] There should be no white space before a closing ")" 128 | ERROR | [x] Expected 1 line before "return", found 0. 130 | ERROR | [x] Expected 1 newline at end of file; 0 found 130 | ERROR | [x] The closing brace for the class must have an empty line before it 130 | ERROR | [x] There must be one empty line before class closing brace. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 123 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: ./src/settings/Theme.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 223 ERRORS AND 29 WARNINGS AFFECTING 137 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 5 | ERROR | [ ] Type Drupal\Core\Config\ImmutableConfig should not be used, but referenced via a fully qualified name. 6 | ERROR | [ ] Type Drupal\Core\Url should not be used, but referenced via a fully qualified name. 7 | WARNING | [x] Unused use statement 7 | ERROR | [ ] Type Drupal\dsfr\settings\Components should not be used, but referenced via a fully qualified name. 7 | ERROR | [x] Use Drupal\dsfr\settings\Components is from the same namespace – that is prohibited. 8 | WARNING | [x] Unused use statement 8 | ERROR | [ ] Type Drupal\dsfr\settings\Tools should not be used, but referenced via a fully qualified name. 8 | ERROR | [x] Use Drupal\dsfr\settings\Tools is from the same namespace – that is prohibited. 10 | ERROR | [x] Missing class doc comment 10 | ERROR | [x] All classes should be declared using either the "abstract" or "final" keyword. 10 | ERROR | [ ] Class name Drupal\dsfr\settings\Theme does not match filepath ./src/settings/Theme.php. 13 | ERROR | [x] Doc comment short description must end with a full stop 14 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment 14 | ERROR | [ ] Usage of "mixed" type hint is disallowed. 14 | ERROR | [x] Expected 1 line between description and annotations, found 0. 14 | ERROR | [ ] Description for the @return value must be on the next line 16 | ERROR | [ ] Your function is too long. Currently using 70 lines. Can be up to 20 lines. 18 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 19 | ERROR | [x] Useless parentheses. 19 | ERROR | [ ] Use of super global variable is disallowed. 19 | ERROR | [ ] Use of super global variable is disallowed. 19 | ERROR | [x] Operator == is disallowed, use === instead. 19 | ERROR | [x] Yoda comparison is required. 19 | ERROR | [ ] Use of super global variable is disallowed. 19 | ERROR | [x] Operator == is disallowed, use === instead. 19 | ERROR | [x] Yoda comparison is required. 19 | ERROR | [x] Ternary operator should be reformatted to more lines. 19 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 171 characters. 20 | ERROR | [ ] Use of super global variable is disallowed. 21 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 24 | ERROR | [x] Duplicate spaces at position 15. 25 | ERROR | [x] Duplicate spaces at position 14. 26 | ERROR | [x] Duplicate spaces at position 14. 27 | ERROR | [x] Duplicate spaces at position 13. 27 | WARNING | [x] A comma should follow the last multiline array item. Found: $root 27 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 30 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters 32 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 33 | ERROR | [x] There should be no white space after an opening "(" 33 | ERROR | [x] There should be no white space before a closing ")" 41 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 43 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 44 | ERROR | [x] Duplicate spaces at position 13. 45 | ERROR | [x] Duplicate spaces at position 18. 46 | ERROR | [x] Duplicate spaces at position 13. 47 | ERROR | [x] Duplicate spaces at position 22. 48 | ERROR | [x] Duplicate spaces at position 13. 49 | ERROR | [x] Duplicate spaces at position 22. 50 | ERROR | [x] Duplicate spaces at position 12. 51 | ERROR | [x] Duplicate spaces at position 21. 52 | ERROR | [x] Duplicate spaces at position 17. 52 | ERROR | [x] Duplicate spaces at position 47. 52 | ERROR | [x] Concat operator must be surrounded by a single space 53 | ERROR | [x] Duplicate spaces at position 26. 53 | ERROR | [x] Duplicate spaces at position 56. 53 | ERROR | [x] Concat operator must be surrounded by a single space 54 | ERROR | [x] Duplicate spaces at position 15. 55 | ERROR | [x] Duplicate spaces at position 24. 56 | ERROR | [x] Duplicate spaces at position 14. 57 | ERROR | [x] Duplicate spaces at position 23. 58 | ERROR | [x] Duplicate spaces at position 19. 60 | ERROR | [x] Duplicate spaces at position 12. 61 | ERROR | [x] Duplicate spaces at position 21. 62 | ERROR | [x] Duplicate spaces at position 16. 63 | ERROR | [x] Duplicate spaces at position 16. 64 | ERROR | [x] Duplicate spaces at position 17. 64 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 64 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 67 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters 69 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 70 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 71 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 73 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 75 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 76 | ERROR | [x] Duplicate spaces at position 16. 76 | ERROR | [x] Whitespace found at end of line 77 | ERROR | [x] Duplicate spaces at position 13. 77 | ERROR | [x] Whitespace found at end of line 77 | ERROR | [x] Duplicate spaces at position 46. 78 | ERROR | [x] Duplicate spaces at position 18. 79 | ERROR | [x] Duplicate spaces at position 13. 79 | ERROR | [x] Whitespace found at end of line 80 | ERROR | [x] Whitespace found at end of line 81 | ERROR | [x] Duplicate spaces at position 17. 82 | ERROR | [x] Duplicate spaces at position 16. 82 | WARNING | [x] A comma should follow the last multiline array item. Found: $theme_current_setting 82 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 83 | ERROR | [x] Whitespace found at end of line 85 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters 87 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via a use statement. 89 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 91 | ERROR | [x] Useless parentheses. 91 | ERROR | [x] Function array_key_exists() should be referenced via a fully qualified name. 91 | ERROR | [x] Whitespace found at end of line 91 | ERROR | [x] Duplicate spaces at position 82. 92 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 92 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 95 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters 102 | ERROR | [x] Comments may not appear after statements 102 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 102 | ERROR | [x] Comment after code is disallowed. 103 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 108 | ERROR | [x] Doc comment short description must end with a full stop 110 | ERROR | [x] Class name \Drupal\Core\Config\ImmutableConfig in @param should be referenced via a fully qualified name. 110 | ERROR | [ ] Missing parameter comment 110 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::getBreadcrumbPosition() has useless @param annotation for parameter $theme_setting. 110 | ERROR | [x] Data types in @param tags need to be fully namespaced 111 | ERROR | [x] Separate the @param and @return sections by a blank line. 111 | ERROR | [ ] Description for the @return value is missing 111 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::getBreadcrumbPosition() has useless @return annotation. 114 | ERROR | [x] Whitespace found at end of line 115 | ERROR | [x] Expected 0 lines before "switch", found 1. 116 | ERROR | [x] Expected 1 line after "case", found 0. 116 | ERROR | [x] Case breaking statements must be followed by a single blank line 116 | ERROR | [x] Closing brace must be on a line by itself 116 | ERROR | [x] Expected 0 lines before "return", found -1. 117 | ERROR | [x] Expected 1 line before "case", found 0. 117 | ERROR | [x] Expected 1 line after "case", found 0. 117 | ERROR | [x] Case breaking statements must be followed by a single blank line 117 | ERROR | [x] Closing brace must be on a line by itself 117 | ERROR | [x] Expected 0 lines before "return", found -1. 118 | ERROR | [ ] Blank lines are not allowed after DEFAULT statements 118 | ERROR | [x] Expected 1 line before "default", found 0. 118 | ERROR | [x] Closing brace must be on a line by itself 118 | ERROR | [x] Expected 0 lines before "return", found -1. 123 | ERROR | [x] Doc comment short description must end with a full stop 125 | ERROR | [ ] Missing parameter comment 125 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Theme::buildFinalResult() does not specify type hint for items of its traversable parameter $global. 125 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $global. 126 | ERROR | [ ] Missing parameter comment 126 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Theme::buildFinalResult() does not specify type hint for items of its traversable parameter $dsfr_theme. 126 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $dsfr_theme. 127 | ERROR | [ ] Missing parameter comment 127 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Theme::buildFinalResult() does not specify type hint for items of its traversable parameter $current_theme. 127 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $current_theme. 128 | ERROR | [ ] Missing parameter comment 128 | ERROR | [ ] @param annotation of method \Drupal\dsfr\settings\Theme::buildFinalResult() does not specify type hint for items of its traversable parameter $dsfr_project. 128 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $dsfr_project. 129 | ERROR | [ ] Missing parameter comment 129 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $container. 130 | ERROR | [ ] Missing parameter comment 130 | ERROR | [x] Method \Drupal\dsfr\settings\Theme::buildFinalResult() has useless @param annotation for parameter $breadcrumb_position. 131 | ERROR | [x] Separate the @param and @return sections by a blank line. 131 | ERROR | [ ] Usage of "mixed" type hint is disallowed. 131 | ERROR | [ ] Description for the @return value must be on the next line 133 | ERROR | [ ] Cognitive complexity for "buildFinalResult" is 7 but has to be less than or equal to 5. 133 | ERROR | [ ] Your function is too long. Currently using 84 lines. Can be up to 20 lines. 139 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 139 | ERROR | [x] Multi-line function declaration must have a trailing comma after the last parameter. 144 | ERROR | [x] Useless variable $final. 144 | ERROR | [x] Expected 1 space after "="; 2 found 144 | ERROR | [x] Duplicate spaces at position 13. 144 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 146 | ERROR | [x] Duplicate spaces at position 15. 146 | ERROR | [x] Comments may not appear after statements 146 | ERROR | [x] Inline comments must start with a capital letter 146 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 146 | ERROR | [x] Whitespace found at end of line 146 | ERROR | [x] Comment after code is disallowed. 147 | ERROR | [x] Duplicate spaces at position 13. 147 | ERROR | [x] Comments may not appear after statements 147 | ERROR | [x] Inline comments must start with a capital letter 147 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 147 | ERROR | [x] Comment after code is disallowed. 148 | ERROR | [x] Whitespace found at end of line 149 | WARNING | [ ] There must be no blank line following an inline comment 149 | ERROR | [x] Comments may not appear after statements 149 | ERROR | [x] Inline comments must start with a capital letter 149 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 149 | ERROR | [x] Comment after code is disallowed. 151 | WARNING | [x] There must be no blank line following an inline comment 151 | WARNING | [ ] There must be no blank line following an inline comment 153 | ERROR | [x] Duplicate spaces at position 16. 154 | ERROR | [x] Useless parentheses. 154 | ERROR | [x] Function nl2br() should be referenced via a fully qualified name. 154 | ERROR | [x] Call of function nl2br() should be split to more lines. 154 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 152 characters. 156 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 159 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 159 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 160 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 160 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 162 | ERROR | [x] Duplicate spaces at position 15. 162 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 163 | ERROR | [x] Useless parentheses. 164 | ERROR | [x] Duplicate spaces at position 15. 165 | ERROR | [x] Duplicate spaces at position 16. 166 | ERROR | [x] Duplicate spaces at position 17. 166 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 166 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 168 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 170 | ERROR | [x] Duplicate spaces at position 18. 171 | ERROR | [x] Whitespace found at end of line 171 | ERROR | [x] Duplicate spaces at position 11. 173 | ERROR | [x] Duplicate spaces at position 18. 174 | ERROR | [x] Whitespace found at end of line 174 | ERROR | [x] Duplicate spaces at position 11. 176 | ERROR | [x] Duplicate spaces at position 19. 177 | ERROR | [x] Useless parentheses. 180 | ERROR | [x] Useless parentheses. 181 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 182 | ERROR | [x] Duplicate spaces at position 16. 183 | ERROR | [x] Duplicate spaces at position 19. 183 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 183 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 184 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 184 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 186 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 187 | ERROR | [x] Duplicate spaces at position 19. 188 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 189 | ERROR | [x] Duplicate spaces at position 16. 190 | ERROR | [x] Duplicate spaces at position 19. 190 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 190 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 191 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 191 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 194 | ERROR | [x] Useless parentheses. 195 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 196 | ERROR | [x] Duplicate spaces at position 16. 197 | ERROR | [x] Duplicate spaces at position 19. 197 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 197 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 198 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 198 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 201 | ERROR | [x] Useless parentheses. 203 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 204 | ERROR | [x] Useless parentheses. 206 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 206 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 208 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 208 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 209 | ERROR | [x] Whitespace found at end of line 210 | ERROR | [x] Duplicate spaces at position 13. 213 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 213 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 215 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 219 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 219 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 221 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 223 | ERROR | [x] Duplicate spaces at position 15. 223 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 223 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 225 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 227 | ERROR | [x] Duplicate spaces at position 15. 227 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 227 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 228 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 228 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 233 | ERROR | [x] Expected 1 newline at end of file; 0 found 233 | ERROR | [x] The closing brace for the class must have an empty line before it 233 | ERROR | [x] There must be one empty line before class closing brace. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 215 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: ./dsfr.info.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 50 | ERROR | [x] Expected 1 newline at end of file; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ./theme-settings.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 346 ERRORS AND 51 WARNINGS AFFECTING 172 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 1 | ERROR | [ ] Your file is too long. Currently using 258 lines. Can be up to 250 lines. 8 | ERROR | [ ] Type Drupal\Core\Form\FormStateInterface should not be used, but referenced via a fully qualified name. 9 | ERROR | [ ] Type Drupal\dsfr\settings\Components should not be used, but referenced via a fully qualified name. 10 | ERROR | [ ] Type Drupal\dsfr\settings\Form should not be used, but referenced via a fully qualified name. 11 | ERROR | [ ] Type Drupal\dsfr\settings\Theme should not be used, but referenced via a fully qualified name. 12 | ERROR | [ ] Type Drupal\dsfr\settings\Tools should not be used, but referenced via a fully qualified name. 17 | ERROR | [ ] Your function is too long. Currently using 39 lines. Can be up to 20 lines. 17 | ERROR | [ ] Function dsfr_form_system_theme_settings_alter() does not have parameter type hint nor @param annotation for its parameter $form. 17 | ERROR | [ ] Function dsfr_form_system_theme_settings_alter() does not have parameter type hint nor @param annotation for its parameter $form_id. 17 | ERROR | [x] Function dsfr_form_system_theme_settings_alter() does not have void return type hint. 17 | ERROR | [ ] Passing by reference is disallowed. 17 | ERROR | [ ] Unused parameter $form_state. 17 | ERROR | [ ] Unused parameter $form_id. 18 | ERROR | [x] Whitespace found at end of line 19 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 21 | ERROR | [x] Class \Drupal should not be referenced via a fully qualified name, but via an unqualified name without the leading \, because the file does not have a namespace and the type cannot be put in a use | | statement. 21 | ERROR | [x] There should be no white space after an opening "(" 21 | ERROR | [x] Concat operator must be surrounded by a single space 21 | ERROR | [x] There should be no white space before a closing ")" 22 | ERROR | [x] Concat operator must be surrounded by a single space 22 | ERROR | [x] Call of method t() should be split to more lines. 22 | ERROR | [x] Concat operator must be surrounded by a single space 22 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 126 characters. 23 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 29 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 29 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 32 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 36 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 38 | ERROR | [x] Short array syntax must be used to define arrays 38 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 39 | ERROR | [x] Concat operator must be surrounded by a single space 45 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 48 | ERROR | [x] There should be no white space after an opening "(" 48 | ERROR | [x] There should be no white space after an opening "(" 48 | ERROR | [x] There should be no white space before a closing ")" 50 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 53 | ERROR | [x] There should be no white space after an opening "(" 53 | ERROR | [x] There should be no white space after an opening "(" 53 | ERROR | [x] There should be no white space before a closing ")" 55 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 58 | ERROR | [x] Call of method checkboxType() should be split to more lines. 58 | ERROR | [x] There should be no white space after an opening "(" 58 | ERROR | [x] There should be no white space before a closing ")" 58 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 152 characters. 59 | ERROR | [x] There should be no white space after an opening "(" 59 | ERROR | [x] Expected 0 spaces after array opening bracket, 1 found. 59 | ERROR | [x] There should be no white space after an opening "[" 59 | ERROR | [x] There should be no white space before a closing "]" 59 | ERROR | [x] Expected 0 spaces before array closing bracket, 1 found. 61 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 64 | ERROR | [x] There should be no white space after an opening "(" 64 | ERROR | [x] There should be no white space after an opening "(" 64 | ERROR | [x] There should be no white space before a closing ")" 66 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 69 | ERROR | [x] There should be no white space after an opening "(" 69 | ERROR | [x] There should be no white space after an opening "(" 69 | ERROR | [x] There should be no white space before a closing ")" 71 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 74 | ERROR | [x] There should be no white space after an opening "(" 74 | ERROR | [x] There should be no white space after an opening "(" 74 | ERROR | [x] There should be no white space before a closing ")" 76 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 79 | ERROR | [x] Call of method checkboxType() should be split to more lines. 79 | ERROR | [x] There should be no white space after an opening "(" 79 | ERROR | [x] Concat operator must be surrounded by a single space 79 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 148 characters. 79 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 81 | ERROR | [x] There should be no white space after an opening "(" 81 | ERROR | [x] Expected 0 spaces after array opening bracket, 1 found. 81 | ERROR | [x] There should be no white space after an opening "[" 81 | ERROR | [x] There should be no white space before a closing "]" 81 | ERROR | [x] Expected 0 spaces before array closing bracket, 1 found. 83 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 86 | ERROR | [x] There should be no white space after an opening "(" 86 | ERROR | [x] There should be no white space after an opening "(" 86 | ERROR | [x] There should be no white space before a closing ")" 88 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters 91 | ERROR | [x] There should be no white space after an opening "(" 91 | ERROR | [x] There should be no white space after an opening "(" 91 | ERROR | [x] There should be no white space before a closing ")" 96 | ERROR | [x] Doc comment short description must end with a full stop 98 | ERROR | [ ] Your function is too long. Currently using 54 lines. Can be up to 20 lines. 98 | ERROR | [ ] Function general_settings() does not have @param annotation for its traversable parameter $conf. 98 | ERROR | [ ] Function general_settings() does not have @return annotation for its traversable return value. 98 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 98 | ERROR | [x] There should be no white space after an opening "(" 98 | ERROR | [x] There should be no white space before a closing ")" 98 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 98 | ERROR | [x] Opening brace must be the last content on the line 98 | ERROR | [x] There should be no white space after an opening "{" 98 | ERROR | [x] Whitespace found at end of line 101 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 104 | ERROR | [x] Call of method t() should be split to more lines. 104 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 136 characters. 105 | ERROR | [x] Concat operator must be surrounded by a single space 106 | ERROR | [x] Concat operator must be surrounded by a single space 106 | ERROR | [x] Call of method t() should be split to more lines. 106 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 134 characters. 107 | ERROR | [x] Concat operator must be surrounded by a single space 108 | ERROR | [x] The first index in a multi-value array must be on a new line 108 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 109 | ERROR | [x] Array indentation error, expected 8 spaces but found 0 110 | ERROR | [x] Array indentation error, expected 8 spaces but found 0 110 | ERROR | [x] Closing parenthesis of array declaration must be on a new line 112 | ERROR | [x] There should be no white space after an opening "(" 112 | ERROR | [x] There should be no white space before a closing ")" 113 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 114 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 117 | ERROR | [x] Concat operator must be surrounded by a single space 117 | ERROR | [x] Duplicate spaces at position 49. 117 | ERROR | [x] Concat operator must be surrounded by a single space 118 | ERROR | [x] Call of method t() should be split to more lines. 118 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 172 characters. 119 | ERROR | [x] Concat operator must be surrounded by a single space 121 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 123 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 126 | ERROR | [x] Concat operator must be surrounded by a single space 127 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 128 | ERROR | [x] Expected 1 space before "=>"; 0 found 143 | ERROR | [x] Whitespace found at end of line 143 | ERROR | [x] Duplicate spaces at position 62. 144 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 144 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 146 | ERROR | [x] Whitespace found at end of line 147 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables 147 | ERROR | [x] Whitespace found at end of line 149 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 149 | ERROR | [x] Whitespace found at end of line 150 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 150 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 151 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 151 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 156 | ERROR | [x] Doc comment short description must end with a full stop 158 | ERROR | [ ] Your function is too long. Currently using 37 lines. Can be up to 20 lines. 158 | ERROR | [ ] Function header_settings() does not have @param annotation for its traversable parameter $conf. 158 | ERROR | [ ] Function header_settings() does not have @return annotation for its traversable return value. 158 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 158 | ERROR | [x] There should be no white space after an opening "(" 158 | ERROR | [x] There should be no white space before a closing ")" 158 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 158 | ERROR | [x] Opening brace must be the last content on the line 158 | ERROR | [x] There should be no white space after an opening "{" 158 | ERROR | [x] Whitespace found at end of line 159 | ERROR | [x] Whitespace found at end of line 160 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 161 | ERROR | [x] Call of method checkboxType() should be split to more lines. 161 | ERROR | [x] There should be no white space after an opening "(" 161 | ERROR | [x] There should be no white space before a closing ")" 161 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 150 characters. 163 | ERROR | [x] Expected 1 space after "=>"; 2 found 163 | ERROR | [x] Duplicate spaces at position 15. 163 | ERROR | [x] Whitespace found at end of line 164 | ERROR | [x] Whitespace found at end of line 165 | ERROR | [x] Whitespace found at end of line 166 | ERROR | [x] There should be no white space before a closing ")" 167 | ERROR | [x] Whitespace found at end of line 168 | ERROR | [x] Whitespace found at end of line 169 | ERROR | [x] There should be no white space before a closing ")" 171 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 172 | ERROR | [x] Whitespace found at end of line 173 | ERROR | [x] Whitespace found at end of line 174 | ERROR | [x] Whitespace found at end of line 175 | ERROR | [x] There should be no white space before a closing ")" 176 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 179 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables 179 | ERROR | [x] Concat operator must be surrounded by a single space 179 | ERROR | [x] Call of method t() should be split to more lines. 179 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 137 characters. 180 | ERROR | [x] Concat operator must be surrounded by a single space 182 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 183 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 183 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 186 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 189 | ERROR | [x] Concat operator must be surrounded by a single space 189 | ERROR | [x] Duplicate spaces at position 47. 189 | ERROR | [x] Concat operator must be surrounded by a single space 190 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables 190 | ERROR | [x] Concat operator must be surrounded by a single space 190 | ERROR | [x] Call of method t() should be split to more lines. 190 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 127 characters. 191 | ERROR | [x] Concat operator must be surrounded by a single space 192 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 193 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 193 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 194 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 194 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 199 | ERROR | [x] Doc comment short description must end with a full stop 201 | ERROR | [ ] Function breadcrumb_settings() does not have @param annotation for its traversable parameter $conf. 201 | ERROR | [ ] Function breadcrumb_settings() does not have @return annotation for its traversable return value. 201 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 201 | ERROR | [x] There should be no white space after an opening "(" 201 | ERROR | [x] There should be no white space before a closing ")" 201 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 201 | ERROR | [x] Opening brace must be the last content on the line 201 | ERROR | [x] There should be no white space after an opening "{" 207 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters 210 | ERROR | [x] Whitespace found at end of line 211 | ERROR | [x] Whitespace found at end of line 218 | ERROR | [x] There should be no white space after an opening "[" 218 | ERROR | [x] There should be no white space after an opening "(" 218 | WARNING | [ ] Only string literals should be passed to t() where possible 218 | ERROR | [x] Concat operator must be surrounded by a single space 218 | ERROR | [x] There should be no white space before a closing "]" 219 | ERROR | [x] There should be no white space after an opening "[" 219 | ERROR | [x] There should be no white space after an opening "(" 219 | WARNING | [ ] Only string literals should be passed to t() where possible 219 | ERROR | [x] Concat operator must be surrounded by a single space 219 | ERROR | [x] There should be no white space before a closing ")" 219 | ERROR | [x] There should be no white space before a closing "]" 219 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 220 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 220 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 225 | ERROR | [x] Doc comment short description must end with a full stop 227 | ERROR | [ ] Function hero_settings() does not have @param annotation for its traversable parameter $conf. 227 | ERROR | [ ] Function hero_settings() does not have @return annotation for its traversable return value. 227 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 227 | ERROR | [x] There should be no white space after an opening "(" 227 | ERROR | [x] There should be no white space before a closing ")" 227 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 227 | ERROR | [x] Opening brace must be the last content on the line 227 | ERROR | [x] There should be no white space after an opening "{" 230 | ERROR | [x] Call of method checkboxType() should be split to more lines. 230 | ERROR | [x] There should be no white space after an opening "(" 230 | ERROR | [x] Concat operator must be surrounded by a single space 230 | ERROR | [x] There should be no white space before a closing ")" 230 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 146 characters. 234 | ERROR | [x] There should be no white space after an opening "[" 234 | ERROR | [x] There should be no white space after an opening "(" 234 | WARNING | [ ] Only string literals should be passed to t() where possible 234 | ERROR | [x] Concat operator must be surrounded by a single space 234 | ERROR | [x] There should be no white space before a closing "]" 235 | ERROR | [x] There should be no white space after an opening "[" 235 | ERROR | [x] There should be no white space after an opening "(" 235 | WARNING | [ ] Only string literals should be passed to t() where possible 235 | ERROR | [x] Concat operator must be surrounded by a single space 235 | ERROR | [x] There should be no white space before a closing ")" 235 | ERROR | [x] There should be no white space before a closing "]" 235 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 236 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 236 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 241 | ERROR | [x] Doc comment short description must end with a full stop 243 | ERROR | [ ] Function content_settings() does not have @param annotation for its traversable parameter $conf. 243 | ERROR | [ ] Function content_settings() does not have @return annotation for its traversable return value. 243 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 243 | ERROR | [x] There should be no white space after an opening "(" 243 | ERROR | [x] There should be no white space before a closing ")" 243 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 243 | ERROR | [x] Opening brace must be the last content on the line 243 | ERROR | [x] There should be no white space after an opening "{" 243 | ERROR | [x] Whitespace found at end of line 246 | ERROR | [x] Call of method checkboxType() should be split to more lines. 246 | ERROR | [x] There should be no white space after an opening "(" 246 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 155 characters. 250 | ERROR | [x] There should be no white space after an opening "[" 250 | ERROR | [x] There should be no white space after an opening "(" 250 | WARNING | [ ] Only string literals should be passed to t() where possible 250 | ERROR | [x] Concat operator must be surrounded by a single space 250 | ERROR | [x] There should be no white space before a closing "]" 251 | ERROR | [x] There should be no white space after an opening "[" 251 | ERROR | [x] Duplicate spaces at position 8. 251 | ERROR | [x] There should be no white space after an opening "(" 251 | WARNING | [ ] Only string literals should be passed to t() where possible 251 | ERROR | [x] There should be no white space before a closing "]" 251 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 252 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 252 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 257 | ERROR | [x] Doc comment short description must end with a full stop 259 | ERROR | [ ] Function footer_settings() does not have @param annotation for its traversable parameter $conf. 259 | ERROR | [ ] Function footer_settings() does not have @return annotation for its traversable return value. 259 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 259 | ERROR | [x] There should be no white space after an opening "(" 259 | ERROR | [x] There should be no white space before a closing ")" 259 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 259 | ERROR | [x] Opening brace must be the last content on the line 259 | ERROR | [x] There should be no white space after an opening "{" 259 | ERROR | [x] Whitespace found at end of line 261 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 262 | ERROR | [x] Call of method checkboxType() should be split to more lines. 262 | ERROR | [x] There should be no white space after an opening "(" 262 | ERROR | [x] There should be no white space before a closing ")" 262 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 150 characters. 264 | ERROR | [x] Whitespace found at end of line 265 | ERROR | [x] Whitespace found at end of line 266 | ERROR | [x] Whitespace found at end of line 267 | ERROR | [x] There should be no white space before a closing ")" 267 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 267 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 269 | ERROR | [x] Whitespace found at end of line 270 | ERROR | [x] Call of method t() should be split to more lines. 270 | ERROR | [x] Duplicate spaces at position 119. 270 | ERROR | [x] Concat operator must be surrounded by a single space 270 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 270 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 155 characters. 272 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 273 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 273 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 278 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found 278 | ERROR | [x] Doc comment short description must end with a full stop 279 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found 280 | ERROR | [ ] Cognitive complexity for "code_settings" is 7 but has to be less than or equal to 5. 280 | ERROR | [ ] Your function is too long. Currently using 69 lines. Can be up to 20 lines. 280 | ERROR | [ ] Function code_settings() does not have @param annotation for its traversable parameter $conf. 280 | ERROR | [ ] Function code_settings() does not have @return annotation for its traversable return value. 280 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found 280 | ERROR | [x] There should be no white space after an opening "(" 280 | ERROR | [x] There should be no white space before a closing ")" 280 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found 280 | ERROR | [x] Whitespace found at end of line 281 | ERROR | [x] Whitespace found at end of line 282 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 283 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 285 | ERROR | [x] Expected 1 space before "=>"; 0 found 286 | ERROR | [x] Whitespace found at end of line 287 | ERROR | [x] Concat operator must be surrounded by a single space 287 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 287 | ERROR | [x] Concat operator must be surrounded by a single space 287 | ERROR | [x] Call of method t() should be split to more lines. 287 | ERROR | [ ] Line exceeds maximum limit of 120 characters, contains 126 characters. 288 | ERROR | [x] Whitespace found at end of line 288 | ERROR | [x] Duplicate spaces at position 68. 290 | ERROR | [x] Duplicate spaces at position 10. 291 | ERROR | [x] Duplicate spaces at position 10. 291 | ERROR | [x] Concat operator must be surrounded by a single space 292 | ERROR | [x] Duplicate spaces at position 10. 292 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 292 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 293 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 293 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 293 | ERROR | [x] Whitespace found at end of line 293 | ERROR | [x] Duplicate spaces at position 8. 295 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 298 | ERROR | [x] Expected 1 space before "=>"; 0 found 300 | ERROR | [x] Whitespace found at end of line 300 | ERROR | [x] Duplicate spaces at position 74. 303 | WARNING | [ ] #options values usually have to run through t() for translation 304 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Other (such as your own code)' 304 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 305 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 305 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 305 | ERROR | [x] Whitespace found at end of line 305 | ERROR | [x] Duplicate spaces at position 8. 307 | ERROR | [x] Whitespace found at end of line 308 | ERROR | [x] Whitespace found at end of line 309 | ERROR | [x] Whitespace found at end of line 310 | ERROR | [x] Whitespace found at end of line 310 | ERROR | [x] Duplicate spaces at position 60. 311 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 311 | ERROR | [x] Concat operator must be surrounded by a single space 311 | ERROR | [x] Whitespace found at end of line 312 | ERROR | [x] Concat operator must be surrounded by a single space 312 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 312 | ERROR | [x] Multi-line function calls must have a trailing comma after the last parameter. 312 | ERROR | [x] Whitespace found at end of line 314 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 318 | ERROR | [x] Whitespace found at end of line 318 | ERROR | [x] Duplicate spaces at position 76. 319 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 320 | ERROR | [x] Duplicate spaces at position 10. 320 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders 321 | ERROR | [x] Duplicate spaces at position 10. 322 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 322 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 323 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 323 | ERROR | [x] Multi-line arrays must have a trailing comma after the last element. 328 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found 328 | ERROR | [x] Expected 1 line before "foreach", found 0. 328 | ERROR | [x] There should be no white space after an opening "(" 328 | ERROR | [x] There should be no white space before a closing ")" 331 | ERROR | [x] Expected 1 space after IF keyword; 0 found 331 | ERROR | [x] Inline control structures are not allowed 331 | ERROR | [x] Expected 1 line before "if", found 0. 331 | ERROR | [x] There should be no white space after an opening "(" 331 | ERROR | [x] Operator == is disallowed, use === instead. 331 | ERROR | [x] Yoda comparison is required. 331 | ERROR | [x] There should be no white space before a closing ")" 331 | ERROR | [x] Use ".=" operator instead of "=" and ".". 331 | ERROR | [x] Concat operator must be surrounded by a single space 332 | ERROR | [x] Concat operator must be surrounded by a single space 333 | ERROR | [ ] Use of post-increment operator is disallowed. 335 | ERROR | [x] Expected 1 space after IF keyword; 0 found 335 | ERROR | [x] There should be no white space after an opening "(" 335 | ERROR | [x] Operator == is disallowed, use === instead. 335 | ERROR | [x] Yoda comparison is required. 335 | ERROR | [x] There should be no white space before a closing ")" 336 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 339 | WARNING | [ ] Only string literals should be passed to t() where possible 342 | ERROR | [x] Expected newline after closing brace 342 | ERROR | [x] There should be no white space after an opening "(" 342 | ERROR | [x] Operator == is disallowed, use === instead. 342 | ERROR | [x] There should be no white space before a closing ")" 343 | ERROR | [x] Keyed multi-line arrays must be sorted alphabetically. 346 | WARNING | [ ] Only string literals should be passed to t() where possible 349 | ERROR | [x] Expected newline after closing brace 350 | ERROR | [x] There should be no white space after an opening "(" 350 | ERROR | [x] There should be no white space before a closing ")" 355 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 319 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Time: 878ms; Memory: 22MB