Fix coding standards

Created on 6 February 2023, over 1 year ago
Updated 12 April 2023, about 1 year ago

Problem/Motivation

A Coder module scan identifies some coding standards issues:

> ./vendor/bin/phpcs -p --colors --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md --ignore=node_modules,vendor ./web/modules/contrib/minifyhtml
...WW.EW 8 / 8 (100%)



FILE: /var/www/html/web/modules/contrib/minifyhtml/tests/modules/minifyhtml_test/src/Controller/Cases.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/minifyhtml/tests/src/Functional/ResponseTest.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/minifyhtml/src/EventSubscriber/MinifyHTMLExit.php
----------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------
  79 | ERROR | [x] Whitespace found at end of line
 103 | ERROR | [x] Whitespace found at end of line
 113 | ERROR | [ ] Expected type hint "FilterResponseEvent"; found "ResponseEvent" for $event
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/minifyhtml/CHANGELOG.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 57 | WARNING | Line exceeds 80 characters; contains 81 characters
-----------------------------------------------
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

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

Comments & Activities

Production build 0.69.0 2024