Fix the warnings/errors reported by PHP_CodeSniffer

Created on 26 June 2023, about 1 year ago
Updated 19 July 2023, 11 months ago

Running shows the following warnings/errors that should be fixed.

FILE: ./feeds_tamper_bin_to_file/feeds_tamper_bin_to_file.info.yml
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------
 1 | WARNING | "Description" property is missing in the info.yml file
 6 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-------------------------------------------------------------------------

FILE: ./feeds_tamper_bin_to_file/src/Plugin/Tamper/BinToFile.php
-------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------
  6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
 45 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 56 | ERROR | [x] Use null coalesce operator instead of ternary operator.
 69 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------

Time: 47ms; Memory: 10MB
📌 Task
Status

RTBC

Version

2.0

Component

Code

Created by

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