Fix the issues reported by phpcs

Created on 18 March 2025, 17 days ago

Running PHPCS shows the following warnings/errors, which should be fixed.

FILE: /var/www/html/scheduler/scheduler.module
------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------
997 | WARNING | [ ] There must be no blank line following an inline comment
1422 | WARNING | [x] There must be no blank line following an inline comment
1422 | WARNING | [ ] There must be no blank line following an inline comment
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

FILE: /var/www/html/scheduler/docs/plugin_test.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 125 characters
5 | WARNING | Line exceeds 80 characters; contains 138 characters
6 | WARNING | Line exceeds 80 characters; contains 145 characters
8 | WARNING | Line exceeds 80 characters; contains 149 characters
10 | WARNING | Line exceeds 80 characters; contains 236 characters
12 | WARNING | Line exceeds 80 characters; contains 136 characters
13 | WARNING | Line exceeds 80 characters; contains 186 characters
14 | WARNING | Line exceeds 80 characters; contains 256 characters
15 | WARNING | Line exceeds 80 characters; contains 307 characters
16 | WARNING | Line exceeds 80 characters; contains 155 characters
17 | WARNING | Line exceeds 80 characters; contains 171 characters
19 | WARNING | Line exceeds 80 characters; contains 131 characters
20 | WARNING | Line exceeds 80 characters; contains 155 characters
----------------------------------------------------------------------

FILE: /var/www/html/scheduler/docs/plugin_create.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 122 characters
5 | WARNING | Line exceeds 80 characters; contains 138 characters
6 | WARNING | Line exceeds 80 characters; contains 145 characters
10 | WARNING | Line exceeds 80 characters; contains 91 characters
11 | WARNING | Line exceeds 80 characters; contains 83 characters
29 | WARNING | Line exceeds 80 characters; contains 219 characters
30 | WARNING | Line exceeds 80 characters; contains 361 characters
31 | WARNING | Line exceeds 80 characters; contains 225 characters
32 | WARNING | Line exceeds 80 characters; contains 280 characters
35 | WARNING | Line exceeds 80 characters; contains 232 characters
----------------------------------------------------------------------

FILE: /var/www/html/scheduler/docs/plugin.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 247 characters
5 | WARNING | Line exceeds 80 characters; contains 277 characters
7 | WARNING | Line exceeds 80 characters; contains 261 characters
----------------------------------------------------------------------

FILE: /var/www/html/scheduler/tests/src/Functional/SchedulerFieldsDisplayTest.php
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
---------------------------------------------------------------------------------
284 | WARNING | [x] There must be no blank line following an inline comment
284 | WARNING | [ ] There must be no blank line following an inline comment
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

FILE: /var/www/html/scheduler/tests/src/Functional/SchedulerRequiredTest.php
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------
114 | WARNING | [x] There must be no blank line following an inline comment
114 | WARNING | [ ] There must be no blank line following an inline comment
201 | WARNING | [x] There must be no blank line following an inline comment
201 | WARNING | [ ] There must be no blank line following an inline comment
275 | WARNING | [x] There must be no blank line following an inline comment
275 | WARNING | [ ] There must be no blank line following an inline comment
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------

Time: 3.54 secs; Memory: 20MB

📌 Task
Status

Active

Version

2.2

Component

Coding Standards

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