Fix the issues reported by phpcs

Created on 26 May 2023, over 1 year ago
Updated 29 March 2024, 8 months ago

Problem/Motivation

FILE: /var/www/html/web/modules/contrib/user_activity_log/user_activity_log.module
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
8 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/user_activity_log/src/Plugin/Block/UserActivityBlock.php
------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
22 | ERROR | Missing member variable doc comment
23 | ERROR | Missing member variable doc comment
68 | ERROR | Doc comment short description must start with a capital letter
------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/user_activity_log/src/Controller/UserallActivityController.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Missing member variable doc comment
54 | ERROR | [x] Inline comments must start with a capital letter
66 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 2
90 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
93 | ERROR | [x] Inline comments must start with a capital letter
105 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 2
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Steps to reproduce

Run this command
phpcs --standard=โ€œDrupal,DrupalPracticeโ€ --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js web/modules/contrib/user_activity_log/

Proposed resolution

Run this command
phpcbf --standard=โ€œDrupal,DrupalPracticeโ€ --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js web/modules/contrib/user_activity_log/

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Nishant

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

Comments & Activities

Production build 0.71.5 2024