Fix issues reported by PHPCS

Created on 20 March 2025, 18 days ago

Problem/Motivation

Running PHPCS shows the warnings/errors listed below, which should be fixed

FILE: /var/www/html/sharethis/src/Plugin/Block/SharethisWidgetBlock.php
-----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------
192 | ERROR | [x] Whitespace found at end of line
194 | ERROR | [x] Whitespace found at end of line
-----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------

FILE: /var/www/html/sharethis/src/Form/SharethisConfigurationForm.php
----------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------
73 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
73 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
75 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
77 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
79 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
81 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
83 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
94 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
94 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
252 | WARNING | [x] Empty PHP statement detected: superfluous semicolon.
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

Time: 487ms; Memory: 8MB

📌 Task
Status

Active

Version

3.1

Component

Code

Created by

🇮🇳India GGH

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024