Coding standard issues

Created on 9 September 2024, 3 months ago

Problem/Motivation

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml .

FILE: .../web/modules/custom/printable/config/install/printable.settings.yml
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
32 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/printable/modules/printable_pdf/src/Plugin/PrintableFormat/PdfFormat.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
92 | ERROR | Expected type hint "ConfigFactory"; found "ConfigFactoryInterface" for $configFactory
92 | ERROR | Type hint "\Drupal\Core\Messenger\MessengerInterface" missing for $messenger
------------------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/printable/src/Form/LinksConfigurationForm.php
---------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
28 | ERROR | Type hint "\Drupal\Core\Config\ConfigFactory" missing for $configFactory
28 | ERROR | Type hint "\Drupal\Core\Messenger\MessengerInterface" missing for $messenger
---------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/printable/src/Form/PdfLinksConfigurationForm.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
28 | ERROR | Type hint "\Drupal\Core\Config\ConfigFactory" missing for $configFactory
28 | ERROR | Type hint "\Drupal\Core\Messenger\MessengerInterface" missing for $messenger
------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/printable/src/Form/FormatConfigurationFormPdf.php
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
37 | ERROR | Type hint "\Drupal\Core\Config\ConfigFactory" missing for $configFactory
37 | ERROR | Type hint "\Drupal\Core\Messenger\MessengerInterface" missing for $messenger
-------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/printable/src/Form/PrintableConfigurationForm.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
32 | ERROR | Type hint "\Drupal\Core\Config\ConfigFactory" missing for $configFactory
-------------------------------------------------------------------------------------------------------

Steps to reproduce

phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml .

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

3.0

Component

Code

Created by

🇵🇪Peru alyaj2a

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024