Drupal Coding Standard Errors fix

Created on 21 May 2024, about 1 month ago

Problem/Motivation

Getting the following warnings. Find the attached file → having many issues.

FILE: /Users/arun.kumar/Arun/Contribution/advanced_mautic_integration/src/MauticApiWrapperInterface.php
-------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------
  2 | ERROR | [ ] Missing file doc comment
 11 | ERROR | [ ] Missing @category tag in class comment
 11 | ERROR | [ ] Missing @package tag in class comment
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------


FILE: /Users/arun.kumar/Arun/Contribution/advanced_mautic_integration/src/UserSynchronizerInterface.php
-------------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 16 LINES
-------------------------------------------------------------------------------------------------------
  2 | ERROR | [ ] Missing file doc comment
 11 | ERROR | [ ] Missing @category tag in class comment
 11 | ERROR | [ ] Missing @package tag in class comment
 11 | ERROR | [ ] Missing @author tag in class comment
 11 | ERROR | [ ] Missing @license tag in class comment
 36 | ERROR | [ ] Missing parameter comment
 42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 44 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 2
 47 | ERROR | [ ] Missing parameter comment
 53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the following command

phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml advanced_mautic_integration

Proposed resolution

The above warnings need to be fixed.

Remaining tasks

Nil

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

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

Production build 0.69.0 2024