All functions defined in a module file must be prefixed with the module's name

Created on 30 May 2023, over 1 year ago
Updated 6 December 2023, about 1 year ago

Problem/Motivation

remove ERROR All functions defined in a module file must be prefixed with the module's name, found "_get_plausible_script" but expected "plausible_tracking__get_plausible_script

Steps to reproduce

Run the command:

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

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\plausible_tracking\plausible_tracking.module
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
85 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "_get_plausible_script" but expected "plausible_tracking__get_plausible_script"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\modules\contrib\plausible_tracking\src\Form\PlausibleConfigForm.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
198 | WARNING | Line exceeds 80 characters; contains 118 characters
208 | WARNING | Line exceeds 80 characters; contains 190 characters
------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India arti_parmar

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

Comments & Activities

Production build 0.71.5 2024