- Issue created by @TanujJain-TJ
- 🇮🇳India TanujJain-TJ
Fixed above mentioned phpcs issues in this module
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 5:51am 14 February 2023 - First commit to issue fork.
- Assigned to himanshu_jhaloya
- Status changed to Needs work
almost 2 years ago 7:08am 14 February 2023 - 🇮🇳India himanshu_jhaloya Indore
After applied the patch found some issues
FILE: /var/www/html/contribution/web/modules/contrib/commerce_stripe-3341472/README.txt
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------
44 | WARNING | Line exceeds 80 characters; contains 84 characters
50 | WARNING | Line exceeds 80 characters; contains 87 characters
---------------------------------------------------------------------------------------FILE: /var/www/html/contribution/web/modules/contrib/commerce_stripe-3341472/src/Plugin/Commerce/PaymentGateway/Stripe.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
279 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------FILE: /var/www/html/contribution/web/modules/contrib/commerce_stripe-3341472/commerce_stripe.module
-------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------
14 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found
14 | ERROR | [x] There should be no white space after an opening "("
14 | ERROR | [x] There should be no white space before a closing ")"
14 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found
17 | ERROR | [x] There should be no white space after an opening "("
17 | ERROR | [x] There should be no white space after an opening "("
17 | ERROR | [x] There should be no white space before a closing ")"
17 | ERROR | [x] There should be no white space before a closing ")"
22 | ERROR | [x] There should be no white space after an opening "("
22 | ERROR | [x] There should be no white space after an opening "("
22 | ERROR | [x] There should be no white space before a closing ")"
22 | ERROR | [x] There should be no white space before a closing ")"
25 | WARNING | [x] A comma should follow the last multiline array item. Found: 'addAddressAttributes'
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------- - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 7:16am 14 February 2023 - 🇮🇳India nayana_mvr
Verified MR!21. All the coding standard issues are fixed. But got the following warning messages related to spacing issues while applying the patch:
21.diff:36: trailing whitespace. 21.diff:47: trailing whitespace. 21.diff:83: trailing whitespace. 21.diff:92: trailing whitespace. 21.diff:101: trailing whitespace. Checking patch 3341472-2.patch... Checking patch README.txt... Checking patch commerce_stripe.module... Checking patch src/Event/TransactionDataEvent.php... Checking patch src/Plugin/Commerce/CheckoutPane/StripeReview.php... Checking patch src/Plugin/Commerce/PaymentGateway/Stripe.php... Checking patch src/PluginForm/Stripe/PaymentMethodAddForm.php... Checking patch tests/modules/commerce_stripe_test/src/EventSubscriber/DecoratedOrderPaymentIntentSubscriber.php... Checking patch tests/modules/commerce_stripe_test/src/EventSubscriber/TransactionDataSubscriber.php... Checking patch tests/src/Kernel/CreatePaymentTest.php... Checking patch tests/src/Kernel/PaymentIntentTest.php... Checking patch tests/src/Kernel/StripeIntegrationTestBase.php... Applied patch 3341472-2.patch cleanly. Applied patch README.txt cleanly. Applied patch commerce_stripe.module cleanly. Applied patch src/Event/TransactionDataEvent.php cleanly. Applied patch src/Plugin/Commerce/CheckoutPane/StripeReview.php cleanly. Applied patch src/Plugin/Commerce/PaymentGateway/Stripe.php cleanly. Applied patch src/PluginForm/Stripe/PaymentMethodAddForm.php cleanly. Applied patch tests/modules/commerce_stripe_test/src/EventSubscriber/DecoratedOrderPaymentIntentSubscriber.php cleanly. Applied patch tests/modules/commerce_stripe_test/src/EventSubscriber/TransactionDataSubscriber.php cleanly. Applied patch tests/src/Kernel/CreatePaymentTest.php cleanly. Applied patch tests/src/Kernel/PaymentIntentTest.php cleanly. Applied patch tests/src/Kernel/StripeIntegrationTestBase.php cleanly. warning: squelched 12 whitespace errors warning: 17 lines add whitespace errors.
Hi, I verified MR!21 still found some phpcs issues.
Attached screenshot for reference.
Thankyou.- First commit to issue fork.
- 🇮🇳India Yashaswi18
Hello, to verify, I checked out to the branch 'phpcs_fixed' and ran the command phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml commerce_stripe/, found no errors or warnings.
- Status changed to Closed: works as designed
9 months ago 2:58pm 4 March 2024 - 🇺🇦Ukraine marchuk.vitaliy Rivne, UA
There is nothing to fix. This has already been fixed and merged. See the latest pipelines https://git.drupalcode.org/project/commerce_stripe/-/pipelines/110553