Created on 24 April 2023, over 1 year ago
Updated 18 May 2024, 4 months ago

Problem/Motivation

โฏ phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js .

FILE: /Users/specbee/Sites/Projects/commerce_buy_now/commerce_buy_now.module
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 12 | WARNING | [ ] Doc comment indicates hook_form_alter() but function signature is "commerce_buy_now_form_commerce_order_item_add_to_cart_form_alter" instead of
    |         |     "commerce_buy_now_form_alter". Did you mean hook_form_FORM_ID_alter()?
 34 | ERROR   | [ ] Type hint "array" missing for $form
 61 | ERROR   | [x] Space found before semicolon; expected "'1';" but found "'1' ;"
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/specbee/Sites/Projects/commerce_buy_now/tests/src/Functional/CommerceBuyNowTest.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 91 | WARNING | Only string literals should be passed to t() where possible
------------------------------------------------------------------------------------------------


FILE: /Users/specbee/Sites/Projects/commerce_buy_now/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 30 | WARNING | Line exceeds 80 characters; contains 110 characters
----------------------------------------------------------------------

Time: 125ms; Memory: 10MB

Steps to reproduce

Run following command
phpcs --standard=โ€œDrupal,DrupalPracticeโ€ --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js .

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine Maksym Fedorchuk

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

Production build 0.71.5 2024