Fix the issues reported by phpcs

Created on 28 June 2023, about 1 year ago
Updated 29 June 2023, about 1 year ago

Problem/Motivation

FILE: /var/www/html/drupal9_test/code/modules/contrib/sansdesordre/src/Utils.php
------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] The static declaration must come after the visibility declaration
7 | ERROR | [x] Missing function doc comment
11 | ERROR | [x] Expected 1 blank line after function; 2 found
14 | ERROR | [x] The static declaration must come after the visibility declaration
14 | ERROR | [x] Missing function doc comment
17 | ERROR | [x] Expected 1 blank line after function; 2 found
20 | ERROR | [x] The closing brace for the class must have an empty line before it

FILE: /var/www/html/drupal9_test/code/modules/contrib/sansdesordre/sansdesordre.info.yml
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
----------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9_test/code/modules/contrib/sansdesordre/README.txt
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------------
1 | WARNING | Line exceeds 80 characters; contains 88 characters
3 | WARNING | Line exceeds 80 characters; contains 131 characters
5 | WARNING | Line exceeds 80 characters; contains 159 characters
6 | WARNING | Line exceeds 80 characters; contains 95 characters
8 | WARNING | Line exceeds 80 characters; contains 229 characters
-----------------------------------------------------------------------------

FILE: /var/www/html/drupal9_test/code/modules/contrib/sansdesordre/sansdesordre.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Missing file doc comment
12 | ERROR | [x] Additional blank lines found at end of doc comment
16 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
18 | ERROR | [x] Expected 1 blank line before function; 2 found
22 | ERROR | [x] There should be no white space before a closing ")"
48 | ERROR | [x] Comments may not appear after statements
49 | ERROR | [x] Comments may not appear after statements
59 | WARNING | [x] There must be no blank line following an inline comment
59 | WARNING | [ ] There must be no blank line following an inline comment

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India yashmalviya

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

Comments & Activities

Production build 0.69.0 2024