Fix PHP Coding standard issues

Created on 13 February 2023, over 1 year ago
Updated 29 May 2023, about 1 year ago

Problem/Motivation

FILE: /var/www/html/web/modules/custom/image_styles_generator/modules/image_styles_generator_webp/src/ImageStylesGeneratorWebpServiceProvider.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  8 | ERROR | [x] Missing class doc comment
 10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 11 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
 12 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
 13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 14 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
 15 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
 16 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
 18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
 19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 19 | ERROR | [x] Expected 1 blank line after function; 0 found
 20 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/custom/image_styles_generator/src/Commands/ImageStylesGeneratorCommands.php
-----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------
 120 | ERROR | Doc comment for parameter $message does not match actual variable name <undefined>
 123 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/custom/image_styles_generator/src/DerivativeWarmer.php
--------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
  9 | ERROR | [x] Missing class doc comment
 28 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

Steps to reproduce

Run the phpcs --standard="DrupalPractice,DrupalStandard" image_styles_generator

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

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

Comments & Activities

Production build 0.69.0 2024