Fix issues reported by PHPCS

Created on 6 March 2025, about 2 months ago

Problem/Motivation

It would be great to address the below minor PHPCS issues :

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

FILE: /var/www/web/themes/contrib/rocketship_theme_starter/README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 107 WARNINGS AFFECTING 107 LINES
----------------------------------------------------------------------
   3 | WARNING | Line exceeds 80 characters; contains 109 characters
  25 | WARNING | Line exceeds 80 characters; contains 83 characters
  28 | WARNING | Line exceeds 80 characters; contains 108 characters
  33 | WARNING | Line exceeds 80 characters; contains 175 characters
  47 | WARNING | Line exceeds 80 characters; contains 88 characters
  48 | WARNING | Line exceeds 80 characters; contains 151 characters
  49 | WARNING | Line exceeds 80 characters; contains 126 characters
  54 | WARNING | Line exceeds 80 characters; contains 104 characters
  55 | WARNING | Line exceeds 80 characters; contains 95 characters
  56 | WARNING | Line exceeds 80 characters; contains 115 characters
  58 | WARNING | Line exceeds 80 characters; contains 128 characters
  63 | WARNING | Line exceeds 80 characters; contains 102 characters
  64 | WARNING | Line exceeds 80 characters; contains 97 characters
  65 | WARNING | Line exceeds 80 characters; contains 99 characters
  66 | WARNING | Line exceeds 80 characters; contains 127 characters
  67 | WARNING | Line exceeds 80 characters; contains 180 characters
  68 | WARNING | Line exceeds 80 characters; contains 152 characters
  92 | WARNING | Line exceeds 80 characters; contains 91 characters
 103 | WARNING | Line exceeds 80 characters; contains 92 characters
 104 | WARNING | Line exceeds 80 characters; contains 138 characters
 105 | WARNING | Line exceeds 80 characters; contains 122 characters
 106 | WARNING | Line exceeds 80 characters; contains 88 characters
 107 | WARNING | Line exceeds 80 characters; contains 240 characters
 108 | WARNING | Line exceeds 80 characters; contains 154 characters
 110 | WARNING | Line exceeds 80 characters; contains 86 characters
 148 | WARNING | Line exceeds 80 characters; contains 115 characters
 149 | WARNING | Line exceeds 80 characters; contains 108 characters
 152 | WARNING | Line exceeds 80 characters; contains 117 characters
 153 | WARNING | Line exceeds 80 characters; contains 106 characters
 154 | WARNING | Line exceeds 80 characters; contains 131 characters
 158 | WARNING | Line exceeds 80 characters; contains 91 characters
 187 | WARNING | Line exceeds 80 characters; contains 98 characters
 190 | WARNING | Line exceeds 80 characters; contains 92 characters
 193 | WARNING | Line exceeds 80 characters; contains 103 characters
 208 | WARNING | Line exceeds 80 characters; contains 81 characters
 234 | WARNING | Line exceeds 80 characters; contains 95 characters
 237 | WARNING | Line exceeds 80 characters; contains 111 characters
 251 | WARNING | Line exceeds 80 characters; contains 107 characters
 253 | WARNING | Line exceeds 80 characters; contains 87 characters
 255 | WARNING | Line exceeds 80 characters; contains 89 characters
 257 | WARNING | Line exceeds 80 characters; contains 103 characters
 261 | WARNING | Line exceeds 80 characters; contains 135 characters
 263 | WARNING | Line exceeds 80 characters; contains 123 characters
 274 | WARNING | Line exceeds 80 characters; contains 81 characters
 275 | WARNING | Line exceeds 80 characters; contains 85 characters
 308 | WARNING | Line exceeds 80 characters; contains 230 characters
 309 | WARNING | Line exceeds 80 characters; contains 237 characters
 310 | WARNING | Line exceeds 80 characters; contains 94 characters
 320 | WARNING | Line exceeds 80 characters; contains 148 characters
 325 | WARNING | Line exceeds 80 characters; contains 135 characters
 339 | WARNING | Line exceeds 80 characters; contains 172 characters
 346 | WARNING | Line exceeds 80 characters; contains 197 characters
 353 | WARNING | Line exceeds 80 characters; contains 107 characters
 363 | WARNING | Line exceeds 80 characters; contains 85 characters
 366 | WARNING | Line exceeds 80 characters; contains 92 characters
 367 | WARNING | Line exceeds 80 characters; contains 176 characters
 369 | WARNING | Line exceeds 80 characters; contains 120 characters
 374 | WARNING | Line exceeds 80 characters; contains 156 characters
 380 | WARNING | Line exceeds 80 characters; contains 88 characters
 399 | WARNING | Line exceeds 80 characters; contains 88 characters
 416 | WARNING | Line exceeds 80 characters; contains 89 characters
 427 | WARNING | Line exceeds 80 characters; contains 85 characters
 515 | WARNING | Line exceeds 80 characters; contains 107 characters
 517 | WARNING | Line exceeds 80 characters; contains 98 characters
 518 | WARNING | Line exceeds 80 characters; contains 111 characters
 519 | WARNING | Line exceeds 80 characters; contains 269 characters
 520 | WARNING | Line exceeds 80 characters; contains 223 characters
 521 | WARNING | Line exceeds 80 characters; contains 83 characters
 522 | WARNING | Line exceeds 80 characters; contains 227 characters
 524 | WARNING | Line exceeds 80 characters; contains 315 characters
 528 | WARNING | Line exceeds 80 characters; contains 96 characters
 553 | WARNING | Line exceeds 80 characters; contains 165 characters
 554 | WARNING | Line exceeds 80 characters; contains 117 characters
 555 | WARNING | Line exceeds 80 characters; contains 96 characters
 557 | WARNING | Line exceeds 80 characters; contains 85 characters
 559 | WARNING | Line exceeds 80 characters; contains 89 characters
 560 | WARNING | Line exceeds 80 characters; contains 231 characters
 561 | WARNING | Line exceeds 80 characters; contains 194 characters
 567 | WARNING | Line exceeds 80 characters; contains 89 characters
 571 | WARNING | Line exceeds 80 characters; contains 128 characters
 572 | WARNING | Line exceeds 80 characters; contains 160 characters
 573 | WARNING | Line exceeds 80 characters; contains 101 characters
 578 | WARNING | Line exceeds 80 characters; contains 263 characters
 579 | WARNING | Line exceeds 80 characters; contains 136 characters
 581 | WARNING | Line exceeds 80 characters; contains 172 characters
 583 | WARNING | Line exceeds 80 characters; contains 82 characters
 591 | WARNING | Line exceeds 80 characters; contains 166 characters
 596 | WARNING | Line exceeds 80 characters; contains 83 characters
 598 | WARNING | Line exceeds 80 characters; contains 144 characters
 602 | WARNING | Line exceeds 80 characters; contains 165 characters
 603 | WARNING | Line exceeds 80 characters; contains 187 characters
 606 | WARNING | Line exceeds 80 characters; contains 154 characters
 617 | WARNING | Line exceeds 80 characters; contains 97 characters
 621 | WARNING | Line exceeds 80 characters; contains 93 characters
 626 | WARNING | Line exceeds 80 characters; contains 165 characters
 629 | WARNING | Line exceeds 80 characters; contains 286 characters
 633 | WARNING | Line exceeds 80 characters; contains 81 characters
 640 | WARNING | Line exceeds 80 characters; contains 114 characters
 690 | WARNING | Line exceeds 80 characters; contains 201 characters
 695 | WARNING | Line exceeds 80 characters; contains 175 characters
 696 | WARNING | Line exceeds 80 characters; contains 111 characters
 697 | WARNING | Line exceeds 80 characters; contains 158 characters
 698 | WARNING | Line exceeds 80 characters; contains 93 characters
 699 | WARNING | Line exceeds 80 characters; contains 83 characters
 704 | WARNING | Line exceeds 80 characters; contains 169 characters
 705 | WARNING | Line exceeds 80 characters; contains 135 characters
 707 | WARNING | Line exceeds 80 characters; contains 84 characters
----------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/favicons/source/README.md
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------
  6 | WARNING | Line exceeds 80 characters; contains 103 characters
 10 | WARNING | Line exceeds 80 characters; contains 131 characters
 11 | WARNING | Line exceeds 80 characters; contains 117 characters
 12 | WARNING | Line exceeds 80 characters; contains 159 characters
 17 | WARNING | Line exceeds 80 characters; contains 92 characters
 22 | WARNING | Line exceeds 80 characters; contains 124 characters
 23 | WARNING | Line exceeds 80 characters; contains 202 characters
 24 | WARNING | Line exceeds 80 characters; contains 90 characters
 26 | WARNING | Line exceeds 80 characters; contains 348 characters
------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 5 | WARNING | Line exceeds 80 characters; contains 132 characters
----------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/rocketship_theme_starter.starterkit.yml
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/src/StarterKit.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
  10 | ERROR   | [x] Missing class doc comment
  14 | WARNING | [ ] Line exceeds 80 characters; contains 106 characters
  14 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  57 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 118 | WARNING | [x] '@todo: yaml::decode strips comments and empty enters, check for another solution.' should match the format '@todo Fix problem X
     |         |     here.'
 127 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/mail.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/rocketship_theme_starter.theme
-------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
  10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Utility\Html.
 222 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/_twig-components/functions/bem.function.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 5 WARNINGS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------
   6 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
   7 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
   7 | ERROR   | [ ] Doc comment short description must end with a full stop
   7 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  11 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Template\Attribute.
  14 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  14 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  14 | ERROR   | [x] Short array syntax must be used to define arrays
  14 | ERROR   | [x] Short array syntax must be used to define arrays
  14 | ERROR   | [x] Short array syntax must be used to define arrays
  58 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
  59 | WARNING | [x] There must be no blank line following an inline comment
  59 | WARNING | [ ] There must be no blank line following an inline comment
  59 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
  59 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  66 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
  85 | ERROR   | [x] There should be no white space before a closing ")"
  87 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
 116 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/_twig-components/functions/svgy.function.php
------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
  5 | WARNING | [ ] Unused variable $function.
  5 | ERROR   | [x] Expected 1 space after FUNCTION keyword; 0 found
  5 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  5 | ERROR   | [x] Short array syntax must be used to define arrays
  8 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  9 | ERROR   | [x] Short array syntax must be used to define arrays
 18 | WARNING | [x] A comma should follow the last multiline array item. Found: $classes
 22 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/_twig-components/functions/add_attributes.function.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------
  5 | ERROR | [x] Doc comment short description must end with a full stop
  9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Template\Attribute.
 51 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
 94 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 96 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/03-organisms/section--4-col/styleguide/background-image.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
 34 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-image/cb-image.css
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-faq/cb-faq.css
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 12 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-menu-overview/cb-menu-overview.css
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------
 81 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-focus/cb-focus.css
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
 15 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-form/cb-form.css
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
 12 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-video/cb-video.css
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
 15 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-usp/cb-usp.css
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 34 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-related-items/cb-related-items.css
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
 75 | ERROR | [x] Multiple selectors should each be on a single line
 78 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-text/cb-text.css
----------------------------------------------------------------------------------------------------------------------
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: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-photo-gallery/cb-photo-gallery.css
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------
  99 | ERROR | [x] Multiple selectors should each be on a single line
 102 | ERROR | [x] Multiple selectors should each be on a single line
 107 | ERROR | [x] Multiple selectors should each be on a single line
 107 | ERROR | [x] Multiple selectors should each be on a single line
 145 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-testimonial/cb-testimonial.css
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 60 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/01-content-blocks/components/cb-media/cb-media.css
------------------------------------------------------------------------------------------------------------------------
FOUND 42 ERRORS AFFECTING 28 LINES
------------------------------------------------------------------------------------------------------------------------
  21 | ERROR | [x] Multiple selectors should each be on a single line
  24 | ERROR | [x] Multiple selectors should each be on a single line
  29 | ERROR | [x] Multiple selectors should each be on a single line
  32 | ERROR | [x] Multiple selectors should each be on a single line
  35 | ERROR | [x] Multiple selectors should each be on a single line
  38 | ERROR | [x] Multiple selectors should each be on a single line
  45 | ERROR | [ ] Style definitions must end with a semicolon
  46 | ERROR | [ ] Style definitions must end with a semicolon
  47 | ERROR | [ ] Style definitions must end with a semicolon
  48 | ERROR | [ ] Style definitions must end with a semicolon
  49 | ERROR | [ ] Style definitions must end with a semicolon
  50 | ERROR | [ ] Style definitions must end with a semicolon
  56 | ERROR | [x] Multiple selectors should each be on a single line
  56 | ERROR | [x] Multiple selectors should each be on a single line
  60 | ERROR | [x] Multiple selectors should each be on a single line
  60 | ERROR | [x] Multiple selectors should each be on a single line
  60 | ERROR | [x] Multiple selectors should each be on a single line
  60 | ERROR | [x] Multiple selectors should each be on a single line
  60 | ERROR | [x] Multiple selectors should each be on a single line
  63 | ERROR | [x] Multiple selectors should each be on a single line
  63 | ERROR | [x] Multiple selectors should each be on a single line
  63 | ERROR | [x] Multiple selectors should each be on a single line
  63 | ERROR | [x] Multiple selectors should each be on a single line
  63 | ERROR | [x] Multiple selectors should each be on a single line
  66 | ERROR | [x] Multiple selectors should each be on a single line
  66 | ERROR | [x] Multiple selectors should each be on a single line
  75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 7
  79 | ERROR | [x] Multiple selectors should each be on a single line
  81 | ERROR | [x] Multiple selectors should each be on a single line
 111 | ERROR | [x] Multiple selectors should each be on a single line
 116 | ERROR | [x] Multiple selectors should each be on a single line
 126 | ERROR | [x] Multiple selectors should each be on a single line
 133 | ERROR | [ ] Style definitions must end with a semicolon
 134 | ERROR | [ ] Style definitions must end with a semicolon
 135 | ERROR | [ ] Style definitions must end with a semicolon
 137 | ERROR | [x] Multiple selectors should each be on a single line
 137 | ERROR | [x] Multiple selectors should each be on a single line
 137 | ERROR | [x] Multiple selectors should each be on a single line
 137 | ERROR | [x] Multiple selectors should each be on a single line
 137 | ERROR | [x] Multiple selectors should each be on a single line
 144 | ERROR | [ ] Style definitions must end with a semicolon
 146 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 32 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/06-demo/00-styleguide/demo--home.yml
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
 45 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/06-demo/00-styleguide/demo-block-visual-background-image.yml
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
 33 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/03-organisms/header/nav/snippet--mobile_nav--icon_top.txt
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
 130 | WARNING | Line exceeds 80 characters; contains 83 characters
 156 | WARNING | Line exceeds 80 characters; contains 89 characters
----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/03-organisms/header/nav/snippet--mobile_nav--bottom.txt
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------
 123 | WARNING | Line exceeds 80 characters; contains 83 characters
 135 | WARNING | Line exceeds 80 characters; contains 84 characters
 144 | WARNING | Line exceeds 80 characters; contains 89 characters
--------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/README.md
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------
 2 | WARNING | Line exceeds 80 characters; contains 82 characters
 3 | WARNING | Line exceeds 80 characters; contains 147 characters
----------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/02-molecules/menus/styleguide/tabs.yml
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
 48 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/02-molecules/00-example/styleguide/example-block.yml
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
 53 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/media/styleguide/media--field--multiple.yml
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
 7 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/04-images/styleguide/icons.yml
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
 3 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/03-lists/list--ul/snippet--list-helpers.txt
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------------------------
  13 | WARNING | Line exceeds 80 characters; contains 110 characters
  17 | WARNING | Line exceeds 80 characters; contains 84 characters
  19 | WARNING | Line exceeds 80 characters; contains 143 characters
  20 | WARNING | Line exceeds 80 characters; contains 136 characters
  22 | WARNING | Line exceeds 80 characters; contains 96 characters
  23 | WARNING | Line exceeds 80 characters; contains 120 characters
  26 | WARNING | Line exceeds 80 characters; contains 134 characters
  28 | WARNING | Line exceeds 80 characters; contains 96 characters
 200 | WARNING | Line exceeds 80 characters; contains 125 characters
 202 | WARNING | Line exceeds 80 characters; contains 92 characters
 303 | WARNING | Line exceeds 80 characters; contains 105 characters
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/title/styleguide/title.yml
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/05-forms/00-styleguide/buttons.yml
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
 34 | ERROR | [x] Expected 1 newline at end of file; 12 found
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/06-buttons/styleguide/buttons-cke.yml
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 13 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/01-atoms/01-links/00-link/snippet--link.txt
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
 19 | WARNING | Line exceeds 80 characters; contains 129 characters
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/components/00-theme/05-pages/html/example-subset-fonts.md
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------
 13 | WARNING | Line exceeds 80 characters; contains 137 characters
 21 | WARNING | Line exceeds 80 characters; contains 137 characters
 29 | WARNING | Line exceeds 80 characters; contains 137 characters
 37 | WARNING | Line exceeds 80 characters; contains 137 characters
--------------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/css/style.mail.css
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------


FILE: /var/www/web/themes/contrib/rocketship_theme_starter/css/style.fonts.css
------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

Time: 653ms; Memory: 14MB


Steps to reproduce

  • Install the theme, composer require 'drupal/rocketship_theme_starter:^3.1'
  • Run the command,

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

Proposed resolution

Fix the PHPCS issues.

📌 Task
Status

Active

Version

3.1

Component

Code

Created by

🇮🇳India abhiyanshu

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

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

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024