Fix the issues reported by phpcs

Created on 22 June 2023, over 1 year ago
Updated 5 December 2023, 12 months ago

Running shows the following warnings/errors, which should be fixed when they suggest the correct changes, or they are not false positives.

FILE: ./csv_serialization/src/Encoder/CsvEncoder.php
-------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------
 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is League\Csv\Writer.
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------


FILE: ./csv_serialization/src/EventSubscriber/CsvSubscriber.php
-------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------
 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
   |       |     Symfony\Component\EventDispatcher\EventSubscriberInterface.
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------


FILE: ./csv_serialization/csv_serialization.install
-------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
  5 | ERROR   | [ ] Missing short description in doc comment
 12 | WARNING | [ ] Hook implementations should not duplicate @param documentation
 12 | ERROR   | [ ] Missing parameter comment
 12 | ERROR   | [ ] Missing parameter type
 14 | WARNING | [ ] Hook implementations should not duplicate @return documentation
 14 | ERROR   | [ ] Description for the @return value is missing
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------


FILE: ./csv_serialization/README.md
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------
 48 | WARNING | Line exceeds 80 characters; contains 88 characters
-------------------------------------------------------------------------

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

Closed: outdated

Version

4.0

Component

Code

Created by

🇮🇳India arti_parmar

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024