Fix the issues reported by phpcs

Created on 23 February 2023, over 1 year ago
Updated 13 July 2024, 4 months ago

Problem/Motivation

Getting following errors.

FILE: /var/www/html/modules/contrib/admin_toolbar_messages/src/AdminAwareMessenger.php
--------------------------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 19 LINES
--------------------------------------------------------------------------------------
8 | ERROR | [x] Missing class doc comment
12 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [x] Missing function doc comment
21 | ERROR | [x] Missing function doc comment
28 | ERROR | [x] Missing function doc comment
33 | ERROR | [x] Missing function doc comment
37 | ERROR | [x] Missing function doc comment
41 | ERROR | [x] Missing function doc comment
45 | ERROR | [x] Missing function doc comment
61 | ERROR | [x] Missing function doc comment
65 | ERROR | [x] Missing function doc comment
69 | ERROR | [x] Missing function doc comment
73 | ERROR | [x] Missing function doc comment
89 | ERROR | [x] Missing function doc comment
99 | ERROR | [x] Missing function doc comment
109 | ERROR | [x] Missing function doc comment
122 | ERROR | [x] Missing function doc comment
126 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

FILE: /var/www/html/modules/contrib/admin_toolbar_messages/src/AdminToolbarMessagesBuilder.php
----------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------
11 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [x] Missing function doc comment
24 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Missing function doc comment
35 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

Time: 3.38 secs; Memory: 6MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/admin_toolbar_messages/

Proposed resolution

Above errors need to be fixed.

๐Ÿ“Œ Task
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024