Fix the issues reported by PHPCS

Created on 14 April 2023, almost 2 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

FILE: .../contribution/drupal10/web/modules/contrib/payment_rabo_smartpay/README.md
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
13 | WARNING | Line exceeds 80 characters; contains 83 characters
24 | WARNING | Line exceeds 80 characters; contains 92 characters
25 | WARNING | Line exceeds 80 characters; contains 109 characters
--------------------------------------------------------------------------------

FILE: ...tpay/src/Plugin/Payment/MethodConfiguration/PaymentRaboSmartpayPayment.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
241 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
--------------------------------------------------------------------------------

FILE: ...y/src/Entity/PaymentRaboSmartpayProfile/PaymentRaboSmartpayProfileForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
143 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
144 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
--------------------------------------------------------------------------------

FILE: ...0/web/modules/contrib/payment_rabo_smartpay/payment_rabo_smartpay.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
9 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
10 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
--------------------------------------------------------------------------------

Time: 1.31 secs; Memory: 12MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig payment_rabo_smartpay/

Proposed resolution

Resolve all issues for Drupal and DrupalPractice coding standards

Remaining tasks

Patch Review

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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.71.5 2024