Fix the issues reported by phpcs

Created on 20 June 2022, over 2 years ago
Updated 4 March 2023, over 1 year ago

Problem/Motivation

commerce_zones module have some php drupalstandard issue related to phpcs --standard=Drupal

Below error is show after phpcbf command

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

FILE: C:\Users\admin\Desktop\commerce_zones\src\Entity\ZoneInterface.php
------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
57 | ERROR | Missing short description in doc comment
61 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------

FILE: C:\Users\admin\Desktop\commerce_zones\src\Form\ZoneForm.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
8 | ERROR | Doc comment is empty
----------------------------------------------------------------------

FILE: C:\Users\admin\Desktop\commerce_zones\src\Plugin\Commerce\Condition\BaseZoneAddress.php
---------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------
11 | ERROR | Doc comment is empty
23 | ERROR | Missing short description in doc comment
28 | ERROR | Doc comment is empty
85 | ERROR | Missing short description in doc comment
86 | ERROR | Missing parameter comment
86 | ERROR | Missing parameter type
87 | ERROR | Missing parameter comment
89 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------

FILE: C:\Users\admin\Desktop\commerce_zones\src\ZoneHtmlRouteProvider.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------
16 | WARNING | Possible useless method overriding detected
-------------------------------------------------------------------------

Time: 529ms; Memory: 8MB

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India Ashutosh Ahirwal 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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024