A patch for minor coding standard issues

Created on 7 December 2016, about 8 years ago
Updated 21 June 2023, over 1 year ago

I am creating a patch for minor coding standard issues:

FILE: .../pareviewsh/pareview_temp/src/Controller/BreakpointsUiController.php
--------------------------------------------------------------------------
FOUND 10 ERRORS AND 3 WARNINGS AFFECTING 13 LINES
--------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
26 | ERROR | [x] Array indentation error, expected 8 spaces but found
| | 10
27 | ERROR | [x] Array indentation error, expected 8 spaces but found
| | 10
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/src/BreakpointsUiService.php
--------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
13 | ERROR | [x] Expected 1 blank line before function; 0 found
13 | ERROR | [x] Expected 1 space before opening brace; found 0
20 | ERROR | [x] Expected 1 space after IF keyword; 0 found
20 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
23 | ERROR | [x] Expected 1 space after IF keyword; 0 found
23 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
26 | ERROR | [x] Expected 1 space after "="; 3 found
26 | ERROR | [x] Concat operator must be surrounded by a single space
30 | ERROR | [x] Expected 1 blank line after function; 0 found
31 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/breakpoints_ui.module
--------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
15 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
16 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
28 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
30 | ERROR | [x] Case breaking statement indented incorrectly; expected
| | 8 spaces, found 10
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/breakpoints_ui.services.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 87 characters
4 | WARNING | Line exceeds 80 characters; contains 85 characters
5 | WARNING | Line exceeds 80 characters; contains 82 characters
6 | WARNING | Line exceeds 80 characters; contains 86 characters
----------------------------------------------------------------------
📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India vishalkhialani

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024