Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal belgian_postal_code

FILE: ...Admin\Desktop\task\belgian_postal_code\src\Commands\PostalCodeCommands.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] End of line character is invalid; expected "\n" but found
   |       |     "\r\n"
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...ers\Admin\Desktop\task\belgian_postal_code\src\Helper\PostalCodeHelper.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 1 | ERROR | [x] End of line character is invalid; expected "\n" but found
   |       |     "\r\n"
 8 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be
   |       |     referenced with use statements
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...\Desktop\task\belgian_postal_code\src\Helper\PostalCodeHelperInterface.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] End of line character is invalid; expected "\n" but found
    |       |     "\r\n"
 52 | ERROR | [ ] Missing short description in doc comment
 53 | ERROR | [ ] Missing parameter comment
 55 | ERROR | [ ] Description for the @return value is missing
 59 | ERROR | [ ] Missing short description in doc comment
 60 | ERROR | [ ] Missing parameter comment
 62 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 440ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Jay Jangid created an issue. See original summary.

jay jangid’s picture

Status: Active » Needs review

Created MR , please review.

Thank you.

BramDriesen made their first commit to this issue’s fork.

bramdriesen’s picture

Status: Needs review » Fixed

Please watch out with your phpdocs. The ones you added didn't provide any information at all. Thanks for the mr!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.