Drupal calls should be avoided in classes, use dependency injection instead.

Created on 16 September 2023, 9 months ago
Updated 24 January 2024, 5 months ago

Problem/Motivation

FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/postmark/src/Form/PostmarkSettingsForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------
  65 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 112 | ERROR   | [x] Whitespace found at end of line
 119 | WARNING | [ ] Possible useless method overriding detected
 144 | ERROR   | [x] Whitespace found at end of line
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/postmark/src/PostmarkHandler.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------
  77 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
 189 | WARNING | Unused variable $postmark.
----------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/postmark/src/Plugin/Mail/PostmarkMail.php
---------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
 10 | WARNING | [x] Unused use statement
---------------------------------------------------------------------------------------------------

Time: 151ms; Memory: 12MB

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.69.0 2024