Problem/Motivation
FILE: commerce_shipping_fee\commerce_shipping_fee.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\commerce_shipping_fee.install
--------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
5 | ERROR | [x] Missing function doc comment
11 | ERROR | [ ] Doc comment short description must end with a full stop
13 | ERROR | [ ] Missing parameter type
14 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1
| | spaces
24 | ERROR | [x] Object operator not indented correctly; expected 4 spaces but
| | found 6
48 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\commerce_shipping_fee.module
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
8 | ERROR | [x] Doc comment long description must end with a full stop
10 | ERROR | [x] Additional blank lines found at end of doc comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
22 | WARNING | Line exceeds 80 characters; contains 99 characters
31 | WARNING | Line exceeds 80 characters; contains 98 characters
36 | WARNING | Line exceeds 80 characters; contains 124 characters
37 | WARNING | Line exceeds 80 characters; contains 89 characters
38 | WARNING | Line exceeds 80 characters; contains 152 characters
----------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShipment.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShipmentInterface.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShippingRateRequest.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
10 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShippingRateRequestInterface.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShippingRequest.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
5 | ERROR | [ ] Missing short description in doc comment
22 | ERROR | [x] Expected 1 blank line after function; 0 found
23 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: commerce_shipping_fee\src\ManualShippingRequestInterface.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------
FILE: ...ommerce_shipping_fee\src\Plugin\Commerce\ShippingMethod\ManualShipping.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
27 | ERROR | [ ] Missing short description in doc comment
61 | ERROR | [x] Expected 1 space before "??"; 0 found
61 | ERROR | [x] Expected 1 space after "??"; 0 found
88 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
99 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
103 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
104 | ERROR | [x] Array closing indentation error, expected 4 spaces but found
| | 6
185 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Steps to reproduce
Run phpcs command to get the drupal coding standard issues.
Proposed resolution
Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.