Fix the issues reported by phpcs on cachetag_notify module

Created on 2 August 2023, 11 months ago

Problem/Motivation

While running phpcs on cachetag_notify module getting error.

shivsharma@spheresph5031 ~/project/my-drupal10-site $ ./vendor/bin/phpcs   --standard="Drupal,DrupalPractice"   --extensions="php,module,inc,install,test,profile,theme,info" web/modules/contrib/cachetag_notify
FILE: /home/shivsharma/project/my-drupal10-site/web/modules/contrib/cachetag_notify/src/CacheTagsInvalidator.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 72 | WARNING | Line exceeds 80 characters; contains 87 characters
----------------------------------------------------------------------------------------------------------------


FILE: /home/shivsharma/project/my-drupal10-site/web/modules/contrib/cachetag_notify/src/Form/CachetagNotifySettingsForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
 37 | ERROR | Public method name "CachetagNotifySettingsForm::getFormID" is not in lowerCamel format
 88 | ERROR | Doc comment is empty
---------------------------------------------------------------------------------------------------------------------------

Time: 101ms; Memory: 10MB

Steps to reproduce

Execute phpcs on module.

shivsharma@spheresph5031 ~/project/my-drupal10-site $ ./vendor/bin/phpcs   --standard="Drupal,DrupalPractice"   --extensions="php,module,inc,install,test,profile,theme,info" web/modules/contrib/cachetag_notify

Proposed resolution

Reslove all PHPCS errors.

๐Ÿ“Œ Task
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Shiv_Sharma

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

Comments & Activities

Production build 0.69.0 2024