Fix the issues reported by phpcs

Created on 2 April 2024, 3 months ago
Updated 3 April 2024, 3 months ago

Problem/Motivation

Here is the command : -
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/blocktheme/

FILE: /var/www/html/drupal-contri-d10/modules/contrib/blocktheme/src/Form/BlockthemeAdminSettingsForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
 72 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/blocktheme/README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------
 41 | WARNING | Line exceeds 80 characters; contains 89 characters
 42 | WARNING | Line exceeds 80 characters; contains 91 characters
 47 | WARNING | Line exceeds 80 characters; contains 108 characters
 53 | WARNING | Line exceeds 80 characters; contains 83 characters
--------------------------------------------------------------------------

Time: 255ms; Memory: 12MB

Steps to reproduce

Run PHPCS on blocktheme module.

Proposed resolution

Fixed the coding standards

Remaining tasks

Submit the patch either MR .

📌 Task
Status

Closed: won't fix

Component

Code

Created by

🇮🇳India bhaveshdas

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024