Drupal Coding Standards Issues | phpcs

Created on 24 January 2023, almost 2 years ago
Updated 18 July 2024, 5 months ago

Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal batch_resize_image

FILE: ...rs\Admin\Desktop\task\batch_resize_image\src\Form\BatchResizeImageForm.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
  1 | ERROR   | [x] End of line character is invalid; expected "\n" but found
    |         |     "\r\n"
 10 | WARNING | [ ] The class short comment should describe what the class does
    |         |     and not simply repeat the class name
 55 | ERROR   | [ ] The array declaration extends to column 93 (the limit is
    |         |     80). The array content should be split up over multiple
    |         |     lines
 56 | ERROR   | [ ] The array declaration extends to column 84 (the limit is
    |         |     80). The array content should be split up over multiple
    |         |     lines
 61 | ERROR   | [ ] The array declaration extends to column 120 (the limit is
    |         |     80). The array content should be split up over multiple
    |         |     lines
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...rs\Admin\Desktop\task\batch_resize_image\tests\src\Functional\LoadTest.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
--------------------------------------------------------------------------------

Time: 403ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

🐛 Bug report
Status

RTBC

Version

1.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