FILE: /var/www/html/tolearn/modules/git/background_image_formatter/src/Plugin/Field/FieldFormatter/BackgroundImageFormatter.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------
95 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
118 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
139 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
139 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
146 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
147 | ERROR | [x] Expected 1 space after IF keyword; 0 found
147 | ERROR | [x] There should be no white space after an opening "("
147 | ERROR | [x] There should be no white space before a closing ")"
147 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
186 | ERROR | [x] Missing function doc comment
190 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/tolearn/modules/git/background_image_formatter/background_image_formatter.module
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
----------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3002401-coding-standard-3.patch | 4.38 KB | deepanker_bhalla |
| #2 | 3002401-coding-standard-2.patch | 2.55 KB | deepanker_bhalla |
Comments
Comment #2
deepanker_bhalla commentedFixed the reported issues.
Comment #3
deepanker_bhalla commentedI have found some more issues after checking with the latest versions. Thus updating the latest patch with all the resolved issues.
Comment #4
msankhala commented@deepanker_bhalla Good work. I can confirm the patch #3 is applying cleanly and fixing all the coding standard reported by the PHPCS. Here is the output:
PHPCS is reporting no coding standard warning after applying the patch #3.
Comment #6
zulljin commentedGood job.