Fix the issue reported by phpcs

Created on 16 August 2023, over 1 year ago
Updated 13 October 2023, about 1 year ago

Problem/Motivation
Getting following error/warnings:

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

FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\config\install\block.block.harmony_haven_account_menu.yml
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 27 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\config\install\block.block.harmony_haven_powered.yml
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 22 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------


FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\css\bootstrap.css
--------------------------------------------------------------------------
FOUND 4992 ERRORS AFFECTING 3530 LINES
--------------------------------------------------------------------------
    8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   10 | ERROR | [ ] Style definitions must end with a semicolon
   13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   13 | ERROR | [ ] Style definitions must end with a semicolon
   28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   28 | ERROR | [ ] Style definitions must end with a semicolon
   34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   35 | ERROR | [ ] Style definitions must end with a semicolon
   38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   39 | ERROR | [ ] Style definitions must end with a semicolon
   43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   43 | ERROR | [ ] Style definitions must end with a semicolon
   46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   46 | ERROR | [ ] Style definitions must end with a semicolon
   51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   51 | ERROR | [ ] Style definitions must end with a semicolon
   54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   54 | ERROR | [ ] Style definitions must end with a semicolon
   58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   58 | ERROR | [ ] Style definitions must end with a semicolon
   61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   61 | ERROR | [ ] Style definitions must end with a semicolon
   64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   65 | ERROR | [ ] Style definitions must end with a semicolon
   68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   69 | ERROR | [ ] Style definitions must end with a semicolon
   72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   72 | ERROR | [ ] Style definitions must end with a semicolon
   76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   79 | ERROR | [ ] Style definitions must end with a semicolon
   82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   82 | ERROR | [ ] Style definitions must end with a semicolon
   85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   85 | ERROR | [ ] Style definitions must end with a semicolon
   88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   88 | ERROR | [ ] Style definitions must end with a semicolon
   91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   91 | ERROR | [ ] Style definitions must end with a semicolon
   94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   94 | ERROR | [ ] Style definitions must end with a semicolon
   97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   98 | ERROR | [ ] Style definitions must end with a semicolon
  101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  101 | ERROR | [ ] Style definitions must end with a semicolon
  107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  108 | ERROR | [ ] Style definitions must end with a semicolon
  115 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  116 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  117 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  117 | ERROR | [ ] Style definitions must end with a semicolon
  120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  120 | ERROR | [ ] Style definitions must end with a semicolon
  124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  124 | ERROR | [ ] Style definitions must end with a semicolon
  130 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  131 | ERROR | [ ] Style definitions must end with a semicolon
  135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  135 | ERROR | [ ] Style definitions must end with a semicolon
  139 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  140 | ERROR | [ ] Style definitions must end with a semicolon
  143 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  143 | ERROR | [ ] Style definitions must end with a semicolon
  147 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  148 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  148 | ERROR | [ ] Style definitions must end with a semicolon
  152 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  152 | ERROR | [ ] Style definitions must end with a semicolon
  155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  156 | ERROR | [ ] Style definitions must end with a semicolon
  160 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  160 | ERROR | [ ] Style definitions must end with a semicolon
  163 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  164 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  165 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  165 | ERROR | [ ] Style definitions must end with a semicolon
  168 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  169 | ERROR | [ ] Style definitions must end with a semicolon
  172 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  172 | ERROR | [ ] Style definitions must end with a semicolon
  175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  175 | ERROR | [ ] Style definitions must end with a semicolon
  178 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  179 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  179 | ERROR | [ ] Style definitions must end with a semicolon
  183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  183 | ERROR | [ ] Style definitions must end with a semicolon
  188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  192 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  193 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  194 | ERROR | [ ] Style definitions must end with a semicolon
  195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  197 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  198 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  198 | ERROR | [ ] Style definitions must end with a semicolon
  199 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  200 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  201 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  201 | ERROR | [ ] Style definitions must end with a semicolon
  202 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  203 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  204 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  204 | ERROR | [ ] Style definitions must end with a semicolon
  205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  206 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  208 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  208 | ERROR | [ ] Style definitions must end with a semicolon
  209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  210 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  211 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  213 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  213 | ERROR | [ ] Style definitions must end with a semicolon
  214 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  215 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  216 | ERROR | [ ] Style definitions must end with a semicolon
  217 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  219 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  220 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  220 | ERROR | [ ] Style definitions must end with a semicolon
  221 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  222 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  223 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  223 | ERROR | [ ] Style definitions must end with a semicolon
  224 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  225 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  226 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  227 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  228 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  229 | ERROR | [ ] Style definitions must end with a semicolon
  230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  233 | ERROR | [ ] Style definitions must end with a semicolon
  234 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  236 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  236 | ERROR | [ ] Style definitions must end with a semicolon
  237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  240 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  240 | ERROR | [ ] Style definitions must end with a semicolon
  241 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  243 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  243 | ERROR | [ ] Style definitions must end with a semicolon
  244 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  245 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  246 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  246 | ERROR | [ ] Style definitions must end with a semicolon
  247 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  248 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  249 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  250 | ERROR | [ ] Style definitions must end with a semicolon
  251 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  252 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  253 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  254 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
  254 | ERROR | [ ] Style definitions must end with a semicolon
  255 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  258 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  263 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  264 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  269 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  271 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  271 | ERROR | [ ] Style definitions must end with a semicolon
  274 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  274 | ERROR | [ ] Style definitions must end with a semicolon
  277 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  277 | ERROR | [ ] Style definitions must end with a semicolon
  281 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  281 | ERROR | [ ] Style definitions must end with a semicolon
  284 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  284 | ERROR | [ ] Style definitions must end with a semicolon
  287 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  287 | ERROR | [ ] Style definitions must end with a semicolon
  290 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  290 | ERROR | [ ] Style definitions must end with a semicolon
  293 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  293 | ERROR | [ ] Style definitions must end with a semicolon
  296 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  296 | ERROR | [ ] Style definitions must end with a semicolon
  299 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  299 | ERROR | [ ] Style definitions must end with a semicolon
  302 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  302 | ERROR | [ ] Style definitions must end with a semicolon
  305 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  305 | ERROR | [ ] Style definitions must end with a semicolon
  308 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  308 | ERROR | [ ] Style definitions must end with a semicolon
  311 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  311 | ERROR | [ ] Style definitions must end with a semicolon
  314 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  314 | ERROR | [ ] Style definitions must end with a semicolon
  317 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  317 | ERROR | [ ] Style definitions must end with a semicolon
  320 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  320 | ERROR | [ ] Style definitions must end with a semicolon
  323 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  323 | ERROR | [ ] Style definitions must end with a semicolon
  326 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  326 | ERROR | [ ] Style definitions must end with a semicolon
  329 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  329 | ERROR | [ ] Style definitions must end with a semicolon
  332 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  332 | ERROR | [ ] Style definitions must end with a semicolon
  335 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  335 | ERROR | [ ] Style definitions must end with a semicolon
  338 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  338 | ERROR | [ ] Style definitions must end with a semicolon
  341 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  341 | ERROR | [ ] Style definitions must end with a semicolon
  344 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  344 | ERROR | [ ] Style definitions must end with a semicolon
  347 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  347 | ERROR | [ ] Style definitions must end with a semicolon
  350 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  350 | ERROR | [ ] Style definitions must end with a semicolon
  353 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  353 | ERROR | [ ] Style definitions must end with a semicolon
  356 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  356 | ERROR | [ ] Style definitions must end with a semicolon
  359 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  359 | ERROR | [ ] Style definitions must end with a semicolon
  362 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  362 | ERROR | [ ] Style definitions must end with a semicolon
  365 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  365 | ERROR | [ ] Style definitions must end with a semicolon
  368 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  368 | ERROR | [ ] Style definitions must end with a semicolon
  371 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  371 | ERROR | [ ] Style definitions must end with a semicolon
  374 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  374 | ERROR | [ ] Style definitions must end with a semicolon
  377 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  377 | ERROR | [ ] Style definitions must end with a semicolon
  380 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  380 | ERROR | [ ] Style definitions must end with a semicolon
  383 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  383 | ERROR | [ ] Style definitions must end with a semicolon
  386 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  386 | ERROR | [ ] Style definitions must end with a semicolon
  389 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  389 | ERROR | [ ] Style definitions must end with a semicolon
  392 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  392 | ERROR | [ ] Style definitions must end with a semicolon
  395 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  395 | ERROR | [ ] Style definitions must end with a semicolon
  398 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  398 | ERROR | [ ] Style definitions must end with a semicolon
  401 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4

FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\harmony_haven.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------


FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\harmony_haven.libraries.yml
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
 17 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------


FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\harmony_haven.theme
--------------------------------------------------------------------------------------------------------------------------------
FOUND 36 ERRORS AND 1 WARNING AFFECTING 33 LINES
--------------------------------------------------------------------------------------------------------------------------------
  9 | WARNING | [x] Unused use statement
 15 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 16 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 17 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 18 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
 18 | ERROR   | [x] Closing brace indented incorrectly; expected 0 spaces, found 1
 19 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 20 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 21 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 23 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 24 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 25 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 26 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 27 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 30 | ERROR   | [x] Whitespace found at end of line
 32 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 33 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 34 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 35 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
 36 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
 37 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 38 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 39 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 40 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 41 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
 42 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 43 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 44 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 45 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 46 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 48 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 3
 54 | ERROR   | [x] No space found before comment text; expected "// copy right variables." but found "//copy right variables."
 54 | ERROR   | [x] Inline comments must start with a capital letter
 58 | ERROR   | [x] No space found before comment text; expected "// left header variables" but found "//left header variables"
 58 | ERROR   | [x] Inline comments must start with a capital letter
 58 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 63 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------


FILE: C:\xampp\htdocs\drupal-10.0.0\themes\harmony_haven\theme-settings.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 58 ERRORS AND 8 WARNINGS AFFECTING 47 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------
   9 | WARNING | [x] Unused use statement
  13 | ERROR   | [x] Doc comment short description must start with a capital letter
  27 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 3
  28 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 3
  29 | ERROR   | [x] Array indentation error, expected 5 spaces but found 4
  30 | ERROR   | [x] Array indentation error, expected 5 spaces but found 4
  31 | ERROR   | [x] Array indentation error, expected 5 spaces but found 4
  32 | ERROR   | [x] Array indentation error, expected 5 spaces but found 4
  33 | ERROR   | [x] Array closing indentation error, expected 3 spaces but found 2
  55 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 5
  56 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 5
  57 | ERROR   | [x] Array indentation error, expected 7 spaces but found 6
  58 | ERROR   | [x] Array indentation error, expected 7 spaces but found 6
  59 | ERROR   | [x] Array indentation error, expected 7 spaces but found 6
  60 | ERROR   | [x] Array indentation error, expected 7 spaces but found 6
  61 | ERROR   | [x] Array closing indentation error, expected 5 spaces but found 4
  62 | ERROR   | [x] Whitespace found at end of line
  63 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
  69 | ERROR   | [x] Whitespace found at end of line
  70 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
  76 | ERROR   | [x] No space found before comment text; expected "// >>>>>>>>>>>>>Left Header>>>>>>>>>>>>" but found "//>>>>>>>>>>>>>Left Header>>>>>>>>>>>>"
  99 | WARNING | [x] There must be no blank line following an inline comment
  99 | WARNING | [ ] There must be no blank line following an inline comment
  99 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 100 | ERROR   | [x] Whitespace found at end of line
 101 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 101 | ERROR   | [x] Short array syntax must be used to define arrays
 102 | ERROR   | [x] Array indentation error, expected 2 spaces but found 4
 103 | ERROR   | [x] Array indentation error, expected 2 spaces but found 4
 104 | ERROR   | [x] Array indentation error, expected 2 spaces but found 4
 105 | ERROR   | [x] Array indentation error, expected 2 spaces but found 4
 106 | ERROR   | [x] Array closing indentation error, expected 0 spaces but found 2
 107 | ERROR   | [x] Short array syntax must be used to define arrays
 113 | ERROR   | [x] Short array syntax must be used to define arrays
 127 | ERROR   | [x] Short array syntax must be used to define arrays
 129 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
 129 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 129 | ERROR   | [x] Concat operator must be surrounded by a single space
 133 | ERROR   | [x] Short array syntax must be used to define arrays
 135 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
 135 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 135 | ERROR   | [x] Concat operator must be surrounded by a single space
 135 | ERROR   | [x] Concat operator must be surrounded by a single space
 138 | ERROR   | [x] Short array syntax must be used to define arrays
 140 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
 140 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 140 | ERROR   | [x] Concat operator must be surrounded by a single space
 140 | ERROR   | [x] Concat operator must be surrounded by a single space
 145 | ERROR   | [x] Short array syntax must be used to define arrays
 147 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
 147 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 147 | ERROR   | [x] Concat operator must be surrounded by a single space
 147 | ERROR   | [x] Concat operator must be surrounded by a single space
 150 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 150 | ERROR   | [x] Short array syntax must be used to define arrays
 151 | ERROR   | [x] Array indentation error, expected 8 spaces but found 6
 152 | ERROR   | [x] Array indentation error, expected 8 spaces but found 6
 152 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
 152 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 152 | ERROR   | [x] Concat operator must be surrounded by a single space
 152 | ERROR   | [x] Concat operator must be surrounded by a single space
 153 | ERROR   | [x] Array indentation error, expected 8 spaces but found 6
 154 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 4
 156 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
 158 | ERROR   | [ ] More than 2 empty lines are not allowed
 159 | ERROR   | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 54 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Steps to reproduce
Run following command:

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

๐Ÿ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia VijaySharma_89

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

Comments & Activities

Production build 0.71.5 2024