Fix the issues reported by phpcs

Created on 11 May 2023, almost 2 years ago
Updated 12 May 2023, almost 2 years ago

Problem/Motivation

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\twig_svg\src\TwigExtension\TwigSvg.php
--------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
43 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
45 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
50 | ERROR | [ ] Type hint "array" missing for $classes
50 | ERROR | [ ] Type hint "array" missing for $attributes
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\twig_svg\twig_svg.module
------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Doc comment short description must start with a capital letter
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------

Time: 606ms; Memory: 6MB

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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