Fix the issues reported by phpcs

Created on 20 March 2023, over 2 years ago
Updated 22 March 2023, over 2 years ago

Problem/Motivation

Getting following error/warnings.

FILE: /var/www/html/modules/contrib/http_client_options_per_uri/README.md
-------------------------------------------------------------------------
FOUND 1 ERROR AND 8 WARNINGS AFFECTING 9 LINES
-------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 106 characters
7 | WARNING | [ ] Line exceeds 80 characters; contains 214 characters
13 | WARNING | [ ] Line exceeds 80 characters; contains 302 characters
17 | WARNING | [ ] Line exceeds 80 characters; contains 184 characters
19 | WARNING | [ ] Line exceeds 80 characters; contains 485 characters
27 | WARNING | [ ] Line exceeds 80 characters; contains 124 characters
29 | WARNING | [ ] Line exceeds 80 characters; contains 159 characters
31 | WARNING | [ ] Line exceeds 80 characters; contains 213 characters
60 | ERROR | [x] Expected 1 newline at end of file; 5 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------

FILE: /var/www/html/modules/contrib/http_client_options_per_uri/src/Service/Http/HcopuClientFactory.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
68 | WARNING | Unused variable $id.
-------------------------------------------------------------------------------------------------------

Time: 1.34 secs; Memory: 6MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/http_client_options_per_uri/

Proposed resolution

Above error/warnings need to be fixed.

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

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