Fix the issues reported by phpcs

Created on 31 January 2023, almost 2 years ago
Updated 10 August 2023, over 1 year ago

Problem/Motivation

Getting Following errors/warnings

FILE: C:\Users\Admin\Desktop\task\bcc\src\Form\BccSettingsForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] End of line character is invalid; expected "\n" but found
   |       |     "\r\n"
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: C:\Users\Admin\Desktop\task\bcc\tests\src\Functional\SettingsFormTest.php
--------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
--------------------------------------------------------------------------------
  1 | ERROR   | [x] End of line character is invalid; expected "\n" but found
    |         |     "\r\n"
  8 | ERROR   | [x] Doc comment short description must end with a full stop
 12 | ERROR   | [ ] Class name doesn't match filename; expected "class
    |         |     SettingsFormTest"
 20 | ERROR   | [x] Array indentation error, expected 4 spaces but found 6
 21 | ERROR   | [x] Array indentation error, expected 4 spaces but found 6
 27 | WARNING | [ ] Possible useless method overriding detected
 37 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 46 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 49 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 56 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 430ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India jay jangid Jaipur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024