fix isssues reported by phpcs

Created on 7 July 2023, 12 months ago
Updated 13 October 2023, 9 months ago

Problem/Motivation

FILE: /home/lenovo/d7to9/web/modules/contrib/pf_alerta/src/Plugin/PushFrameworkChannel/Alerta.php
-------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------
 87 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 89 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

Time: 84ms; Memory: 10MB

Steps to reproduce

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.2

Component

Code

Created by

🇮🇳India roshni27

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

  • Issue created by @roshni27
  • Issue was unassigned.
  • Status changed to Needs review 12 months ago
  • Status changed to RTBC 12 months ago
  • 🇧🇪Belgium Frederikvho Belgium

    Hi,

    I ran the PHPCS command again with this patch and I no longer see any warnings/errors.

    (base) ➜  pf_alerta git:(2.2.x) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig .
    (base) ➜  pf_alerta git:(2.2.x) ✗
    
  • Status changed to Fixed 9 months ago
  • 🇩🇪Germany danielspeicher Steisslingen

    Thanks a lot for your work. I applied the patch in the latest release 2.3.x of Drupal 10. Everything from PHPCS is clean now.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024