Fix the issues reported by phpcs

Created on 6 January 2023, over 1 year ago
Updated 3 April 2023, about 1 year ago

Problem/Motivation

$ phpcs --standard=drupal commerce_agree_terms

FILE: ...dules\commerce_agree_terms\src\Plugin\Commerce\CheckoutPane\AgreeTerms.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found
| | "\r\n"
26 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
27 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
28 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
29 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
30 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
31 | ERROR | [x] Array closing indentation error, expected 4 spaces but
| | found 6
139 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
148 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 153ms; Memory: 8MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Jitendra_Kumar

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

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.69.0 2024