coding standards and best practices

Created on 19 December 2022, over 2 years ago
Updated 17 July 2024, 9 months ago

Hi, While reviewing the module for best practices and standards. I have found several issues with the help of PHPCS.

FILE: /commerce_simplestock/src/OrderStockSubscriber.php
-----------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------
  9 | ERROR | [x] Missing class doc comment
 19 | ERROR | [ ] Missing short description in doc comment
 22 | ERROR | [x] Expected 1 blank line before function; 0 found
 27 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------

FILE: /commerce_simplestock/commerce_simplestock.module
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
 1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------------
🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India akshay.singh Noida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • 🇮🇳India riddhi.addweb

    The mentioned phpcs issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.

Production build 0.71.5 2024