Minor phpcs issues

Created on 10 July 2023, 11 months ago

Problem/Motivation

PHPCS comes up with a few errors in a single file - StageFileProxySubscriber.php

FILE: C:\xampp\htdocs\backendassignment\web\modules\custom\stage_file_proxy\src\EventSubscriber\StageFileProxySubscriber.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | WARNING | [x] Unused use statement
86 | ERROR | [ ] Type hint "\Symfony\Component\HttpKernel\Event\ResponseEvent" missing for $event
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the phpcs command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig stage_file_proxy

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Closed: won't fix

Version

2.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.69.0 2024