Fix phpcs issues

Created on 5 July 2024, 4 months ago

Problem/Motivation

Need to fix below phpcs issues

web/modules/custom/data_count/

FILE: /web/modules/custom/data_count/templates/data-count.html.twig
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
 66 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------


FILE: /web/modules/custom/data_count/data_count.module
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
  35 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "count_node_data" but expected "data_count_count_node_data"
  39 | WARNING | Unused variable $node_data_sum.
  61 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "node_wise_count" but expected "data_count_node_wise_count"
  76 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "count_user_data" but expected "data_count_count_user_data"
  80 | WARNING | Unused variable $user_data_sum.
 106 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "role_wise_count" but expected "data_count_role_wise_count"
 122 | ERROR   | All functions defined in a module file must be prefixed with the module's name, found "users_sum" but expected "data_count_users_sum"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 95ms; Memory: 10MB
📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India dev2.addweb

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024