Drupal Coding Standard Issues

Created on 17 September 2023, 10 months ago
Updated 27 September 2023, 9 months ago

Problem/Motivation

FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/Form/SettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
 41 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 48 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 49 | ERROR   | [x] Whitespace found at end of line
 58 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 60 | ERROR   | [x] Whitespace found at end of line
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/ActivenetClientInterface.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/ActivenetClientFactory.php
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
  6 | WARNING | [x] Unused use statement
 12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/ActivenetClientFactoryInterface.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/ActivenetClientException.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/activenet/src/ActivenetClient.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 1 WARNING AFFECTING 13 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  22 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
  26 | ERROR   | [x] Expected 3 space(s) before asterisk; 4 found
  26 | ERROR   | [x] Doc comment short description must end with a full stop
  27 | ERROR   | [x] Expected 3 space(s) before asterisk; 4 found
  28 | ERROR   | [x] Expected 3 space(s) before asterisk; 4 found
  28 | ERROR   | [x] Expected "arrayofsettingsfromconfig" but found "array of settings from config" for @var tag in member variable comment
  30 | ERROR   | [ ] Class property $api_settings should use lowerCamel naming without underscores
  33 | ERROR   | [x] Doc comment short description must end with a full stop
  34 | ERROR   | [x] There must be exactly one blank line before the tags in a doc comment
  36 | ERROR   | [x] There must be no blank lines after the function comment
  40 | ERROR   | [x] Expected 1 blank line after function; 3 found
  43 | ERROR   | [ ] More than 2 empty lines are not allowed
 104 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 104 | ERROR   | [x] Inline control structures are not allowed
 156 | ERROR   | [x] Missing function doc comment
 156 | ERROR   | [x] Expected 1 space before opening brace; found 0
 157 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 157 | ERROR   | [x] Inline control structures are not allowed
--------------------------------------------------------------------------------------------------------------------------------------------

Time: 129ms; Memory: 10MB


📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.69.0 2024