Code standards failures

Created on 30 May 2022, over 2 years ago
Updated 23 August 2023, over 1 year ago

Code standards failures found with phpcs

FILE: commerce_webform_order/commerce_webform_order.install
---------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
54 | ERROR | [x] Expected 1 space after CATCH keyword; 0 found
54 | ERROR | [x] Newline required after opening brace
54 | ERROR | [x] Closing brace must be on a line by itself
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

FILE: commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
436 | ERROR | [x] Use null coalesce operator instead of ternary operator.
786 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: commerce_webform_order/src/Element/EntityAutocompleteOrToken.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
185 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

Time: 783ms; Memory: 20MB

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom T-lo Bristol, UK

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.

Production build 0.71.5 2024