Fix the issues reported by phpcs

Created on 17 May 2023, over 1 year ago
Updated 18 November 2023, about 1 year ago

Problem/Motivation

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

Steps to reproduce

FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/media_video_micromodal/src/Plugin/Field/FieldFormatter/MicromodalFieldFormatter.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
 396 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
 438 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/media_video_micromodal/README.md
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------
  53 | WARNING | Line exceeds 80 characters; contains 96 characters
  58 | WARNING | Line exceeds 80 characters; contains 83 characters
  63 | WARNING | Line exceeds 80 characters; contains 101 characters
  71 | WARNING | Line exceeds 80 characters; contains 82 characters
  86 | WARNING | Line exceeds 80 characters; contains 92 characters
 105 | WARNING | Line exceeds 80 characters; contains 103 characters
---------------------------------------------------------------------------------------

Proposed resolution

Fix the issues and create a patch.

📌 Task
Status

Fixed

Version

1.1

Component

Code

Created by

🇮🇳India arpitk

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