Fix the issues reported by phpcs

Created on 11 July 2023, over 1 year ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/slack_webform_handler/README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
33 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...nt/slack_webform_handler/src/Plugin/WebformHandler/SlackWebformHandler.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
157 | WARNING | Unused variable $response.
--------------------------------------------------------------------------------

Time: 101ms; 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 slack_webform_handler/

Remaining tasks

Patch review

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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 @urvashi_vora
  • Status changed to Needs work about 1 year ago
  • 🇮🇳India Ashutosh Ahirwal India

    Provided patch get applied cleanly but there are still some remaining issue found.

    Used command:-
    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/slack_webform_handler

    Remaining issues
    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/slack_webform_handler/src/Plugin/WebformHandler/SlackWebformHandler.php
    ------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------
    10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url.
    ------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------

    Time: 217ms; Memory: 10MB

  • Status changed to Needs review about 1 year ago
  • 🇮🇳India Ashutosh Ahirwal India

    Providing updated patch.

  • First commit to issue fork.
  • @sarwan_verma opened merge request.
  • Status changed to RTBC about 1 year ago
  • 🇮🇳India sarwan_verma

    Hi @urvashi_vora,
    patch #3 applied successfully and also created MR.
    ++RTBC .

Production build 0.71.5 2024